From e808559e2948b3b022c2b7d94c6eaf89bd1f080a Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 5 Feb 2026 02:47:35 +0000 Subject: [PATCH 1/2] =?UTF-8?q?##=20Java=20SDK=20Changes:=20*=20`glean.cli?= =?UTF-8?q?ent.search.recommendations()`:=20=20=20*=20=20`request`=20**Cha?= =?UTF-8?q?nged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`respon?= =?UTF-8?q?se.gleanDataError.federatedSearchRateLimitError`=20**Added**=20?= =?UTF-8?q?*=20`glean.client.documents.retrieveByFacets()`:=20=20`request`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.c?= =?UTF-8?q?lient.announcements.update()`:=20=20`request`=20**Changed**=20(?= =?UTF-8?q?Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.answers.crea?= =?UTF-8?q?te()`:=20=20`request`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`glean.client.answers.delete()`:=20=20`request?= =?UTF-8?q?`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.?= =?UTF-8?q?client.answers.update()`:=20=20`request`=20**Changed**=20(Break?= =?UTF-8?q?ing=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.answers.retrieve(?= =?UTF-8?q?)`:=20=20`request`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`glean.client.answers.list()`:=20=20`request`?= =?UTF-8?q?=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.c?= =?UTF-8?q?lient.chat.create()`:=20=20=20*=20=20`request`=20**Changed**=20?= =?UTF-8?q?=20=20*=20=20`response.messages[].agentConfig.agent.enum(auto)`?= =?UTF-8?q?=20**Added**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.cli?= =?UTF-8?q?ent.verification.verify()`:=20=20`request`=20**Changed**=20(Bre?= =?UTF-8?q?aking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.verification.ad?= =?UTF-8?q?dReminder()`:=20=20`request`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.chat.retrieve()`:=20=20?= =?UTF-8?q?=20*=20=20`request.locale`=20**Added**=20=20=20*=20=20`response?= =?UTF-8?q?.chatResult.chat.messages[].agentConfig.agent.enum(auto)`=20**A?= =?UTF-8?q?dded**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.sh?= =?UTF-8?q?ortcuts.update()`:=20=20`request`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.shortcuts.list()`:=20?= =?UTF-8?q?=20`request`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20?= =?UTF-8?q?*=20`glean.client.shortcuts.retrieve()`:=20=20`request`=20**Cha?= =?UTF-8?q?nged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.sh?= =?UTF-8?q?ortcuts.delete()`:=20=20`request`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.shortcuts.create()`:=20?= =?UTF-8?q?=20`request`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20?= =?UTF-8?q?*=20`glean.client.entities.readPeople()`:=20=20`request`=20**Ch?= =?UTF-8?q?anged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.e?= =?UTF-8?q?ntities.list()`:=20=20`request`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.documents.retrievePermi?= =?UTF-8?q?ssions()`:=20=20`request`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`glean.client.collections.addItems()`:=20=20`r?= =?UTF-8?q?equest`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`?= =?UTF-8?q?glean.client.collections.create()`:=20=20`request`=20**Changed*?= =?UTF-8?q?*=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.collect?= =?UTF-8?q?ions.delete()`:=20=20`request`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.collections.deleteItem(?= =?UTF-8?q?)`:=20=20`request`=20**Changed**=20(Breaking=20=E2=9A=A0?= =?UTF-8?q?=EF=B8=8F)=20*=20`glean.client.collections.update()`:=20=20`req?= =?UTF-8?q?uest`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`gl?= =?UTF-8?q?ean.client.collections.updateItem()`:=20=20`request`=20**Change?= =?UTF-8?q?d**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.colle?= =?UTF-8?q?ctions.retrieve()`:=20=20`request`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.collections.list()`:=20?= =?UTF-8?q?=20`request`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20?= =?UTF-8?q?*=20`glean.client.announcements.delete()`:=20=20`request`=20**C?= =?UTF-8?q?hanged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.?= =?UTF-8?q?search.autocomplete()`:=20=20=20*=20=20`request`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`response.gle?= =?UTF-8?q?anDataError.federatedSearchRateLimitError`=20**Added**=20*=20`g?= =?UTF-8?q?lean.client.search.query()`:=20=20=20*=20=20`request`=20**Chang?= =?UTF-8?q?ed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`response?= =?UTF-8?q?.gleanDataError.federatedSearchRateLimitError`=20**Added**=20?= =?UTF-8?q?=20=20*=20=20`error.federatedSearchRateLimitError`=20**Added**?= =?UTF-8?q?=20*=20`glean.client.documents.summarize()`:=20=20`request`=20*?= =?UTF-8?q?*Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.clien?= =?UTF-8?q?t.insights.retrieve()`:=20=20=20*=20=20`request`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`response`=20?= =?UTF-8?q?**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.clie?= =?UTF-8?q?nt.messages.retrieve()`:=20=20=20*=20=20`request`=20**Changed**?= =?UTF-8?q?=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20=20`response.sea?= =?UTF-8?q?rchResponse.gleanDataError.federatedSearchRateLimitError`=20**A?= =?UTF-8?q?dded**=20*=20`glean.client.pins.update()`:=20=20`request`=20**C?= =?UTF-8?q?hanged**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.?= =?UTF-8?q?pins.retrieve()`:=20=20`request`=20**Changed**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.pins.list()`:=20=20`req?= =?UTF-8?q?uest`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*=20`gl?= =?UTF-8?q?ean.client.pins.create()`:=20=20`request`=20**Changed**=20(Brea?= =?UTF-8?q?king=20=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.pins.remove()`:?= =?UTF-8?q?=20=20`request`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)?= =?UTF-8?q?=20*=20`glean.client.search.queryAsAdmin()`:=20=20=20*=20=20`re?= =?UTF-8?q?quest`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20?= =?UTF-8?q?*=20=20`response.gleanDataError.federatedSearchRateLimitError`?= =?UTF-8?q?=20**Added**=20=20=20*=20=20`error.federatedSearchRateLimitErro?= =?UTF-8?q?r`=20**Added**=20*=20`glean.client.documents.retrieve()`:=20=20?= =?UTF-8?q?`request`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20*?= =?UTF-8?q?=20`glean.client.search.retrieveFeed()`:=20=20=20*=20=20`reques?= =?UTF-8?q?t`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F)=20=20=20*=20?= =?UTF-8?q?=20`response.results[].primaryEntry.promptTemplate.favoriteInfo?= =?UTF-8?q?.ugcType.enum(prismViewsType)`=20**Added**=20(Breaking=20?= =?UTF-8?q?=E2=9A=A0=EF=B8=8F)=20*=20`glean.client.announcements.create()`?= =?UTF-8?q?:=20=20`request`=20**Changed**=20(Breaking=20=E2=9A=A0=EF=B8=8F?= =?UTF-8?q?)=20*=20`glean.client.chat.delete()`:=20=20`request.locale`=20*?= =?UTF-8?q?*Added**=20*=20`glean.client.chat.list()`:=20=20`request.locale?= =?UTF-8?q?`=20**Added**=20*=20`glean.client.chat.createStream()`:=20=20?= =?UTF-8?q?=20*=20=20`request.chatRequest.messages[].agentConfig.agent.enu?= =?UTF-8?q?m(auto)`=20**Added**=20*=20`glean.client.chat.deleteFiles()`:?= =?UTF-8?q?=20=20`request.locale`=20**Added**=20*=20`glean.client.chat.ret?= =?UTF-8?q?rieveFiles()`:=20=20`request.locale`=20**Added**=20*=20`glean.c?= =?UTF-8?q?lient.chat.uploadFiles()`:=20=20`request.locale`=20**Added**=20?= =?UTF-8?q?*=20`glean.client.agents.retrieve()`:=20=20`request.locale`=20*?= =?UTF-8?q?*Added**=20*=20`glean.client.chat.retrieveApplication()`:=20=20?= =?UTF-8?q?`request.locale`=20**Added**=20*=20`glean.client.verification.l?= =?UTF-8?q?ist()`:=20=20`request.locale`=20**Added**=20*=20`glean.client.a?= =?UTF-8?q?gents.retrieveSchemas()`:=20=20`request.locale`=20**Added**=20*?= =?UTF-8?q?=20`glean.client.chat.deleteAll()`:=20=20`request.locale`=20**A?= =?UTF-8?q?dded**=20*=20`glean.client.governance.data.policies.retrieve()`?= =?UTF-8?q?:=20=20`response.report.config.inputOptions.subsetDocIdsToScan`?= =?UTF-8?q?=20**Added**=20*=20`glean.client.governance.data.policies.updat?= =?UTF-8?q?e()`:=20=20=20*=20=20`request.updateDlpReportRequest.config.inp?= =?UTF-8?q?utOptions.subsetDocIdsToScan`=20**Added**=20*=20`glean.client.g?= =?UTF-8?q?overnance.data.policies.list()`:=20=20`response.reports[].confi?= =?UTF-8?q?g.inputOptions.subsetDocIdsToScan`=20**Added**=20*=20`glean.cli?= =?UTF-8?q?ent.governance.data.policies.create()`:=20=20=20*=20=20`request?= =?UTF-8?q?.config.inputOptions.subsetDocIdsToScan`=20**Added**=20=20=20*?= =?UTF-8?q?=20=20`response.report.config.inputOptions.subsetDocIdsToScan`?= =?UTF-8?q?=20**Added**=20*=20`glean.client.governance.data.reports.create?= =?UTF-8?q?()`:=20=20=20*=20=20`request.config.inputOptions.subsetDocIdsTo?= =?UTF-8?q?Scan`=20**Added**?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .speakeasy/gen.lock | 1381 +- .speakeasy/gen.yaml | 4 +- .speakeasy/glean-merged-spec.yaml | 1587 +- .speakeasy/workflow.lock | 14 +- README.md | 1102 +- RELEASES.md | 12 +- docs/models/components/AgentEnum.md | 3 +- docs/models/components/AiAppActionCounts.md | 16 - .../components/AiAppsInsightsResponse.md | 12 - docs/models/components/AiInsightsResponse.md | 19 - .../components/AssistantActivityType.md | 11 - .../components/ContentInsightsResponse.md | 12 - docs/models/components/DocumentInsight.md | 10 - docs/models/components/GleanDataError.md | 3 +- docs/models/components/InputOptions.md | 3 +- .../InsightsAgentsRequestOptions.md | 8 - .../components/InsightsAiAppRequestOptions.md | 8 - docs/models/components/InsightsRequest.md | 18 +- .../components/InsightsRequestCategory.md | 21 - docs/models/components/InsightsResponse.md | 24 +- docs/models/components/QueryInsight.md | 13 - .../components/QueryInsightsResponse.md | 12 - docs/models/components/ShortcutInsight.md | 10 - .../components/ShortcutInsightsResponse.md | 11 - docs/models/components/UgcType.md | 3 +- .../models/components/UserInsightsResponse.md | 13 - docs/models/errors/GleanDataError.md | 3 +- .../operations/AddcollectionitemsRequest.md | 9 + .../AddverificationreminderRequest.md | 9 + docs/models/operations/AdminsearchRequest.md | 9 + docs/models/operations/AutocompleteRequest.md | 9 + docs/models/operations/ChatRequest.md | 9 +- .../operations/CreateannouncementRequest.md | 9 + docs/models/operations/CreateanswerRequest.md | 9 + .../operations/CreatecollectionRequest.md | 9 + .../operations/CreateshortcutRequest.md | 9 + .../operations/DeleteallchatsRequest.md | 7 +- .../operations/DeleteannouncementRequest.md | 9 + docs/models/operations/DeleteanswerRequest.md | 9 + .../operations/DeletechatfilesRequest.md | 9 +- docs/models/operations/DeletechatsRequest.md | 9 +- .../operations/DeletecollectionRequest.md | 9 + .../operations/DeletecollectionitemRequest.md | 9 + .../operations/DeleteshortcutRequest.md | 9 + docs/models/operations/EditanswerRequest.md | 9 + .../operations/EditcollectionRequest.md | 9 + .../operations/EditcollectionitemRequest.md | 9 + docs/models/operations/EditpinRequest.md | 9 + docs/models/operations/FeedRequest.md | 9 + docs/models/operations/GetAgentRequest.md | 9 +- .../operations/GetAgentSchemasRequest.md | 9 +- docs/models/operations/GetanswerRequest.md | 9 + docs/models/operations/GetchatRequest.md | 9 +- .../operations/GetchatapplicationRequest.md | 9 +- docs/models/operations/GetchatfilesRequest.md | 9 +- .../models/operations/GetcollectionRequest.md | 9 + .../operations/GetdocpermissionsRequest.md | 9 + docs/models/operations/GetdocumentsRequest.md | 9 + .../operations/GetdocumentsbyfacetsRequest.md | 9 + docs/models/operations/GetpinRequest.md | 9 + docs/models/operations/GetshortcutRequest.md | 9 + docs/models/operations/InsightsRequest.md | 9 + docs/models/operations/ListanswersRequest.md | 9 + docs/models/operations/ListchatsRequest.md | 7 +- .../operations/ListcollectionsRequest.md | 9 + docs/models/operations/ListentitiesRequest.md | 9 + docs/models/operations/ListpinsRequest.md | 8 +- docs/models/operations/ListpinsRequestBody.md | 9 + .../models/operations/ListshortcutsRequest.md | 9 + .../operations/ListverificationsRequest.md | 7 +- docs/models/operations/MessagesRequest.md | 9 + docs/models/operations/PeopleRequest.md | 9 + docs/models/operations/PinRequest.md | 9 + .../operations/RecommendationsRequest.md | 9 + docs/models/operations/SearchRequest.md | 9 + docs/models/operations/SummarizeRequest.md | 9 + docs/models/operations/UnpinRequest.md | 9 + .../operations/UpdateannouncementRequest.md | 9 + .../operations/UpdateshortcutRequest.md | 9 + .../operations/UploadchatfilesRequest.md | 9 +- docs/models/operations/VerifyRequest.md | 9 + docs/sdks/agents/README.md | 18 +- docs/sdks/announcements/README.md | 97921 ++++++++-------- docs/sdks/answers/README.md | 3989 +- docs/sdks/chat/README.md | 77 +- docs/sdks/clientdocuments/README.md | 132 +- docs/sdks/clientshortcuts/README.md | 7585 +- docs/sdks/collections/README.md | 2986 +- docs/sdks/entities/README.md | 60 +- docs/sdks/insights/README.md | 13 +- docs/sdks/messages/README.md | 19 +- docs/sdks/pins/README.md | 119 +- docs/sdks/search/README.md | 423 +- docs/sdks/verification/README.md | 37 +- gradle.properties | 2 +- .../api_client/glean_api_client/Agents.java | 16 +- .../glean_api_client/Announcements.java | 83 +- .../api_client/glean_api_client/Answers.java | 143 +- .../glean_api_client/AsyncAgents.java | 16 +- .../glean_api_client/AsyncAnnouncements.java | 80 +- .../glean_api_client/AsyncAnswers.java | 138 +- .../glean_api_client/AsyncChat.java | 69 +- .../AsyncClientDocuments.java | 84 +- .../AsyncClientShortcuts.java | 132 +- .../glean_api_client/AsyncCollections.java | 210 +- .../glean_api_client/AsyncEntities.java | 56 +- .../glean_api_client/AsyncInsights.java | 27 +- .../glean_api_client/AsyncMessages.java | 27 +- .../glean_api_client/AsyncPins.java | 129 +- .../glean_api_client/AsyncSearch.java | 130 +- .../glean_api_client/AsyncVerification.java | 59 +- .../api_client/glean_api_client/Chat.java | 69 +- .../glean_api_client/ClientDocuments.java | 86 +- .../glean_api_client/ClientShortcuts.java | 137 +- .../glean_api_client/Collections.java | 218 +- .../api_client/glean_api_client/Entities.java | 58 +- .../api_client/glean_api_client/Glean.java | 29 - .../api_client/glean_api_client/Insights.java | 28 +- .../api_client/glean_api_client/Messages.java | 28 +- .../api_client/glean_api_client/Pins.java | 134 +- .../glean_api_client/SDKConfiguration.java | 50 +- .../api_client/glean_api_client/Search.java | 135 +- .../glean_api_client/Verification.java | 61 +- .../models/components/AgentEnum.java | 6 +- .../models/components/AiAppActionCounts.java | 485 - .../components/AiAppsInsightsResponse.java | 360 - .../models/components/AiInsightsResponse.java | 785 - .../components/AssistantActivityType.java | 37 - .../components/ContentInsightsResponse.java | 376 - .../components/CustomDatasourceConfig.java | 5 + .../models/components/DocumentInsight.java | 187 - .../models/components/GleanDataError.java | 72 +- .../models/components/InputOptions.java | 82 +- .../InsightsAgentsRequestOptions.java | 131 - .../InsightsAiAppRequestOptions.java | 131 - .../models/components/InsightsRequest.java | 396 +- .../components/InsightsRequestCategory.java | 47 - .../models/components/InsightsResponse.java | 618 +- .../models/components/QueryInsight.java | 351 - .../components/QueryInsightsResponse.java | 377 - .../models/components/ShortcutInsight.java | 187 - .../components/ShortcutInsightsResponse.java | 316 - .../models/components/UgcType.java | 3 +- .../components/UserInsightsResponse.java | 443 - .../models/errors/GleanDataError.java | 80 +- .../operations/AddcollectionitemsRequest.java | 185 + .../AddcollectionitemsRequestBuilder.java | 35 +- .../AddverificationreminderRequest.java | 185 + ...AddverificationreminderRequestBuilder.java | 35 +- .../models/operations/AdminsearchRequest.java | 185 + .../operations/AdminsearchRequestBuilder.java | 35 +- .../operations/AutocompleteRequest.java | 184 + .../AutocompleteRequestBuilder.java | 35 +- .../models/operations/ChatRequest.java | 83 +- .../models/operations/ChatRequestBuilder.java | 17 +- .../operations/CreateannouncementRequest.java | 185 + .../CreateannouncementRequestBuilder.java | 35 +- .../operations/CreateanswerRequest.java | 185 + .../CreateanswerRequestBuilder.java | 35 +- .../operations/CreatecollectionRequest.java | 185 + .../CreatecollectionRequestBuilder.java | 35 +- .../operations/CreateshortcutRequest.java | 185 + .../CreateshortcutRequestBuilder.java | 35 +- .../operations/DeleteallchatsRequest.java | 83 +- .../DeleteallchatsRequestBuilder.java | 17 +- .../operations/DeleteannouncementRequest.java | 185 + .../DeleteannouncementRequestBuilder.java | 35 +- .../operations/DeleteanswerRequest.java | 185 + .../DeleteanswerRequestBuilder.java | 35 +- .../operations/DeletechatfilesRequest.java | 83 +- .../DeletechatfilesRequestBuilder.java | 17 +- .../models/operations/DeletechatsRequest.java | 83 +- .../operations/DeletechatsRequestBuilder.java | 17 +- .../operations/DeletecollectionRequest.java | 185 + .../DeletecollectionRequestBuilder.java | 35 +- .../DeletecollectionitemRequest.java | 185 + .../DeletecollectionitemRequestBuilder.java | 35 +- .../operations/DeleteshortcutRequest.java | 185 + .../DeleteshortcutRequestBuilder.java | 35 +- .../models/operations/EditanswerRequest.java | 185 + .../operations/EditanswerRequestBuilder.java | 35 +- .../operations/EditcollectionRequest.java | 185 + .../EditcollectionRequestBuilder.java | 35 +- .../operations/EditcollectionitemRequest.java | 185 + .../EditcollectionitemRequestBuilder.java | 35 +- .../models/operations/EditpinRequest.java | 185 + .../operations/EditpinRequestBuilder.java | 35 +- .../models/operations/FeedRequest.java | 184 + .../models/operations/FeedRequestBuilder.java | 35 +- .../models/operations/GetAgentRequest.java | 83 +- .../operations/GetAgentRequestBuilder.java | 16 +- .../operations/GetAgentSchemasRequest.java | 83 +- .../GetAgentSchemasRequestBuilder.java | 16 +- .../models/operations/GetanswerRequest.java | 185 + .../operations/GetanswerRequestBuilder.java | 35 +- .../models/operations/GetchatRequest.java | 83 +- .../operations/GetchatRequestBuilder.java | 17 +- .../operations/GetchatapplicationRequest.java | 83 +- .../GetchatapplicationRequestBuilder.java | 17 +- .../operations/GetchatfilesRequest.java | 83 +- .../GetchatfilesRequestBuilder.java | 17 +- .../operations/GetcollectionRequest.java | 185 + .../GetcollectionRequestBuilder.java | 35 +- .../operations/GetdocpermissionsRequest.java | 185 + .../GetdocpermissionsRequestBuilder.java | 35 +- .../operations/GetdocumentsRequest.java | 205 + .../GetdocumentsRequestBuilder.java | 40 +- .../GetdocumentsbyfacetsRequest.java | 205 + .../GetdocumentsbyfacetsRequestBuilder.java | 40 +- .../models/operations/GetpinRequest.java | 185 + .../operations/GetpinRequestBuilder.java | 35 +- .../models/operations/GetshortcutRequest.java | 185 + .../operations/GetshortcutRequestBuilder.java | 35 +- .../models/operations/InsightsRequest.java | 184 + .../operations/InsightsRequestBuilder.java | 35 +- .../models/operations/ListanswersRequest.java | 185 + .../operations/ListanswersRequestBuilder.java | 35 +- .../models/operations/ListchatsRequest.java | 83 +- .../operations/ListchatsRequestBuilder.java | 17 +- .../operations/ListcollectionsRequest.java | 185 + .../ListcollectionsRequestBuilder.java | 35 +- .../operations/ListentitiesRequest.java | 185 + .../ListentitiesRequestBuilder.java | 35 +- .../models/operations/ListpinsRequest.java | 142 +- .../operations/ListpinsRequestBody.java | 62 + .../operations/ListpinsRequestBuilder.java | 33 +- .../operations/ListshortcutsRequest.java | 185 + .../ListshortcutsRequestBuilder.java | 35 +- .../operations/ListverificationsRequest.java | 89 +- .../ListverificationsRequestBuilder.java | 17 +- .../models/operations/MessagesRequest.java | 184 + .../operations/MessagesRequestBuilder.java | 35 +- .../models/operations/PeopleRequest.java | 184 + .../operations/PeopleRequestBuilder.java | 35 +- .../models/operations/PinRequest.java | 184 + .../models/operations/PinRequestBuilder.java | 35 +- .../operations/RecommendationsRequest.java | 184 + .../RecommendationsRequestBuilder.java | 35 +- .../models/operations/SearchRequest.java | 184 + .../operations/SearchRequestBuilder.java | 35 +- .../models/operations/SummarizeRequest.java | 184 + .../operations/SummarizeRequestBuilder.java | 35 +- .../models/operations/UnpinRequest.java | 185 + .../operations/UnpinRequestBuilder.java | 35 +- .../operations/UpdateannouncementRequest.java | 185 + .../UpdateannouncementRequestBuilder.java | 35 +- .../operations/UpdateshortcutRequest.java | 185 + .../UpdateshortcutRequestBuilder.java | 35 +- .../operations/UploadchatfilesRequest.java | 83 +- .../UploadchatfilesRequestBuilder.java | 17 +- .../models/operations/VerifyRequest.java | 184 + .../operations/VerifyRequestBuilder.java | 35 +- .../AddcollectionitemsRequestBuilder.java | 36 +- ...AddverificationreminderRequestBuilder.java | 36 +- .../async/AdminsearchRequestBuilder.java | 36 +- .../async/AutocompleteRequestBuilder.java | 35 +- .../operations/async/ChatRequestBuilder.java | 17 +- .../CreateannouncementRequestBuilder.java | 36 +- .../async/CreateanswerRequestBuilder.java | 36 +- .../async/CreatecollectionRequestBuilder.java | 36 +- .../async/CreateshortcutRequestBuilder.java | 36 +- .../async/DeleteallchatsRequestBuilder.java | 17 +- .../DeleteannouncementRequestBuilder.java | 36 +- .../async/DeleteanswerRequestBuilder.java | 36 +- .../async/DeletechatfilesRequestBuilder.java | 17 +- .../async/DeletechatsRequestBuilder.java | 17 +- .../async/DeletecollectionRequestBuilder.java | 36 +- .../DeletecollectionitemRequestBuilder.java | 36 +- .../async/DeleteshortcutRequestBuilder.java | 36 +- .../async/EditanswerRequestBuilder.java | 36 +- .../async/EditcollectionRequestBuilder.java | 36 +- .../EditcollectionitemRequestBuilder.java | 36 +- .../async/EditpinRequestBuilder.java | 36 +- .../operations/async/FeedRequestBuilder.java | 35 +- .../async/GetAgentRequestBuilder.java | 16 +- .../async/GetAgentSchemasRequestBuilder.java | 16 +- .../async/GetanswerRequestBuilder.java | 36 +- .../async/GetchatRequestBuilder.java | 17 +- .../GetchatapplicationRequestBuilder.java | 17 +- .../async/GetchatfilesRequestBuilder.java | 17 +- .../async/GetcollectionRequestBuilder.java | 36 +- .../GetdocpermissionsRequestBuilder.java | 36 +- .../async/GetdocumentsRequestBuilder.java | 41 +- .../GetdocumentsbyfacetsRequestBuilder.java | 41 +- .../async/GetpinRequestBuilder.java | 36 +- .../async/GetshortcutRequestBuilder.java | 36 +- .../async/InsightsRequestBuilder.java | 35 +- .../async/ListanswersRequestBuilder.java | 36 +- .../async/ListchatsRequestBuilder.java | 17 +- .../async/ListcollectionsRequestBuilder.java | 36 +- .../async/ListentitiesRequestBuilder.java | 36 +- .../async/ListpinsRequestBuilder.java | 34 +- .../async/ListshortcutsRequestBuilder.java | 36 +- .../ListverificationsRequestBuilder.java | 17 +- .../async/MessagesRequestBuilder.java | 35 +- .../async/PeopleRequestBuilder.java | 35 +- .../operations/async/PinRequestBuilder.java | 35 +- .../async/RecommendationsRequestBuilder.java | 35 +- .../async/SearchRequestBuilder.java | 35 +- .../async/SummarizeRequestBuilder.java | 35 +- .../operations/async/UnpinRequestBuilder.java | 36 +- .../UpdateannouncementRequestBuilder.java | 36 +- .../async/UpdateshortcutRequestBuilder.java | 36 +- .../async/UploadchatfilesRequestBuilder.java | 17 +- .../async/VerifyRequestBuilder.java | 35 +- .../operations/Addcollectionitems.java | 27 +- .../operations/Addverificationreminder.java | 27 +- .../operations/Adminsearch.java | 27 +- .../operations/Autocomplete.java | 15 +- .../operations/Createannouncement.java | 27 +- .../operations/Createanswer.java | 27 +- .../operations/Createcollection.java | 27 +- .../operations/Createshortcut.java | 27 +- .../operations/Deleteannouncement.java | 27 +- .../operations/Deleteanswer.java | 27 +- .../operations/Deletecollection.java | 27 +- .../operations/Deletecollectionitem.java | 27 +- .../operations/Deleteshortcut.java | 27 +- .../operations/Editanswer.java | 27 +- .../operations/Editcollection.java | 27 +- .../operations/Editcollectionitem.java | 27 +- .../glean_api_client/operations/Editpin.java | 27 +- .../glean_api_client/operations/Feed.java | 15 +- .../operations/Getanswer.java | 27 +- .../operations/Getcollection.java | 27 +- .../operations/Getdocpermissions.java | 27 +- .../operations/Getdocuments.java | 27 +- .../operations/Getdocumentsbyfacets.java | 27 +- .../glean_api_client/operations/Getpin.java | 27 +- .../operations/Getshortcut.java | 27 +- .../glean_api_client/operations/Insights.java | 15 +- .../operations/Listanswers.java | 27 +- .../operations/Listcollections.java | 27 +- .../operations/Listentities.java | 27 +- .../glean_api_client/operations/Listpins.java | 13 +- .../operations/Listshortcuts.java | 27 +- .../glean_api_client/operations/Messages.java | 15 +- .../glean_api_client/operations/People.java | 15 +- .../glean_api_client/operations/Pin.java | 15 +- .../operations/Recommendations.java | 15 +- .../glean_api_client/operations/Search.java | 15 +- .../operations/Summarize.java | 15 +- .../glean_api_client/operations/Unpin.java | 26 +- .../operations/Updateannouncement.java | 27 +- .../operations/Updateshortcut.java | 27 +- .../glean_api_client/operations/Verify.java | 15 +- 346 files changed, 73570 insertions(+), 65459 deletions(-) delete mode 100644 docs/models/components/AiAppActionCounts.md delete mode 100644 docs/models/components/AiAppsInsightsResponse.md delete mode 100644 docs/models/components/AiInsightsResponse.md delete mode 100644 docs/models/components/AssistantActivityType.md delete mode 100644 docs/models/components/ContentInsightsResponse.md delete mode 100644 docs/models/components/DocumentInsight.md delete mode 100644 docs/models/components/InsightsAgentsRequestOptions.md delete mode 100644 docs/models/components/InsightsAiAppRequestOptions.md delete mode 100644 docs/models/components/InsightsRequestCategory.md delete mode 100644 docs/models/components/QueryInsight.md delete mode 100644 docs/models/components/QueryInsightsResponse.md delete mode 100644 docs/models/components/ShortcutInsight.md delete mode 100644 docs/models/components/ShortcutInsightsResponse.md delete mode 100644 docs/models/components/UserInsightsResponse.md create mode 100644 docs/models/operations/AddcollectionitemsRequest.md create mode 100644 docs/models/operations/AddverificationreminderRequest.md create mode 100644 docs/models/operations/AdminsearchRequest.md create mode 100644 docs/models/operations/AutocompleteRequest.md create mode 100644 docs/models/operations/CreateannouncementRequest.md create mode 100644 docs/models/operations/CreateanswerRequest.md create mode 100644 docs/models/operations/CreatecollectionRequest.md create mode 100644 docs/models/operations/CreateshortcutRequest.md create mode 100644 docs/models/operations/DeleteannouncementRequest.md create mode 100644 docs/models/operations/DeleteanswerRequest.md create mode 100644 docs/models/operations/DeletecollectionRequest.md create mode 100644 docs/models/operations/DeletecollectionitemRequest.md create mode 100644 docs/models/operations/DeleteshortcutRequest.md create mode 100644 docs/models/operations/EditanswerRequest.md create mode 100644 docs/models/operations/EditcollectionRequest.md create mode 100644 docs/models/operations/EditcollectionitemRequest.md create mode 100644 docs/models/operations/EditpinRequest.md create mode 100644 docs/models/operations/FeedRequest.md create mode 100644 docs/models/operations/GetanswerRequest.md create mode 100644 docs/models/operations/GetcollectionRequest.md create mode 100644 docs/models/operations/GetdocpermissionsRequest.md create mode 100644 docs/models/operations/GetdocumentsRequest.md create mode 100644 docs/models/operations/GetdocumentsbyfacetsRequest.md create mode 100644 docs/models/operations/GetpinRequest.md create mode 100644 docs/models/operations/GetshortcutRequest.md create mode 100644 docs/models/operations/InsightsRequest.md create mode 100644 docs/models/operations/ListanswersRequest.md create mode 100644 docs/models/operations/ListcollectionsRequest.md create mode 100644 docs/models/operations/ListentitiesRequest.md create mode 100644 docs/models/operations/ListpinsRequestBody.md create mode 100644 docs/models/operations/ListshortcutsRequest.md create mode 100644 docs/models/operations/MessagesRequest.md create mode 100644 docs/models/operations/PeopleRequest.md create mode 100644 docs/models/operations/PinRequest.md create mode 100644 docs/models/operations/RecommendationsRequest.md create mode 100644 docs/models/operations/SearchRequest.md create mode 100644 docs/models/operations/SummarizeRequest.md create mode 100644 docs/models/operations/UnpinRequest.md create mode 100644 docs/models/operations/UpdateannouncementRequest.md create mode 100644 docs/models/operations/UpdateshortcutRequest.md create mode 100644 docs/models/operations/VerifyRequest.md delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/AiAppActionCounts.java delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/AiAppsInsightsResponse.java delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/AiInsightsResponse.java delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/AssistantActivityType.java delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/ContentInsightsResponse.java delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentInsight.java delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAgentsRequestOptions.java delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAiAppRequestOptions.java delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequestCategory.java delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/QueryInsight.java delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/QueryInsightsResponse.java delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/ShortcutInsight.java delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/ShortcutInsightsResponse.java delete mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/components/UserInsightsResponse.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/AddcollectionitemsRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/AddverificationreminderRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/AdminsearchRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/AutocompleteRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateannouncementRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateanswerRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/CreatecollectionRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateshortcutRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteannouncementRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteanswerRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionitemRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteshortcutRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/EditanswerRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionitemRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/EditpinRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/FeedRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetanswerRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetcollectionRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocpermissionsRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsbyfacetsRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpinRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetshortcutRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/InsightsRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListanswersRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListcollectionsRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListentitiesRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequestBody.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListshortcutsRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/MessagesRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/PeopleRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/PinRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/RecommendationsRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/SearchRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/SummarizeRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/UnpinRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateannouncementRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateshortcutRequest.java create mode 100644 src/main/java/com/glean/api_client/glean_api_client/models/operations/VerifyRequest.java diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 0170ac5a..f1086659 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,24 +1,24 @@ lockVersion: 2.0.0 id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1 management: - docChecksum: 91d38b9d4b28ef9b1b98e10a0b5a7371 + docChecksum: bf41552a1fc397e3087d104574cae5f1 docVersion: 0.9.0 - speakeasyVersion: 1.686.0 - generationVersion: 2.796.1 - releaseVersion: 0.12.14 - configChecksum: bf9eb5e00c90352b0085977e793701b9 + speakeasyVersion: 1.704.0 + generationVersion: 2.806.4 + releaseVersion: 0.12.15 + configChecksum: bbe29afbe19871895cb5b2e53ce0e04e repoURL: https://github.com/gleanwork/api-client-java.git published: true persistentEdits: - generation_id: 2ed7ab19-1e08-40f2-bdfa-d164607bde8a - pristine_commit_hash: 6d513fd0235afbde1ddb4e0e4d78a18c1747506c - pristine_tree_hash: 3388f1c3ba77ee23c3c8aaefc93bae4fb287e23a + generation_id: 93a4c69d-ef36-4bf0-a99a-3e6ef3f386fd + pristine_commit_hash: cfe0198811b49bc72fb9e8ac5a703715e61e60df + pristine_tree_hash: 18acba3bfa0616ddb293500b0a2861861de5a976 features: java: additionalDependencies: 0.1.0 additionalProperties: 0.0.1 - constsAndDefaults: 0.1.1 - core: 3.55.8 + constsAndDefaults: 0.1.2 + core: 3.55.10 deprecations: 2.81.2 examples: 2.81.6 flattening: 2.81.1 @@ -29,7 +29,7 @@ features: groups: 2.81.3 nameOverrides: 2.81.3 sdkHooks: 1.2.0 - unions: 0.3.1 + unions: 0.3.2 uploadStreams: 0.1.0 trackedFiles: .gitattributes: @@ -98,8 +98,8 @@ trackedFiles: pristine_git_object: d9e5ea7fa1ca0300ff752cc8b26da99f2ec1d5a9 docs/models/components/AgentEnum.md: id: a1335ebe5217 - last_write_checksum: sha1:3d1664930fb4babe2f691e13a7219ad4da573406 - pristine_git_object: b80a0fea061b82c998068e104db8348ad3ffaf13 + last_write_checksum: sha1:dee6147d8dec8665c584e1043096a012617d4917 + pristine_git_object: 2d52ff0296c170a67efa9e459d84ccbadfebc14c docs/models/components/AgentExecutionStatus.md: id: e847f6f86a93 last_write_checksum: sha1:bf35b6315cf3654117a529a944215bc366d133cd @@ -140,18 +140,6 @@ trackedFiles: id: 28489701e7da last_write_checksum: sha1:402ddfbffd49b46c6e864fa506bd1ef2c3342d7d pristine_git_object: 608a98158a463de361d412e6fee1d3ea611e21bc - docs/models/components/AiAppActionCounts.md: - id: 6d0d4c43d825 - last_write_checksum: sha1:1abdccdaf74cda17e14987799d6ffb47fcb04720 - pristine_git_object: c248f979c5b7ef0d7fa8cb71f4e3c5006c1a821f - docs/models/components/AiAppsInsightsResponse.md: - id: 73d61acb2634 - last_write_checksum: sha1:6551f7a5037b703cdab4641ff4bece7be9029842 - pristine_git_object: f5ec48a9c4206cc39b05dd5fcfe844480b46af99 - docs/models/components/AiInsightsResponse.md: - id: a04f508eb498 - last_write_checksum: sha1:244f5b3b65e770abc3ed9159323b37704b13288d - pristine_git_object: 0bf5ccf1ea25f67580ef5f9c6925fa38b5869f31 docs/models/components/AllowlistOptions.md: id: 2922f212478e last_write_checksum: sha1:968b917a4fb7eaabb411db2d2e81c1e4009fd50a @@ -212,10 +200,6 @@ trackedFiles: id: 1e7bee55c907 last_write_checksum: sha1:fd4204fc52a255425c31f8eaf04845ddc0aba8d2 pristine_git_object: 175061d71c6c8ab7ca4e497d9776d3f6701c754a - docs/models/components/AssistantActivityType.md: - id: 0427a325b441 - last_write_checksum: sha1:902006322e01297d66c98716a3c4de189bef8329 - pristine_git_object: 9502cc831072bffebc21349b523359d317cfed9a docs/models/components/AssistantInsightsResponse.md: id: 70f4085a5cb9 last_write_checksum: sha1:7f602ab9842b6b67994d6f801c7283ccff3e0100 @@ -508,10 +492,6 @@ trackedFiles: id: 67b0e784aa52 last_write_checksum: sha1:8eea051d4dc5337ae2d2293149a3e8e3baf8c384 pristine_git_object: 75dad832decb0ab07cb2236a3c4787eeef45ea87 - docs/models/components/ContentInsightsResponse.md: - id: 0bbbb91bc28b - last_write_checksum: sha1:a24fac44218a7a99da3827249649c4ec646377e6 - pristine_git_object: 5bd03170bcc3ae2d25a63c4cbac0a6395592c0ba docs/models/components/ContentType.md: id: 1968c9ae65c3 last_write_checksum: sha1:aa88820dcb37e4eb55531b8f049d00990d8cc344 @@ -852,10 +832,6 @@ trackedFiles: id: dcd218c88535 last_write_checksum: sha1:1bdf0337b03d191b4b9905c339ac33a76159cc0c pristine_git_object: 8aca439026d437f94aa4e16d3adb0943a3dc6567 - docs/models/components/DocumentInsight.md: - id: 4a55e7a19833 - last_write_checksum: sha1:5bbd277978a88f80af8b3f66d0dc5dc70a56340f - pristine_git_object: 509ba8c45d2d10b694f444eec681f25e5aa16192 docs/models/components/DocumentInteractions.md: id: 3aabc1877e7f last_write_checksum: sha1:d1c1a2be4bba316d771f462e81c35a5ade678b35 @@ -1286,8 +1262,8 @@ trackedFiles: pristine_git_object: 70cc18a663a8e0c20346f918b59c4e96ec1902e9 docs/models/components/GleanDataError.md: id: a86b292f0e28 - last_write_checksum: sha1:d5cf3012db6dd45d481e0c3fda55c489d0e89ca1 - pristine_git_object: 6de1ebcddc71869d56f1b3b0dca17e8ee4484349 + last_write_checksum: sha1:6248a6b2912b5aaf4b51a29c7049af274a060d85 + pristine_git_object: fa12f9644bab377f09064f69869097b40cbea2b6 docs/models/components/GrantPermission.md: id: 85bb47b74049 last_write_checksum: sha1:7192b8a87a07a72c0fdee634468f650eac650826 @@ -1378,8 +1354,8 @@ trackedFiles: pristine_git_object: dc3592ff09434ded18e0862142511753b690f448 docs/models/components/InputOptions.md: id: 517f976a3847 - last_write_checksum: sha1:65b2f519d7cdc2d529cf4f1a2134291b0e9ecc65 - pristine_git_object: ec5ea989e3cf85f91f3e0324b783562b50afa1d8 + last_write_checksum: sha1:44d17fd8fee8c8cb9c5b26241b12eb3105b06eec + pristine_git_object: 32c0cb8b410c69d814c4455eff9715c6b7c0dc1d docs/models/components/InputOptionsTimePeriodType.md: id: 9fba4daa3d01 last_write_checksum: sha1:d6ef77da924ac56d32f6bbf5401d360bf8757bb8 @@ -1388,14 +1364,6 @@ trackedFiles: id: 20f3dfb688fd last_write_checksum: sha1:05d1c3d1aa27fe96584c28bdb93110e7f38ce2ed pristine_git_object: 6c2fc6ab04a050a3586ef8014d4ee48c343abf92 - docs/models/components/InsightsAgentsRequestOptions.md: - id: 8f1c5cd04b96 - last_write_checksum: sha1:7ea4d7486727932e89488c189723c4c533083b7b - pristine_git_object: 9f6df58c548be27f3f8b6da28edfd59accd7dec7 - docs/models/components/InsightsAiAppRequestOptions.md: - id: deeadf358e38 - last_write_checksum: sha1:361d64479866bd3ed78c04128c03a03282f6b95c - pristine_git_object: fd48f69615b88a998ad1e96aff819613d650c7cf docs/models/components/InsightsAssistantRequest.md: id: baf2b151078e last_write_checksum: sha1:3879eaba05affbcba27bea8a49db74589c987131 @@ -1414,16 +1382,12 @@ trackedFiles: pristine_git_object: 6724bad81901ac0eaec3efad35d784cd1adc0aff docs/models/components/InsightsRequest.md: id: bca39583d1ca - last_write_checksum: sha1:285e7770efbc7fe175f3a341ba8ebd79f34fb295 - pristine_git_object: 3e66699d05dcbbf4d1a74bcc52f350ec3ab94a0d - docs/models/components/InsightsRequestCategory.md: - id: cd797250d138 - last_write_checksum: sha1:4cd9746405c6425111d5c2f35d0b6a59e50205b2 - pristine_git_object: f5831a04a99a98e2adcd70de67befae69e73a531 + last_write_checksum: sha1:5bf841888c51c1ac5666f3a0ce26fe728ba5439d + pristine_git_object: 775529b92c47d6a2d16f014a18f0bb28d5eb77db docs/models/components/InsightsResponse.md: id: 147783df35c9 - last_write_checksum: sha1:b672d6843f75a436cbc28811a955c5cc7412f29a - pristine_git_object: 8991c086b003f09179c0fde0a4136d7a9cf8fe13 + last_write_checksum: sha1:6784bd682698978be7e43e2edf0051b4cfb573a2 + pristine_git_object: 2d17dfe6b05a4fb667417965e9fe9abbc0f977c9 docs/models/components/InsightsSearchSummary.md: id: 3f923e978a12 last_write_checksum: sha1:b1352a09698a72a0a7f11495ffc558b4b673fb8b @@ -1724,14 +1688,6 @@ trackedFiles: id: 9c5352edb197 last_write_checksum: sha1:55402a9d8dd1717bc142e73fdd2d61df4bce1edc pristine_git_object: d83acab17ddb85f85f4c56807ae1ed61394c33b2 - docs/models/components/QueryInsight.md: - id: b19e6b075ecc - last_write_checksum: sha1:4fbcf0712dc5937bc43efe0c914aca86c3775ac9 - pristine_git_object: 097dcfbedc6d7501f00fcc3ddc47d2864fb72f77 - docs/models/components/QueryInsightsResponse.md: - id: 9b54490d27a0 - last_write_checksum: sha1:37fcb9cd46414b07333312962f10ddb35fcbcaa8 - pristine_git_object: 3c0468170715a8154e4a5c6c226c02d4aac6a99c docs/models/components/QuerySuggestion.md: id: 25cbbf1b5692 last_write_checksum: sha1:dd52a8f7848c7529d010f00df4cab56434a43309 @@ -1960,14 +1916,6 @@ trackedFiles: id: 1064ab729e27 last_write_checksum: sha1:b575a3e05d41c294daf87ae995b425f59dab2dcd pristine_git_object: a253b5366e2a7b610237a51be51015f755da88ff - docs/models/components/ShortcutInsight.md: - id: 5d035c6b978d - last_write_checksum: sha1:81af2eb033d2991e2ccbf5f1bd52c6b3a8f0919c - pristine_git_object: 281b103b605de5a40d24af5816ec90d61c090f40 - docs/models/components/ShortcutInsightsResponse.md: - id: bad1287b9799 - last_write_checksum: sha1:9924c48f450b1201b15a7f444c82da146208ca43 - pristine_git_object: f3afcb62d9969f2a1845a1ff3e9c35a265d97d95 docs/models/components/ShortcutMutableProperties.md: id: b0f964dad313 last_write_checksum: sha1:a27e10a9f8829bfcbb5ea8ba32571dddad69dd18 @@ -2138,8 +2086,8 @@ trackedFiles: pristine_git_object: bd49396b8d7cd30cec42c478f1dbb9a5973eae5b docs/models/components/UgcType.md: id: 15d7c1cbb511 - last_write_checksum: sha1:8fcd6e88ae59b47d95bb14af60fc5c73ea855903 - pristine_git_object: 252dc1e7c76ef09a6d54fd638755bdac75106573 + last_write_checksum: sha1:30a5948367e5057f4bfbc79bbfc1784aa393445b + pristine_git_object: ffb3d59b7d83e940ee855d8889d512f1c2495883 docs/models/components/UiConfig.md: id: 7b2325b9a499 last_write_checksum: sha1:16c1b7ddda6f305a85f53949ae5acdfbc043883e @@ -2240,10 +2188,6 @@ trackedFiles: id: 0f2d01a3bc13 last_write_checksum: sha1:012128c5c20f56fa253f23ae21f13029dcd90e21 pristine_git_object: 1e4079f2d0ded1af3025fed92576f22e8f59c408 - docs/models/components/UserInsightsResponse.md: - id: 21c656a17fdc - last_write_checksum: sha1:c58a68d7c964c1aa9488d136bf3abc947e7f3fca - pristine_git_object: fac68b2a107ad309278aff942ab06b8999f4d031 docs/models/components/UserReferenceDefinition.md: id: 78609cda411a last_write_checksum: sha1:b53858714de55d944a92a460f76c3333a58c441a @@ -2338,32 +2282,48 @@ trackedFiles: pristine_git_object: e49e34f188c53385ee977d1f6e4d5c8fed1274a6 docs/models/errors/GleanDataError.md: id: 90db26d988e3 - last_write_checksum: sha1:d5cf3012db6dd45d481e0c3fda55c489d0e89ca1 - pristine_git_object: 6de1ebcddc71869d56f1b3b0dca17e8ee4484349 + last_write_checksum: sha1:6248a6b2912b5aaf4b51a29c7049af274a060d85 + pristine_git_object: fa12f9644bab377f09064f69869097b40cbea2b6 docs/models/operations/ActivityResponse.md: id: abb6e00957d5 last_write_checksum: sha1:abc14096d3cb9aed19f041351a32089f5f000289 pristine_git_object: 16b625baddc73d43c4daa4b31399ecf468d19b1c + docs/models/operations/AddcollectionitemsRequest.md: + id: b20e218afda1 + last_write_checksum: sha1:374b2c5cd1742f62207575523100e631a63b7b82 + pristine_git_object: 61e48646e44e1a340624492088fe412b87b066bc docs/models/operations/AddcollectionitemsResponse.md: id: c0807f3003c8 last_write_checksum: sha1:512122bb6a4857d93e045ed8fefa402596c54cc9 pristine_git_object: 2a66adfc8ac489c7cc0a56b70b6317c6d1dcced5 + docs/models/operations/AddverificationreminderRequest.md: + id: b382f2b9bf94 + last_write_checksum: sha1:495324bd5ccf0fa6ccd2c05a5fe086694c4cee45 + pristine_git_object: e25955d4c94e0dc50eeaa0a1508e6855111555bb docs/models/operations/AddverificationreminderResponse.md: id: 695779dc70c9 last_write_checksum: sha1:de8c57336f257e06db76741723559d9ebb56f92f pristine_git_object: 99b366f0320956b1e9902517f555cd3ced959a51 + docs/models/operations/AdminsearchRequest.md: + id: 0cf532c59a55 + last_write_checksum: sha1:cc19633ba0b7b8667111195e14b7f5063e2c538b + pristine_git_object: 0c33742d12f27cc5d8cd444f7d13d7e5c19f186b docs/models/operations/AdminsearchResponse.md: id: 170592e13ec9 last_write_checksum: sha1:580b2b7ec60c57fc7653bc07c47ed73b10a0a0a1 pristine_git_object: e1aacc027e7e63b961f8988d923ebeaa8fb88922 + docs/models/operations/AutocompleteRequest.md: + id: 9ccbc7b72fe5 + last_write_checksum: sha1:08c06e938619514f2abb41bb3e78d5b8fe58c172 + pristine_git_object: f9ffbf270a1a39322d9b3f294f99549f1e28af9c docs/models/operations/AutocompleteResponse.md: id: b5143b5f8ded last_write_checksum: sha1:6d09d573879ab07255ca464fcbaea639ea2257ad pristine_git_object: 1529eb3c5517c2971abb350d343853cc393f6842 docs/models/operations/ChatRequest.md: id: 2afa25dfed0a - last_write_checksum: sha1:d72b6877157fd8e827f815e7ae2b863262a5a35c - pristine_git_object: 9b250a8a398ca6827f6156a569daac89d40b8d22 + last_write_checksum: sha1:c1bfa73ebae5c9b635e315ec48ff5021cbe6b3e4 + pristine_git_object: 8a636fe716d517a8a47e4f47f698a1d91a212c4e docs/models/operations/ChatResponse.md: id: aac6c64724a6 last_write_checksum: sha1:b65333639ae237406da5d0db258cfadc1cba689f @@ -2384,10 +2344,18 @@ trackedFiles: id: 85bb6d052c47 last_write_checksum: sha1:c879f4accbbff4520e8e89f661d920cf429b9015 pristine_git_object: 8458fe0eadd6d047409ff5dd31ee80e9e20e8d03 + docs/models/operations/CreateannouncementRequest.md: + id: 7f0f4c6d78f2 + last_write_checksum: sha1:29697bf5d6910590ef558ad4599ba2bfd3f97902 + pristine_git_object: 162692106d385dbc0c2f64f3e7c8bb2fc6a5774e docs/models/operations/CreateannouncementResponse.md: id: 732cf498f204 last_write_checksum: sha1:81336b0bd3ee242b4443d5557fbae6ffbd17a826 pristine_git_object: 24b325b30e934f95514c7eade886db264dcebc35 + docs/models/operations/CreateanswerRequest.md: + id: 670b33629d9f + last_write_checksum: sha1:17bf88fa5d11e3085887f8e3cc05ecd2478f249a + pristine_git_object: 61028a6ab11664525324881635e4289c05885212 docs/models/operations/CreateanswerResponse.md: id: 9ae697506596 last_write_checksum: sha1:218146b2ffd33b210b612ead9ec111573f42e1ba @@ -2396,6 +2364,10 @@ trackedFiles: id: e3605585264f last_write_checksum: sha1:a2d175890ef2297517e2e05a33a8d63adc58898b pristine_git_object: 053c6a7c0cfd252d332e54c5c32ae0cc9fdf15a6 + docs/models/operations/CreatecollectionRequest.md: + id: c7fd3eb6ead4 + last_write_checksum: sha1:0a0fc3e762cb2d58f8da91cc44fc24c31cd6148e + pristine_git_object: 2736d030c6ad4c1092dcc13c387e788990a16f0a docs/models/operations/CreatecollectionResponse.md: id: bd675ab93005 last_write_checksum: sha1:c7edb325c97cf39ad7d4db6f7f055b86e2c48591 @@ -2416,46 +2388,66 @@ trackedFiles: id: 802e43e4164a last_write_checksum: sha1:26de94bb654584f08605ad6981d4069fbfd689bb pristine_git_object: 0f47440fb736eaad2f2857e4b5ab6d27d3b9a2ea + docs/models/operations/CreateshortcutRequest.md: + id: 31ac180c9eeb + last_write_checksum: sha1:0802267dbf68928887b998a20f4f2ee40d15f9ca + pristine_git_object: 26a59f1770c67784f74ef8f8ae33e7b9f0a3d2b1 docs/models/operations/CreateshortcutResponse.md: id: 1613ee303e01 last_write_checksum: sha1:7d0eb3cf4a166970937b8fb612454af537469c22 pristine_git_object: 48105ad3e00d6888067ad5dd155836e4cd0b9a29 docs/models/operations/DeleteallchatsRequest.md: id: 45dfb4bff1f9 - last_write_checksum: sha1:c3ea58fd770307665e0b89dcb4d2b4dffa46e302 - pristine_git_object: c39f89e7f826118ae08d9fb9618f57a86e57a08b + last_write_checksum: sha1:5555c3bac11a0023e1982bc9127b3d730f4c6cbc + pristine_git_object: b1c581064c06858b0fc04c0361dbc7c243251002 docs/models/operations/DeleteallchatsResponse.md: id: 2f9c78c9d8ac last_write_checksum: sha1:5166192a81827372c58439e55932afcd791f51c1 pristine_git_object: 04e8169f511fcd5b08d6e32cb63e347c18518455 + docs/models/operations/DeleteannouncementRequest.md: + id: 979ea7d6da81 + last_write_checksum: sha1:782fc374c496c2f9a258afbf61fe230b5eaf1eec + pristine_git_object: 0e0e641d9f95f1090ac91015dca9e8db3647208a docs/models/operations/DeleteannouncementResponse.md: id: 8093d0aa8248 last_write_checksum: sha1:48c1aaf594378e0a200481ff54954bb5d02dd37e pristine_git_object: f87398af8ea0f945eada43cbdfbedfa9334de33f + docs/models/operations/DeleteanswerRequest.md: + id: a51f1417a77a + last_write_checksum: sha1:7d236f3702ff7c4b52c26070743bce0fb11cbe00 + pristine_git_object: d52ebc1fea7aaea764f0ec3d89e6166143792291 docs/models/operations/DeleteanswerResponse.md: id: 7cc3f1847d61 last_write_checksum: sha1:460ef3de58df83064dc503440b7bffdb83ef93d4 pristine_git_object: ddd797999f97ed0d4613c79de25daf5116ed640a docs/models/operations/DeletechatfilesRequest.md: id: f29cb0c2b947 - last_write_checksum: sha1:07d2c4bc0a120187c1f7065d754e6cddbb349c25 - pristine_git_object: 46b490d33fbb63c86e356486e36461b02cb6a759 + last_write_checksum: sha1:4b586f617ed801ced78accafed64677e0d90e112 + pristine_git_object: ccf1acf8f8eb528410bcabe52283d74874eddb99 docs/models/operations/DeletechatfilesResponse.md: id: c6c57f0615b5 last_write_checksum: sha1:2eeef18172dccb1cd1a2beb4a99806c5040387fa pristine_git_object: a4632c9d9fe9b8c3792d1bd025640a2f600e9b51 docs/models/operations/DeletechatsRequest.md: id: cc3e1e531758 - last_write_checksum: sha1:b14f51a46f38f41c5010ee8e7c7b0160a3114a5a - pristine_git_object: 53f5c1e81e1f664bf9781fce1fa430ae9bf6dd17 + last_write_checksum: sha1:61d28b4c0f45aebd9e7c7ff231eba8076ed24d1a + pristine_git_object: c54602910110f6da2d1624cfb1615dfabdfd6e90 docs/models/operations/DeletechatsResponse.md: id: d267e29282aa last_write_checksum: sha1:335d2b0d7a15720fb32ec9b0f1847ad999eaff84 pristine_git_object: 63fede7de7e74f97925d2825cad10b6c0ca0e0d2 + docs/models/operations/DeletecollectionRequest.md: + id: 64bccd248e28 + last_write_checksum: sha1:08f8a0cc3ec7b41f95edaec7a389a2e8af161f51 + pristine_git_object: 6a0e715a2ce6191df25b83cb1ef0f1482fbe26a6 docs/models/operations/DeletecollectionResponse.md: id: 3c288d85ed14 last_write_checksum: sha1:487d68815630a0f074389e9f3aea9261dd7b781f pristine_git_object: 81cd16f40ba130a2c12cd57bef4a6bce3c29b081 + docs/models/operations/DeletecollectionitemRequest.md: + id: e240e522c39a + last_write_checksum: sha1:df499cca78b35d65dd5f12d5426d3498ad2b705b + pristine_git_object: c2ace3e93ed7c87608ca8b428c414bc527dbc04e docs/models/operations/DeletecollectionitemResponse.md: id: 5e78522c7788 last_write_checksum: sha1:26412bf624e8159c5d8dedfd86a4e2bb0bf6d602 @@ -2468,6 +2460,10 @@ trackedFiles: id: 497b6acc8884 last_write_checksum: sha1:4d81b7adf57b00b17c018b2521cc8428d1303987 pristine_git_object: cef5918655b480d1307468fb5f0045aed289dc48 + docs/models/operations/DeleteshortcutRequest.md: + id: 338ae387105d + last_write_checksum: sha1:d6d96805f301bfec941d048e1b7239bb1f13afd3 + pristine_git_object: 5f91581d331488a195826899a2bd76c3bb2a6336 docs/models/operations/DeleteshortcutResponse.md: id: d902fab0d600 last_write_checksum: sha1:6d1227863443d3ec6d3fd3ab60a602fdeff66b37 @@ -2496,22 +2492,42 @@ trackedFiles: id: 2061390bb49a last_write_checksum: sha1:93e94ad65c06952e0d606026e702af4cc07f4981 pristine_git_object: 2dd1f1d74ea689288b9cacc11b999cadc29e679c + docs/models/operations/EditanswerRequest.md: + id: 7603305c056a + last_write_checksum: sha1:858f528f26695a86753f72055e62eea0265dbf7e + pristine_git_object: a15a76877e00ab13bd47901a1c948cf7246f93d5 docs/models/operations/EditanswerResponse.md: id: 236cfbf361f0 last_write_checksum: sha1:65ae977f3a9e686e212dbddd9431a3eddf6bb128 pristine_git_object: 42a73bd1ae44e8bd8dd97d9edc5d203bc60227cb + docs/models/operations/EditcollectionRequest.md: + id: e3a744822ef5 + last_write_checksum: sha1:050d11236653ff35adb58d7255e944fad477ab76 + pristine_git_object: 79cff712d15b3242d7948fbc4d53d7b7f24b61b4 docs/models/operations/EditcollectionResponse.md: id: f5dd25ae6fa2 last_write_checksum: sha1:e89e73eccb37fe0ce946bbb553a6da0de34ea208 pristine_git_object: fcac435f446fb6bab26eecfd783499042e639a04 + docs/models/operations/EditcollectionitemRequest.md: + id: 6704ed9d0723 + last_write_checksum: sha1:6b342ac7a67abb88c8508b8b5ed936eb728e5b0e + pristine_git_object: bc6508363f95c3c09ec3426784fbb7ac7cf4add3 docs/models/operations/EditcollectionitemResponse.md: id: 1940a2a1ff27 last_write_checksum: sha1:d47a2244762b1c8a89025af46901c780f658f195 pristine_git_object: 2db4bf6b97b87dbcbbb3fe3ccb35cd08866fb45d + docs/models/operations/EditpinRequest.md: + id: 7ccfcfceb18a + last_write_checksum: sha1:6192e827049ddaa4dbdb19fbf78676333bfdab70 + pristine_git_object: 7f4140aa03a31bec2a842018779a21906288640f docs/models/operations/EditpinResponse.md: id: 594921b03579 last_write_checksum: sha1:df048ad9dcf2dcf892f54965183dc0a53286984d pristine_git_object: 71f96807a4d97aa613c766ca7bc9ae1a682888bd + docs/models/operations/FeedRequest.md: + id: 4e5e515a6d5c + last_write_checksum: sha1:9c7711335c9646414fe9be10819bc0728f809c18 + pristine_git_object: 97617653e91faf52c07e99559dfb383294c3f0f6 docs/models/operations/FeedResponse.md: id: c8e100585002 last_write_checksum: sha1:8778374f32d088148b3538bd09c8d0ef3e991b98 @@ -2526,16 +2542,16 @@ trackedFiles: pristine_git_object: e4a08afd410535d59e8b7fc8e046b95672116395 docs/models/operations/GetAgentRequest.md: id: 3ed15a4c9608 - last_write_checksum: sha1:f5e5119483006dd4150818cf8b85414022c0d719 - pristine_git_object: 3619e76f6de976e9c59e4ecfe2304370ad514ceb + last_write_checksum: sha1:94a980c7a47ae0571a189dc645a0f2644f8ace87 + pristine_git_object: 0423973914ae84affa0fb479d77d9ee28ba299fb docs/models/operations/GetAgentResponse.md: id: 7461e813239b last_write_checksum: sha1:ae22b3bc18941c62b5006ca7dead3f9055957f0d pristine_git_object: f672a03397722eef07e58d1b8529a0578f4dfb3b docs/models/operations/GetAgentSchemasRequest.md: id: d517deaeb1d9 - last_write_checksum: sha1:0949450051068b5c3bea38d59081f5f0f5e8c2b7 - pristine_git_object: b803f130e456eedffcb9be98b7f3142aca872792 + last_write_checksum: sha1:15094a873888023bf91333f74fc1b5562aae1f55 + pristine_git_object: c16ab0cb83358d7dc4a3c70a123cc7c10d0040dd docs/models/operations/GetAgentSchemasResponse.md: id: b9d15ac782eb last_write_checksum: sha1:43b809ae9de45cee4700b082b0c53fe4a444e036 @@ -2548,46 +2564,66 @@ trackedFiles: id: da8605b18a19 last_write_checksum: sha1:926bb8c52ec6794915462003f7ea07732694b594 pristine_git_object: 2e0336bc4778c1df08adf302cefb948b522c892c + docs/models/operations/GetanswerRequest.md: + id: b60ff7df95a1 + last_write_checksum: sha1:b53463f14c0441d4f9743c5c435b0b1315a04e95 + pristine_git_object: 1106c6d6f0aa9b79e154d24c75c127bb3728f084 docs/models/operations/GetanswerResponse.md: id: 3b169ed0b27b last_write_checksum: sha1:bb396551e30514d64ee33774d0ea114b37afc603 pristine_git_object: e0e1ce8529e02296c490a7866c5d2053afd077b9 docs/models/operations/GetchatRequest.md: id: 5ce481a85211 - last_write_checksum: sha1:f8eb5e138e8e1a5826410f56c7743accd1ea4f49 - pristine_git_object: b80f715d16639f9b5320ac13dc6d20484b380de0 + last_write_checksum: sha1:6c4af28b7f5e43fd41bd69ff76b4ba0dd6b3904e + pristine_git_object: fa8b7ecb23def4080af379ae5f38b3c770e95d4d docs/models/operations/GetchatResponse.md: id: 477678d5febc last_write_checksum: sha1:b3d374a6089027d6c6b89cbbe2e539dd1f99a18e pristine_git_object: daa14919319186b306b35785940a41a11c1491e1 docs/models/operations/GetchatapplicationRequest.md: id: f65711a296fd - last_write_checksum: sha1:1bbda261592e75adb22b8362917307e1a806ed93 - pristine_git_object: 28cea57fb18646ba629164cb85c659c3e200380c + last_write_checksum: sha1:cb3c074924669e45e093b2f04628d9cbf3dbd5fd + pristine_git_object: 71ee8142ee2a8ab7ccea9b055118afd6382e5a55 docs/models/operations/GetchatapplicationResponse.md: id: b9f1dd049826 last_write_checksum: sha1:2fe603fa318e217ef95fc8e532776b98aa45c1d1 pristine_git_object: eea5c970e9bc75b63c336ebe053edeb24539f0a6 docs/models/operations/GetchatfilesRequest.md: id: d1fb5e0d18cd - last_write_checksum: sha1:ebb716f9e256f45680b9e4e28786450ef056b54e - pristine_git_object: 7d42dbb21984c798fa920967c4c34161f48e1c0e + last_write_checksum: sha1:474f1d23717e57567f3b5402cf312008a92f76b5 + pristine_git_object: 30cdf185962356be1b81c19ea3a401b4b37ef515 docs/models/operations/GetchatfilesResponse.md: id: f0f872986f2e last_write_checksum: sha1:a9263dbeaf92e16532376461b4615ab922a6f92a pristine_git_object: e22fa7813b1f95f664fe38ff312925f6e2d3dbd9 + docs/models/operations/GetcollectionRequest.md: + id: bab92f64e788 + last_write_checksum: sha1:91a845b1ee58ecb9b43d3cfda9116663bec015f6 + pristine_git_object: 142f9c26340de0b51d463bd6b81e9251dd18ff2a docs/models/operations/GetcollectionResponse.md: id: 14e9004d24c4 last_write_checksum: sha1:a40246f09bffcb18b4bb93b3c122377f38d2ce02 pristine_git_object: 25c137b3c4ebffc4a64bf2edb1ae32bb5eb38cbb + docs/models/operations/GetdocpermissionsRequest.md: + id: 095d0f121db6 + last_write_checksum: sha1:f2bacb130b6d866ee648ad76b3bc179f68186806 + pristine_git_object: 847fbdd3d6c75c35ea867db0a470664804ae7e54 docs/models/operations/GetdocpermissionsResponse.md: id: 4010b8f86031 last_write_checksum: sha1:a2e82771afa86ed086ce88d9109aed6227206896 pristine_git_object: ea3bc22f93b992e0a7b949fddbebccb716a44395 + docs/models/operations/GetdocumentsRequest.md: + id: 0a1e7a5e17a6 + last_write_checksum: sha1:ed690c98a17700b975f7c1adaadaa681e6b58a3e + pristine_git_object: dcb89bfbc89f766e61e84178655ccc166571500d docs/models/operations/GetdocumentsResponse.md: id: 058b15e6d749 last_write_checksum: sha1:dcfebe083059824de051e6d23eef2e7d8f114fbf pristine_git_object: 4c251a48f13588412978baa2f3936acdb0040620 + docs/models/operations/GetdocumentsbyfacetsRequest.md: + id: 11354bd020bd + last_write_checksum: sha1:92df0b0d32aaf53d16c8deec90dcd7ba74eaeac0 + pristine_git_object: 129d1f1b57d7edeb02bf369285ce5033a7c66689 docs/models/operations/GetdocumentsbyfacetsResponse.md: id: 44d0a335d82f last_write_checksum: sha1:47374a555a4c25d45652c1c9356a67b42b0bd910 @@ -2600,6 +2636,10 @@ trackedFiles: id: 1d1347060f68 last_write_checksum: sha1:a1a2751ea4929bb9b2b263201b5b913fd71f6ed3 pristine_git_object: 1ca692e9d022be549213afa0d991a82f1ff11a05 + docs/models/operations/GetpinRequest.md: + id: dbf62d679d64 + last_write_checksum: sha1:2cf583014cad09777285ea5f099ce53633d93433 + pristine_git_object: efdad83404663cdf8b750301c4796e58a112404e docs/models/operations/GetpinResponse.md: id: 49733f6d70eb last_write_checksum: sha1:6cb45fafb2d821ec652f3f86f0cc89994a2c874f @@ -2620,30 +2660,50 @@ trackedFiles: id: 58e19e061836 last_write_checksum: sha1:4d563308a0c4d77fbfb38eb350b731aaa1b5b061 pristine_git_object: 8ec6c32bbfad5626242349c8d1db01d71b320c13 + docs/models/operations/GetshortcutRequest.md: + id: 63265e008529 + last_write_checksum: sha1:2940bbda487b5d42d7bb2bad2136a1815aeff5ea + pristine_git_object: 33a1e1359dfba8343ad4a56f59358bc38ee3438e docs/models/operations/GetshortcutResponse.md: id: 68c701376fc2 last_write_checksum: sha1:900b7c07a1a11cda3c333dbb66829b75e5edace6 pristine_git_object: ac93a9039c641ab49d981b0c824238b9758f9787 + docs/models/operations/InsightsRequest.md: + id: 99abb55b45d9 + last_write_checksum: sha1:68ec4564690a3c2c63a6bee8cefc41732b56e45b + pristine_git_object: 5630750903dcf5a5e035008a0b7449973bad012f docs/models/operations/InsightsResponse.md: id: d6c506f4a3ab last_write_checksum: sha1:360b8712a2dacb392a5a3c9d46bba5ce34afbb36 pristine_git_object: f67fe4e609c362c194f8e37ddd5d8e1aee290470 + docs/models/operations/ListanswersRequest.md: + id: 1a385e311a3e + last_write_checksum: sha1:c6363e90e501bbb99442e9b38a642ef895f4eebc + pristine_git_object: 6c8f79e18726006a56c31588d1234867beb9997c docs/models/operations/ListanswersResponse.md: id: 0f54136efb68 last_write_checksum: sha1:8595f0be804e0cd69ad95c7807b0f1ed368853fb pristine_git_object: 0868af287d8867b2cfd66b136b36c11794eed3d5 docs/models/operations/ListchatsRequest.md: id: 7e6173b9115a - last_write_checksum: sha1:d090b1d600104e6e5f8717aa6b8052530fc2bf5e - pristine_git_object: 5ce0aac886cd9e52d334e6c155a3d65a711d3b5e + last_write_checksum: sha1:648da707df95caa1c73789d3b3f4b1869f33ffd5 + pristine_git_object: c3b9bce73ee080284acfb18bd7231a2278e5395b docs/models/operations/ListchatsResponse.md: id: 976b4e78713f last_write_checksum: sha1:95c920650d9cd0ba8fbc52056ddc6864db60560a pristine_git_object: 0a04df082749a466703cfe7863999bd6e4d03677 + docs/models/operations/ListcollectionsRequest.md: + id: 56a6fbe80cb4 + last_write_checksum: sha1:bd7a6618be57df4ed37574a0b1caa5bf20727fb4 + pristine_git_object: ad99b2f03dd600668d9402c17617ad31b438b108 docs/models/operations/ListcollectionsResponse.md: id: 77578e065bd6 last_write_checksum: sha1:cb7ddb7fafd50980842db573e0e5d3c8c1dd3d20 pristine_git_object: c5044a187ab9be1b86242cca46a408150bb65fd2 + docs/models/operations/ListentitiesRequest.md: + id: 790fdb3fcce3 + last_write_checksum: sha1:311373564c0b8cf1c341f52975ad3b48fb74fdbd + pristine_git_object: 3d6e4960505eb0d63bdec772c31d66b806020eab docs/models/operations/ListentitiesResponse.md: id: 3852d4425f9e last_write_checksum: sha1:be00ad43418041082f4b59826a9b1700be12dcd6 @@ -2654,8 +2714,12 @@ trackedFiles: pristine_git_object: 2c0a3c5b9141fb6b03242cd0035d6f3ccaf067ba docs/models/operations/ListpinsRequest.md: id: 99e483074996 - last_write_checksum: sha1:40ce426c3ab842c23e716b7008fa1e38bd5bc2df - pristine_git_object: 4c0c38891b36dff3b3854ba5f85a3b6c8c7c3467 + last_write_checksum: sha1:a5e5d407e8c64c054e1e898ddf9f37f4b753a01f + pristine_git_object: 84fff10c1ea749585951e3c517f5b1eb87d9fd4c + docs/models/operations/ListpinsRequestBody.md: + id: ba4d5302e4e9 + last_write_checksum: sha1:9be1a996e1620a68492d843203dd90640b527e69 + pristine_git_object: ad2e4cbdd68308127ba6df5c346316b099f85010 docs/models/operations/ListpinsResponse.md: id: dc9ff9731a84 last_write_checksum: sha1:8d0ae8d52560504dc0c3156d690de8425613640a @@ -2668,26 +2732,42 @@ trackedFiles: id: d74e1cfb81b1 last_write_checksum: sha1:fb533a3d5f0e18d22a24a1165e85522d285a6754 pristine_git_object: 2bebecdb42497a04ec20ce1b2ad5b002b292f6b8 + docs/models/operations/ListshortcutsRequest.md: + id: 4b8b5950b9b7 + last_write_checksum: sha1:118351ae4277a7be60fa289c84d3e55817fb7a94 + pristine_git_object: c762456bfc6b9f498a9f0bf6c4f26fcadd00cc75 docs/models/operations/ListshortcutsResponse.md: id: 69cad2a804c1 last_write_checksum: sha1:67311038982ab0b4789c4d5d157c1cf5d0f36aeb pristine_git_object: aecb1d096019df142515393717c1a131db2b0d65 docs/models/operations/ListverificationsRequest.md: id: e2e67d0176a3 - last_write_checksum: sha1:933d4a2d3927660f068dc340641a1ebb7ac61bab - pristine_git_object: 2fe7d1b97083ce981a47a7ad8af6b4d203def578 + last_write_checksum: sha1:0bcd27f8fbfc99784e32e58f7dc1a943f0b4f6e4 + pristine_git_object: 55644bdae221a2f72caff96a329ff4dc08b7c7a7 docs/models/operations/ListverificationsResponse.md: id: 3d7af5e9fba3 last_write_checksum: sha1:23d4378c9d5efce566fde444c11b3a3298907429 pristine_git_object: ede603014b3007795d8a416c2c42ac113bce1704 + docs/models/operations/MessagesRequest.md: + id: fe37884e228e + last_write_checksum: sha1:e205af9fcc2fb62dd6f4008574581fe8e5a04d52 + pristine_git_object: 92e65bd1e8958310c69c929ee2540867e2153494 docs/models/operations/MessagesResponse.md: id: eba6f7735abb last_write_checksum: sha1:5fef8e7baca637f30f828610417c5cd6e451b074 pristine_git_object: 4222fc46ddea59d1f32685393f6c187b0518450c + docs/models/operations/PeopleRequest.md: + id: 8a316081dfa1 + last_write_checksum: sha1:81e6796b9961ab26f44811a4792241c609709ad6 + pristine_git_object: 1dc2e61743ec2e6f711d7edb2fd42aac324b522f docs/models/operations/PeopleResponse.md: id: e3b28fc73142 last_write_checksum: sha1:e32f924e0fe9e7656131650d46687d0d193ea5c2 pristine_git_object: d5f99f5189964a576801743fde3bb3b4c739987b + docs/models/operations/PinRequest.md: + id: ab2e66ffa02a + last_write_checksum: sha1:93834cd9a84972d728d85d18fedb156d39a2cbd3 + pristine_git_object: 3c50a0c2c5a03e04c0e63318254f522c3a1ead13 docs/models/operations/PinResponse.md: id: e52582fd708d last_write_checksum: sha1:22ae58dddc0b07dc1ee532da2079b82efac2cb70 @@ -2860,6 +2940,10 @@ trackedFiles: id: 83345495310c last_write_checksum: sha1:071ae496fa93ff207a262eaccf3bfd7f985f3f76 pristine_git_object: ff11ddfdb0f4da86094197cb17de86832e81416a + docs/models/operations/RecommendationsRequest.md: + id: 7820c5140388 + last_write_checksum: sha1:565a14f62155cfb9938aaca8b648888fbfb9eeaf + pristine_git_object: 5f856af860af9f1a196bae052e425525c647be1b docs/models/operations/RecommendationsResponse.md: id: 769960d83a22 last_write_checksum: sha1:006ba9a8b30c72aa37baaa8b15d6b54aaacc0ced @@ -2876,6 +2960,10 @@ trackedFiles: id: ce12d446ad2e last_write_checksum: sha1:f2361d91835c444346effb9337af619c482a8dfe pristine_git_object: 38438f2751bc71990d29d790a2635415169a5807 + docs/models/operations/SearchRequest.md: + id: cb35286fd3bb + last_write_checksum: sha1:1af8fb7250041a9f4e42a2af24fbe37edbb5f657 + pristine_git_object: 2fe307a5789a5d4ff694ad7bd8222bff207aac30 docs/models/operations/SearchResponse.md: id: 626b41c153e8 last_write_checksum: sha1:b0dd0ad6d955ac8994a52b3d9c4a1db2ad1c095a @@ -2884,14 +2972,26 @@ trackedFiles: id: 4af3d62ffe6e last_write_checksum: sha1:b249d5fe2ce33ecedbe3ce565ad8ee296874f64c pristine_git_object: d1f2e39b6ff9df30a6e6fec8b498f628cc2af748 + docs/models/operations/SummarizeRequest.md: + id: 9094e118daf9 + last_write_checksum: sha1:dfdff90b81899d1e18f7070fa8f1b73d745c1fef + pristine_git_object: 19a2e3c6fabb8a38a5c19355c88192b0284dd1b2 docs/models/operations/SummarizeResponse.md: id: cf38a79104c2 last_write_checksum: sha1:444dc982c7467e1a3b86d3f37b78eabbd40a25de pristine_git_object: e395dd24ab8c021451c5b335e51b5e5aadf91488 + docs/models/operations/UnpinRequest.md: + id: 3e00fe63fbff + last_write_checksum: sha1:71792fa6f3551783e563d08f4ed4f774610e935a + pristine_git_object: db2817f26b7ecd588ffcb1221b7bcb8c2a9b0d51 docs/models/operations/UnpinResponse.md: id: 2efd5bdb01a2 last_write_checksum: sha1:924310a8322b56411b0f8fde747dcf32e3b7f933 pristine_git_object: f576406a3d8ef9d5d9402031cb505f15f1dbe8b3 + docs/models/operations/UpdateannouncementRequest.md: + id: f0f1669ab33e + last_write_checksum: sha1:079f6114667a33fbce71b2f03e35800d8e652e30 + pristine_git_object: a990f61c5deda9a8581a1437331cb41deee0d866 docs/models/operations/UpdateannouncementResponse.md: id: 32c09ae6a4a4 last_write_checksum: sha1:17744ed4a35971a479b37f31c615091bdc09b81c @@ -2904,18 +3004,26 @@ trackedFiles: id: fb92742d53d1 last_write_checksum: sha1:a283806c2af95df446b281a26c20b25a9e684caa pristine_git_object: 07e18544a825a226920515eea830c75ef384f3cb + docs/models/operations/UpdateshortcutRequest.md: + id: a24b0ab36661 + last_write_checksum: sha1:4e2a9ffcdb93b5b72a6b22149f0a1473392412ff + pristine_git_object: cd99d30b8a96d34daf6738b8c865e1c097fa1c20 docs/models/operations/UpdateshortcutResponse.md: id: eade96793013 last_write_checksum: sha1:8ba7e1b9288ace1bf64ff9907acf8e34ac57b7d9 pristine_git_object: ebf0a7937837ad72ffd318c886b0688b2c0a6d41 docs/models/operations/UploadchatfilesRequest.md: id: a55cf4464f9f - last_write_checksum: sha1:94c246283097e1bbc2c3ad513300b127dd142872 - pristine_git_object: 9a4ec76f13440007432b69e5d5a3a9ace8581789 + last_write_checksum: sha1:bea4daf82053c0275097ea454e95ce496eda527a + pristine_git_object: b536e54625c1a521ffc0dc09240cfe444cdc9a9b docs/models/operations/UploadchatfilesResponse.md: id: 5cf6fb9a9919 last_write_checksum: sha1:620e01f9399f4999284640d254a16ea71181681f pristine_git_object: b751ee325b7f74de4cecdad268745c81893ff9e5 + docs/models/operations/VerifyRequest.md: + id: d2dda599e5c9 + last_write_checksum: sha1:948aa616dab06cf8fb36c7e849587598797e1c3c + pristine_git_object: 8734648369b2cf2bcea59dd938fd5c75338e0c23 docs/models/operations/VerifyResponse.md: id: 57bbca386f2f last_write_checksum: sha1:04906005cccbdba809fbe2742b8ac8cc568f42b8 @@ -2926,36 +3034,36 @@ trackedFiles: pristine_git_object: 1c1a4016a91b7b38d1d60e445563daccc701a95c docs/sdks/agents/README.md: id: 5965d8232fd8 - last_write_checksum: sha1:4cf8da65b3635ce20e1bf9c9246d927040ef593f - pristine_git_object: f8f133d4eb645ab912cc922c1adb32fa78704211 + last_write_checksum: sha1:6e7ed584dff9490e139c60722d7617eb38535746 + pristine_git_object: 936ef14d7bc5bcab1f2bca0f329b0548325e9a82 docs/sdks/announcements/README.md: id: 3d2e130a217c - last_write_checksum: sha1:ae26173fa8a1770a2ed960ec9f7e09463013c5f9 - pristine_git_object: 075c3c7025a122766f4f00e1363c9eba97654733 + last_write_checksum: sha1:7efe7211bbcfd81746ebcde1b813cac00bb9813c + pristine_git_object: 99856d3fbb161912241ad3409a2f5223ea52a691 docs/sdks/answers/README.md: id: d1b7559999eb - last_write_checksum: sha1:d7680b64278e9aaf105b965882e9b751d18e1d87 - pristine_git_object: 17991f005828c2e1cb23f84a22d27802534b66f1 + last_write_checksum: sha1:d39abf4c8f603e64a8fae492019c534cf44ccdc1 + pristine_git_object: dac5103a50b2c7def69e68deb8372436a5c13a77 docs/sdks/chat/README.md: id: 393193527c2c - last_write_checksum: sha1:de0471868f17a450b1d5e280a58a128201277d15 - pristine_git_object: 00832ce58ccd5decbb9bcbd8cd6805038df38f65 + last_write_checksum: sha1:1dc7fba52f54432f344c39214ff527d766446216 + pristine_git_object: c2256c6a158b81edcadc9beee8bd229bbe201c92 docs/sdks/clientauthentication/README.md: id: 463bffe80b61 last_write_checksum: sha1:836a102fd18ec0a6ea380c12dbd46bbdd3c1b2c0 pristine_git_object: 98ebbeb384b06dc279d4d8a948001d72bacf2e04 docs/sdks/clientdocuments/README.md: id: e0c074acef4e - last_write_checksum: sha1:0b459d48fa4ebb36525e606a68c9e54116fc0609 - pristine_git_object: 278ae00097ee887c9dd78ddda4ec34cafa5cb8e1 + last_write_checksum: sha1:97b83116c7a6614deb0b28bc37478e60640dd557 + pristine_git_object: a2550eef6d8404521d9b9f06ae6aa6f4735193e0 docs/sdks/clientshortcuts/README.md: id: d5a9d841b61c - last_write_checksum: sha1:00f57408bcd8014b3dc53ad0cd0d640e39f9106d - pristine_git_object: 488a4bba5d41fe0a14b8a1be88cf3e9fda2e6e62 + last_write_checksum: sha1:2ca91057885b3d9afa306f9af334e55731dfb315 + pristine_git_object: c4cb0b2c4feaff303e2177ed36ebde4da8bfebe5 docs/sdks/collections/README.md: id: 7985e64efccf - last_write_checksum: sha1:4e2d8e3c7bfdb5ba04f43899601a1899a31c1714 - pristine_git_object: 5923c35ab23047e17843216a3b89ff8eae3f240b + last_write_checksum: sha1:286fb58b75ca585b3105ab2e939b0f4f25681608 + pristine_git_object: a3bd7ebbed3aae99b035a909f2dfe2ecf8420a3c docs/sdks/datasource/README.md: id: 4671628477b5 last_write_checksum: sha1:56ef70b56b7f1a423a335add4ad4ba43fbf715cd @@ -2966,8 +3074,8 @@ trackedFiles: pristine_git_object: cac8bbfa9560d3094100a3d3f0fbd9baeafaca9b docs/sdks/entities/README.md: id: a140ac5181b9 - last_write_checksum: sha1:d085e135b44e24427c7895929f928ad7a57df587 - pristine_git_object: e1dfa49157c8614622ffb31b1e799bb898e8521e + last_write_checksum: sha1:bc29ae154a7d444e760c007f6b3a7f0a0dd0c866 + pristine_git_object: a06919a54680a8cd4f637945bfa4c52e608b567c docs/sdks/governance/README.md: id: 87817eb7bf48 last_write_checksum: sha1:f40b62d2b8ef3cb623ef58d261c594fc73cea400 @@ -2986,12 +3094,12 @@ trackedFiles: pristine_git_object: 7691188abb887a94ccd8826a1919b4e61aadf3bb docs/sdks/insights/README.md: id: cc2be3db9032 - last_write_checksum: sha1:4864d1a058d6adc6896d5f154279686e5888ece4 - pristine_git_object: 5bc8a59c35527e5f46eaf83eb641e5720bd1a36c + last_write_checksum: sha1:45926c19121c6e2349138299c7057424ed68e265 + pristine_git_object: ff2afa40cc9d936598f9f4fa3840bc68a322cad8 docs/sdks/messages/README.md: id: 3f1f6d38fc33 - last_write_checksum: sha1:0fb74b70c7737720c0e61dfeef582f45f37f13f3 - pristine_git_object: 974b07ba190f5ea59bd75e222ecfdde94ddcb45b + last_write_checksum: sha1:b8b2b4c7aaa40243df3677503fc0fc496d9dcb9a + pristine_git_object: aa17ed65d8214d9c11e675a4a195edc0b9c2090a docs/sdks/people/README.md: id: ff7b3ee21c2b last_write_checksum: sha1:fb10ea1e89396fc3abce58d61e0d36a0f4d536bd @@ -3002,8 +3110,8 @@ trackedFiles: pristine_git_object: 397f814cdcada7a3709ee80673300fa7702e48dd docs/sdks/pins/README.md: id: e887aca9ba0f - last_write_checksum: sha1:96396b1eae492c370d7c1c7ce5d36f8e8f6b71f1 - pristine_git_object: 39fa371ef02524966f3410be3933425c9169942f + last_write_checksum: sha1:f001b6778f7658d5063a9484c055bfc53a9fa044 + pristine_git_object: 620ef6e110b46f2a249881123bdb4e8b07fd3d50 docs/sdks/policies/README.md: id: 636269b04e57 last_write_checksum: sha1:4461ec4bd3a4bd90d652cb2f2fda3b6351c1b29d @@ -3014,16 +3122,16 @@ trackedFiles: pristine_git_object: a669ece26f3c5d501efbc85f2b6b851caed57fd2 docs/sdks/search/README.md: id: 5c534716244c - last_write_checksum: sha1:6fd1b29c427aee150c489f1f0824f629d61847cd - pristine_git_object: 07334ecbc4364981536964cf91054c83f64d7ee9 + last_write_checksum: sha1:5746223ff0d9738da07dcaacd074ca4122312621 + pristine_git_object: ea7bc796400447dbc0cfd37de2fe8b0e6362fd00 docs/sdks/tools/README.md: id: 044286549bac last_write_checksum: sha1:789e4c935932ec1fa2c6c83a37c39e4f952e7c85 pristine_git_object: ce09ad5baf12585f497ba7a927be292a90df18a6 docs/sdks/verification/README.md: id: 8148670b64d3 - last_write_checksum: sha1:c39edab1082929fd0998a925beb8cf483bcdf9f0 - pristine_git_object: d4a6ac621175bf8365985bf98bdaefc916417108 + last_write_checksum: sha1:85bf2354e9f777a5297df0328c595bfa6dcbb02e + pristine_git_object: c688da66f0c43f597a78f6edcac9afcd1a895687 docs/sdks/visibilityoverrides/README.md: id: c7d003d6a68f last_write_checksum: sha1:956b6a48f74e37b25e66488df5939d90520c9afb @@ -3034,8 +3142,8 @@ trackedFiles: pristine_git_object: 3decbce5bd40edbe278c1c5d2dbf585808e51d9a gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:572188aa954b387d2d83b773f830a5a987690a81 - pristine_git_object: 83eebbcd3e0a6bf15e7af8b1d0be535344a32aa8 + last_write_checksum: sha1:27fd8d29a84696425873faefbe51c05ad4a1a80b + pristine_git_object: 95fe7a04310e29c8725423e6101eeff43b824aa9 gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -3094,36 +3202,36 @@ trackedFiles: pristine_git_object: 9b1cc0662bffd09128796ce23c5792b7253d4751 src/main/java/com/glean/api_client/glean_api_client/Agents.java: id: 69615daff4b4 - last_write_checksum: sha1:b1d955bccae3e2ef1beefeccd7991a8ec15a51ba - pristine_git_object: 2fe1844cb462739c442f7f79d27d2cd19a70a158 + last_write_checksum: sha1:49a9e0e50eb90d16e07a9b958075405ef62dcedc + pristine_git_object: 99f66226bc6d921d5392790e8b86fb1f5ed1bd92 src/main/java/com/glean/api_client/glean_api_client/Announcements.java: id: 23fcf3ba5c75 - last_write_checksum: sha1:8730b9614f6a646f414b22f299190cec2521c5cf - pristine_git_object: 0e6fdd78a68cfa2c33593d3e9567cfed3af2c962 + last_write_checksum: sha1:dba6baa7195ae817d05a60efeb3af427eb716b8b + pristine_git_object: bcff279866a1d2bb0b62dc75c1d345f66cc1ac72 src/main/java/com/glean/api_client/glean_api_client/Answers.java: id: c21a171153db - last_write_checksum: sha1:c0f4ee0684ce6ec6d5f62e74e325d7cf409de9c4 - pristine_git_object: 755a5079befbe35847ecd70cc13ecc68e42b7607 + last_write_checksum: sha1:e2af20ea0bd158956b520504d71c04483d9145f1 + pristine_git_object: c890f20288f0724117bf245cc2c93e9ee7ef6fee src/main/java/com/glean/api_client/glean_api_client/AsyncActivity.java: id: 3399241cee93 last_write_checksum: sha1:ec3000c3acf9a0f084d78deaa99a5a03c07a907c pristine_git_object: 333354394fca08b9dc4f996fcb972c2c74e1b58b src/main/java/com/glean/api_client/glean_api_client/AsyncAgents.java: id: 5fb5adf2262c - last_write_checksum: sha1:6d3a0e0fc581f3191cf0350e5de2e7e5a2806b89 - pristine_git_object: aec4a48c53b74eb8f4978078e66d779aab723fc9 + last_write_checksum: sha1:86486735183e6aa4cfff12302efb472bf7f3a330 + pristine_git_object: 4f7b7c5264e515229962409da2449988124698eb src/main/java/com/glean/api_client/glean_api_client/AsyncAnnouncements.java: id: a4630e10d992 - last_write_checksum: sha1:67e8e53f12bb143c51db420f109d0af8d95a759a - pristine_git_object: 116efdde2c55cd581905a104204f653a587e5a51 + last_write_checksum: sha1:37d5e3d5681881742f2c612dbc41daa9e893a462 + pristine_git_object: ea1c162d5f3f8830f64865ed9a28ffe282b0041b src/main/java/com/glean/api_client/glean_api_client/AsyncAnswers.java: id: 2a2ddc20b08c - last_write_checksum: sha1:ca57fa431a1546c84b33c6a446ff405661778ceb - pristine_git_object: 7a134d2f8352396866eddf83eeab88080e4a1735 + last_write_checksum: sha1:e8e19870374ce3383d2fae6e5e0080e2b6a1ba74 + pristine_git_object: f1991e179725d1c41690f77c256c192fbafccd89 src/main/java/com/glean/api_client/glean_api_client/AsyncChat.java: id: 64a2a6f928f7 - last_write_checksum: sha1:2e872c91a569cff99b01216f2aa530a99e46356a - pristine_git_object: 11ce3b20d8c0313f72859cf5c0729ec1cb26ad13 + last_write_checksum: sha1:6da2df592fddaf306b4e7d101557ac21122659a4 + pristine_git_object: ed5a37b530cf03008893130ea0e3748431918bcc src/main/java/com/glean/api_client/glean_api_client/AsyncClient.java: id: 4458603ff05d last_write_checksum: sha1:a634f14d573d6f202cf5572472227c8b013030ef @@ -3134,20 +3242,20 @@ trackedFiles: pristine_git_object: efba6d189915bd2cea6004a6dd4ef1db5e0e7a0a src/main/java/com/glean/api_client/glean_api_client/AsyncClientDocuments.java: id: 25df5f237d37 - last_write_checksum: sha1:2104b8e4e346313554738b1258a872f6cd195420 - pristine_git_object: 70226d0c2f4c798de197743b189edfb4683679c8 + last_write_checksum: sha1:d3b0b7ff473a9ce052216210f4d9845c3249668b + pristine_git_object: e4a34c7dfccb246423f62be7ab1bd1d5b0ea6036 src/main/java/com/glean/api_client/glean_api_client/AsyncClientGovernance.java: id: 2c29466c8c9d last_write_checksum: sha1:40012ee4c2062911beffbe0b0dd8b0a46b503c0c pristine_git_object: 24529fd6127872b332ff7556bde52a0b64498756 src/main/java/com/glean/api_client/glean_api_client/AsyncClientShortcuts.java: id: 90a2d77a0873 - last_write_checksum: sha1:4bd620a41b3d920bcb3353b7efa5aa75f5f24f6e - pristine_git_object: e48e0d1995fdc8a108cfe61f90c9252b55ff17b1 + last_write_checksum: sha1:367d37926cbcd7ca729f233ee60dd8e3521a12c8 + pristine_git_object: e8230c32a0336f9fb942f09e71ce9fd1e4e0467c src/main/java/com/glean/api_client/glean_api_client/AsyncCollections.java: id: 87aa49909a73 - last_write_checksum: sha1:5603a2aed02bbb2a90bfe815cee4b4881bb573cb - pristine_git_object: 0e486f8dd11c31afc79707a9d97c194425e407e3 + last_write_checksum: sha1:044e5b80f8b04ec3992bab3dc2939083a1228ce5 + pristine_git_object: 9666b98e25224e57ac29329c90ffa19f6aa4daa6 src/main/java/com/glean/api_client/glean_api_client/AsyncData.java: id: 9ed1e756fda7 last_write_checksum: sha1:c01ab27b7024fb397fe838217fb2433c0fd12091 @@ -3162,8 +3270,8 @@ trackedFiles: pristine_git_object: 700fc240f8cb42245d911a766ffdeb5d430dc128 src/main/java/com/glean/api_client/glean_api_client/AsyncEntities.java: id: 7589d9e17031 - last_write_checksum: sha1:245d12e70f84695042af667860180135ed326583 - pristine_git_object: b3ac8fe9c0228cc0cbe1abf4238fda9c665302b5 + last_write_checksum: sha1:e619dc54d440c2d0d9c038cf1a0d8a450ed6d0d8 + pristine_git_object: ed12a67570eeb0250242feceb7d9d393c5a90f8f src/main/java/com/glean/api_client/glean_api_client/AsyncGlean.java: id: 41f5be2f8342 last_write_checksum: sha1:7e910190531a3982946f623b8187c67ad687ff9b @@ -3194,12 +3302,12 @@ trackedFiles: pristine_git_object: 5fd6ea3776c645fe9daea9c4744b9cfdfd045f79 src/main/java/com/glean/api_client/glean_api_client/AsyncInsights.java: id: 344fd5a99602 - last_write_checksum: sha1:fb98545de609069cf752a2e041f40324bb64a616 - pristine_git_object: a23cb184c66d92276b051a0e06475bd3423f94f3 + last_write_checksum: sha1:e4b3a5ff7b6a762131afb5ea107e6c5cd6cf188f + pristine_git_object: f26d8244955633492645ca011f334f902ca665dd src/main/java/com/glean/api_client/glean_api_client/AsyncMessages.java: id: be0304ffa4cc - last_write_checksum: sha1:7242eee4568172ccce90f302e91d2169fce7c84f - pristine_git_object: 264f6ea5a7c4944167711d5c313db88a459ef7b9 + last_write_checksum: sha1:cb40675b7b772a49956eb4975746b16df55a1493 + pristine_git_object: cfd01a8706579bc1e3e803c283787e3d64b03598 src/main/java/com/glean/api_client/glean_api_client/AsyncPeople.java: id: 82c71a183545 last_write_checksum: sha1:67a5dced7f5bbfd43e6853e543788989af67f627 @@ -3210,8 +3318,8 @@ trackedFiles: pristine_git_object: 752045f9cc0130d0c6f72666203ea20675e43d54 src/main/java/com/glean/api_client/glean_api_client/AsyncPins.java: id: bc11b718d590 - last_write_checksum: sha1:3483e4109a59fc81db68b79c585792ef5693d5ff - pristine_git_object: f73a19cba59ef3918dd67b73707e900ab368cd8c + last_write_checksum: sha1:8eedbaabc251923ca0401f99f5dfd6dfbe8d98c4 + pristine_git_object: dca3100044d96475797b5d8f6b6828bed25041c0 src/main/java/com/glean/api_client/glean_api_client/AsyncPolicies.java: id: a806d94d5cbc last_write_checksum: sha1:0da7b8568e9005c3f5eaf4ec779e0e48df11fa3e @@ -3222,24 +3330,24 @@ trackedFiles: pristine_git_object: a22d5f1801a2b05d977a8acfdd40ff3357be0de4 src/main/java/com/glean/api_client/glean_api_client/AsyncSearch.java: id: 443645b885fa - last_write_checksum: sha1:ab1bbd3f3332bfdbca4f3696ac05e4260a58950c - pristine_git_object: ea599f3c4ae1244edaab0df21e84862add184088 + last_write_checksum: sha1:00de083a95de8544a2e43392dddc897ac1d98336 + pristine_git_object: f849aafa697370d8a1b05ec150c53671c9ddc6be src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java: id: 02ad87504d7a last_write_checksum: sha1:00c9b7f4eff27f8bbae9c1b3761eb309ba4b375d pristine_git_object: 3581f79696adbc0972f8220ce8bed31365e9de55 src/main/java/com/glean/api_client/glean_api_client/AsyncVerification.java: id: 8666e963a45c - last_write_checksum: sha1:63a3deebca94a3cee817f18b59dd87a7ffd309d2 - pristine_git_object: e9d60a50bd57bc1494120645f665a0b3815da152 + last_write_checksum: sha1:6c7c77bb4451d14db9f65ce70e2789dbe47e638e + pristine_git_object: c8b636a850c388ea4440d07aa5f1b611513b5796 src/main/java/com/glean/api_client/glean_api_client/AsyncVisibilityoverrides.java: id: 36fdf54a21d9 last_write_checksum: sha1:47a4a8a9d4c690dc4f02aa816d5fae1a0c429a45 pristine_git_object: 94fdbbf53b887ab1f88e4bf40262f5e07ee57e5f src/main/java/com/glean/api_client/glean_api_client/Chat.java: id: 84cca4c2d53b - last_write_checksum: sha1:d43d486b62be255fa056f56e44663f68638cc80a - pristine_git_object: 8a2a8e7e76095e79b7abae88e567bca482e3d3a4 + last_write_checksum: sha1:42d89a453148e1bb6194becdef932b9b62ebdbee + pristine_git_object: 786bcaeeeff0a43e15508dd2a95ee4f8110e710e src/main/java/com/glean/api_client/glean_api_client/Client.java: id: 3e1158028401 last_write_checksum: sha1:0447cac5d8ecaec07b05106ea36aacebed46bb00 @@ -3250,20 +3358,20 @@ trackedFiles: pristine_git_object: b2a742f726576eaf7da11e3c06cef6a104564ff5 src/main/java/com/glean/api_client/glean_api_client/ClientDocuments.java: id: 6b0978aae33a - last_write_checksum: sha1:3fb7cfc8cbd9e7c58da6ae664a251a856b772cec - pristine_git_object: 6d99ddcccc6bd9eab7b657e798fd94e612447ae8 + last_write_checksum: sha1:82461aab2c7c6af1ba1431e5d8f1eb075e4dfe8e + pristine_git_object: 0d225de803dd02b3ca5d512a34f64cab17c3da23 src/main/java/com/glean/api_client/glean_api_client/ClientGovernance.java: id: 7b367f4bc4b6 last_write_checksum: sha1:4f401272b1a49435064b7a577cb51b5b051f40c7 pristine_git_object: 1bf3a6ca67bbdc7eaf6fb578e0aa90e5aef9828f src/main/java/com/glean/api_client/glean_api_client/ClientShortcuts.java: id: 7882d0a8fc5e - last_write_checksum: sha1:97dd951480b167dcdcefdbd8372ed5fc90c2e822 - pristine_git_object: 91a32cef417d6c594df3c68bcd8f2cfc8aaab01e + last_write_checksum: sha1:d95c3b21b335ff18c2923dc5af902b9b168047c6 + pristine_git_object: 172675389f640adab1d2ba308c85d2fa96f7f00b src/main/java/com/glean/api_client/glean_api_client/Collections.java: id: 8fd450b9bb3c - last_write_checksum: sha1:83abcb587bee32881a32763a8036a27778456751 - pristine_git_object: d91cfee90a9f130073a1c3baaf5903a700ce0021 + last_write_checksum: sha1:5a5dfad17f5af20c19722f8c72cff09e67c56496 + pristine_git_object: 10bffc9c9c754ee69db96d44c11e37b950bb06db src/main/java/com/glean/api_client/glean_api_client/Data.java: id: d460d2f06f58 last_write_checksum: sha1:0c1223ef07aea98ed5126df475bdb46f71559452 @@ -3278,8 +3386,8 @@ trackedFiles: pristine_git_object: 0251b44a803e5d0448d81c9bb9c604ac3955b2ff src/main/java/com/glean/api_client/glean_api_client/Entities.java: id: 8254f307c235 - last_write_checksum: sha1:bdb8dd91739188c4201c06b6ff76bca41a7c9a48 - pristine_git_object: 99bcfffac8bc405b7944135ff419d2b0562adec6 + last_write_checksum: sha1:684efdd6659088009e9da19e08f366ce814dd493 + pristine_git_object: 7d41b401aae26bdb14f3f5f93801f67c4e76e68e src/main/java/com/glean/api_client/glean_api_client/Glean.java: id: ebe9053b14eb last_write_checksum: sha1:6df8ce266c3d614b47a84cbb8be210a2fe28ea41 @@ -3310,12 +3418,12 @@ trackedFiles: pristine_git_object: 24ac5e4a52dadb1cdb26a2a83385ae0e9968644b src/main/java/com/glean/api_client/glean_api_client/Insights.java: id: ed6ab5022880 - last_write_checksum: sha1:db3f4821562cdc43c374f30f23af9236f19ff293 - pristine_git_object: 2dbb2e33ac571fdfd95278c95335fd459ad1c3b3 + last_write_checksum: sha1:eddd45aa5506ecfa6e4642dfb3e8053794eddcb8 + pristine_git_object: fd06b4a6236ec52a2809c8433b7603d9bcefaf71 src/main/java/com/glean/api_client/glean_api_client/Messages.java: id: 7bc5862fa1f8 - last_write_checksum: sha1:e4e0619819ff18ad0abd60bc4e6e77f6fbb7bf35 - pristine_git_object: cf09c948256cc5da37861b52f91bfe6631cf89ef + last_write_checksum: sha1:87e77892e3e5b707ad86147c652323d3add7c6c2 + pristine_git_object: 3678a263f1d0637b24bd0306801841276dd51261 src/main/java/com/glean/api_client/glean_api_client/People.java: id: 311d2880a5d3 last_write_checksum: sha1:41ab077ca811370bfcc3d9113a5116c90ac21b28 @@ -3326,8 +3434,8 @@ trackedFiles: pristine_git_object: e901a5ac0ab447de43a14a52821cb282f18d5d8d src/main/java/com/glean/api_client/glean_api_client/Pins.java: id: 598f151c69da - last_write_checksum: sha1:7edd3be70ec23b74d632d60df2b7537fd2949807 - pristine_git_object: 0fb2b0b74ef2d78a0c4212ba333b3f9f5ebecc7e + last_write_checksum: sha1:bb6afad185d738728d49b98d2c6decb5d03dd556 + pristine_git_object: ce5ca3fa338b719f30819c7c58cc696c7a591816 src/main/java/com/glean/api_client/glean_api_client/Policies.java: id: 6cbaf93ef0d3 last_write_checksum: sha1:634af598283a127866701f0cfeeec2a672e3296b @@ -3338,12 +3446,12 @@ trackedFiles: pristine_git_object: 5e30515ba0d212914ac9a195db6019330b6b0a2b src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java: id: d5fcc61f5992 - last_write_checksum: sha1:4ccaf92b07ba77c03c28bcb24b30309a0f9131ef - pristine_git_object: ddcd0f25f381e8a14f2cc44bfc7788a9fb66e581 + last_write_checksum: sha1:e154682eec373d1a6fa1cbd54dcc9467f9d76255 + pristine_git_object: 2dc3f3b8d679b20f9404d046fcfa181236c30242 src/main/java/com/glean/api_client/glean_api_client/Search.java: id: f22d94b920b5 - last_write_checksum: sha1:f4c52d34b05dafaf8037a2fe5df738f6c44c7132 - pristine_git_object: 2577bff30d45a83c53f4ad772e478679c4b91127 + last_write_checksum: sha1:36e225a42ff566cb610d877bb5f41fc09e3e49e5 + pristine_git_object: d6d5efa6e456365d89a185614cc58a0c1197fbb3 src/main/java/com/glean/api_client/glean_api_client/SecuritySource.java: id: add211a7c1dd last_write_checksum: sha1:f02b4f2d4f381f8f690a77d8e106f37397820f8b @@ -3354,8 +3462,8 @@ trackedFiles: pristine_git_object: ea79a3108a342c51e43815094ff7eacd36676c6e src/main/java/com/glean/api_client/glean_api_client/Verification.java: id: a9b3dde933de - last_write_checksum: sha1:3c49ef0bc8afc9f4c45fb53fcaee65109f4d2c12 - pristine_git_object: 6b905c55b56ca472e48a6b132d8743be0c11342c + last_write_checksum: sha1:590f9c3aa55c96bc461cc4cb0616d2eda2d1269c + pristine_git_object: 93ff58d8469185758310ad21a0e1dd9d0b840808 src/main/java/com/glean/api_client/glean_api_client/Visibilityoverrides.java: id: 66224f8d02e9 last_write_checksum: sha1:d9aff7d4b9f90c4d2d28ab15e78d43d9af4dd1c3 @@ -3414,8 +3522,8 @@ trackedFiles: pristine_git_object: ec75f89287f3d86107730ee037b003040d92b8aa src/main/java/com/glean/api_client/glean_api_client/models/components/AgentEnum.java: id: 43a7358e61cc - last_write_checksum: sha1:ca6568db8fdb802dc485be1cc8f96477faa37611 - pristine_git_object: b464e885f63364612acde3a6b7eda831a31f84b6 + last_write_checksum: sha1:0414df352f6d8dd3a00b5e49a0a9e597a385b9a5 + pristine_git_object: 76eb881140d135e38f05807fb111add7f27efbcb src/main/java/com/glean/api_client/glean_api_client/models/components/AgentExecutionStatus.java: id: df8b15556d36 last_write_checksum: sha1:a66bf2da7e0a4bd2ad7121c3bc48127e7ad81575 @@ -3456,18 +3564,6 @@ trackedFiles: id: 4c3687028ff5 last_write_checksum: sha1:df8c05e27b948c376660427aedab19b64e51c9da pristine_git_object: 352a1c628de770d7c3e4613e88bca08c52181f18 - src/main/java/com/glean/api_client/glean_api_client/models/components/AiAppActionCounts.java: - id: 01147d8ec7b9 - last_write_checksum: sha1:0298cb9b8b346ee88225f638879187f11b52c298 - pristine_git_object: 9432b5d1ef9d852628c636e6d0088344efa4bf06 - src/main/java/com/glean/api_client/glean_api_client/models/components/AiAppsInsightsResponse.java: - id: 291df6df3e32 - last_write_checksum: sha1:9fae45fce5bc141562ac066f5aead1669d4e22f0 - pristine_git_object: ffeb6b64f28c98dfd9054ecaa4f11d2f17e8858a - src/main/java/com/glean/api_client/glean_api_client/models/components/AiInsightsResponse.java: - id: c808e5bf8fbd - last_write_checksum: sha1:5257d753f920caf6bf2a4b5946d661f148702f0c - pristine_git_object: 852431ae03371faa98338096d2dbf03b740788f4 src/main/java/com/glean/api_client/glean_api_client/models/components/AllowlistOptions.java: id: 6759b6d6593e last_write_checksum: sha1:c9e2462fd6ef025181df67ba7e3dde5d0b35f704 @@ -3528,10 +3624,6 @@ trackedFiles: id: 63aba0148e56 last_write_checksum: sha1:ff89d3b451084b7cd46143437f1fa695a35f5044 pristine_git_object: 5f00b526f8f39fd3cb6ad5ae8fb1fd18f64b16e8 - src/main/java/com/glean/api_client/glean_api_client/models/components/AssistantActivityType.java: - id: 2af06b2c4798 - last_write_checksum: sha1:dc956a6c1fcb582538de6a295fbff5be222ac029 - pristine_git_object: 7e45b52728a4d2f3739846785a440205c4e4ef36 src/main/java/com/glean/api_client/glean_api_client/models/components/AssistantInsightsResponse.java: id: 1ca128d01115 last_write_checksum: sha1:335f18926df712d00522c1b91d12a40174c889b1 @@ -3824,10 +3916,6 @@ trackedFiles: id: 1a6e7d66ff24 last_write_checksum: sha1:1eea4c958518275e87f1201c81d5d5c7929ec1fe pristine_git_object: 35f64094e0d96e97f78ca50d142a26141cf262d6 - src/main/java/com/glean/api_client/glean_api_client/models/components/ContentInsightsResponse.java: - id: 91a51b7aaef0 - last_write_checksum: sha1:2d28cb965b84080bf51bf75d024bfce7f47cbb68 - pristine_git_object: e22ccf4e9b5af8a1b208ba138f4ed333dae2a76d src/main/java/com/glean/api_client/glean_api_client/models/components/ContentType.java: id: 75631b82904e last_write_checksum: sha1:e9bad485b3babda77726d2ba545247aa5c21be2a @@ -3886,8 +3974,8 @@ trackedFiles: pristine_git_object: 2a4e4354826c7005f97e5224e2dd41255c5b91a0 src/main/java/com/glean/api_client/glean_api_client/models/components/CustomDatasourceConfig.java: id: 6650ecaaf44e - last_write_checksum: sha1:3bef83e1f8f3299fc96405dba280c6f527dd4e4d - pristine_git_object: 8cd1a05ca7fd26b1a3d25653c0d790281c96c3dc + last_write_checksum: sha1:ca8f1146a8589cc1636e9952aacd4e4f90fdc865 + pristine_git_object: 8f73ee8ad49c5101b4b543a3cb2647fbb04a0f7d src/main/java/com/glean/api_client/glean_api_client/models/components/CustomDatasourceConfigConnectorType.java: id: d826a426a226 last_write_checksum: sha1:0934ace90b4ffc46e2eeda0cb5d38d14ee3efba5 @@ -4168,10 +4256,6 @@ trackedFiles: id: ccfe8d0d84e8 last_write_checksum: sha1:4fae8aeffdf4e56ede5496aa2ac48cf97e850ca8 pristine_git_object: 3f9862aa7188f157e9eaccc8805a1ed9454ad783 - src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentInsight.java: - id: f7590da51f0a - last_write_checksum: sha1:95fabf5b40d5eaff9c815aa9b929cbb3c3bd2f2e - pristine_git_object: 50b67e3b7658c0a4825177d06bd868f39d7739ef src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentInteractions.java: id: 24b5473920bf last_write_checksum: sha1:337c4b8941199d60d8d35200e0b499c556778686 @@ -4602,8 +4686,8 @@ trackedFiles: pristine_git_object: fe3c22e47ea285e0c615e634e020fe21cf4984c4 src/main/java/com/glean/api_client/glean_api_client/models/components/GleanDataError.java: id: 6f723854d757 - last_write_checksum: sha1:3d6c1baa3893b32cdee5d3f94b3d0f2d3843eb96 - pristine_git_object: 77b61ef12cc005c684d4016d5d8d570dc779a2e2 + last_write_checksum: sha1:957b9fd7bd289e45b4855308b530ad6f47dd091c + pristine_git_object: 34d47385597705f75fd5b66f93d6d7007abfe052 src/main/java/com/glean/api_client/glean_api_client/models/components/GrantPermission.java: id: 6383aabbbc1d last_write_checksum: sha1:08a3d14a58ab45454a3322c35157b33d9e9a1a86 @@ -4694,8 +4778,8 @@ trackedFiles: pristine_git_object: 98d777b8c59b32e1d70cc487e13fffb13c10ec51 src/main/java/com/glean/api_client/glean_api_client/models/components/InputOptions.java: id: 5e6954da0fe5 - last_write_checksum: sha1:1f884353573b699aa9cabb3450d750259d3d4321 - pristine_git_object: 16cdfcfb39e066773498084d5dbfaac63b1ea0bf + last_write_checksum: sha1:70ebe1981291be863e687a6d154eeb184e18fa44 + pristine_git_object: 3b3c9fd4f7ef90090498151092fe6744ef7696eb src/main/java/com/glean/api_client/glean_api_client/models/components/InputOptionsTimePeriodType.java: id: 46bf10a60da5 last_write_checksum: sha1:1bbf3121d5b36d86713cb041dc28307fdfea7b87 @@ -4704,14 +4788,6 @@ trackedFiles: id: 36ea007dc862 last_write_checksum: sha1:36f48abcd49aed14334fe52bc927cda12b340d72 pristine_git_object: 0f23a277bc705d3f8a3b1106a489a555a74addab - src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAgentsRequestOptions.java: - id: 9fac7cfdf706 - last_write_checksum: sha1:99694e8405a90a69b2f3d4b188e5dbbfd1792b7a - pristine_git_object: 3c364a89620a68a015d04a48a4e39726d6762add - src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAiAppRequestOptions.java: - id: f332d573d13b - last_write_checksum: sha1:c023d5d1dde6d3891d418c3f7029189fc7ec228e - pristine_git_object: b939d1b5fea341a212ba0cd1a4d0a28a5b596195 src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAssistantRequest.java: id: 65ee7235fa70 last_write_checksum: sha1:09836def23acb9403eab9d038398b5b08bdc9e38 @@ -4730,16 +4806,12 @@ trackedFiles: pristine_git_object: fe655cf0da081791a0f7b30462b3e9032b1ef671 src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequest.java: id: d18f487ace2b - last_write_checksum: sha1:80cd90a632bd03802174b5b0ebb2563087b3872b - pristine_git_object: 7ddea7c993dc7a0bd9def3f2c836dd22ca4b06bc - src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequestCategory.java: - id: ed85eb368459 - last_write_checksum: sha1:c7803762fc2e87d5bbfd1d8ad463163521eb2aa0 - pristine_git_object: 3d29c5419024c8fc3d100ed90ce907df9651ac1e + last_write_checksum: sha1:90ca40ede1fc283818561345887fc6243b226a5f + pristine_git_object: bea73413f4e0aed220d6d3179dfb7297248efe34 src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsResponse.java: id: cf29a55ddf0f - last_write_checksum: sha1:0e2f38daa64c06bfd1e7976ddbb71796623c7d45 - pristine_git_object: c4fe4587bb6013fc72b233532992de92364dfb18 + last_write_checksum: sha1:c85929cb4df02d3791eb5c0e85adf2b2464cef86 + pristine_git_object: fc2240a029c06f50b50861060a5aa38330d6e2b0 src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsSearchSummary.java: id: e62bb509b213 last_write_checksum: sha1:4267cba1d74babece23aeb12af8f080dd7b46bee @@ -5040,14 +5112,6 @@ trackedFiles: id: 9198ae0c3394 last_write_checksum: sha1:13c157f39398d7cadb801096b7dbb7fc200b7b93 pristine_git_object: 7a2ea27d0c9f73fd7149873f91312f37717d3fa3 - src/main/java/com/glean/api_client/glean_api_client/models/components/QueryInsight.java: - id: 096d5cab6e72 - last_write_checksum: sha1:8212efb0717edb5ba567aa04095f8d3acd4be9fd - pristine_git_object: d4aa9eef60f90d6b7e7b2436b464df85e23a0438 - src/main/java/com/glean/api_client/glean_api_client/models/components/QueryInsightsResponse.java: - id: b67c59c7686b - last_write_checksum: sha1:de09d3b7d35f6d9ac4144725b89c9a1ae3ee58fd - pristine_git_object: 4e1f74211e3d7bd8196c132f9f5a3817f91f80db src/main/java/com/glean/api_client/glean_api_client/models/components/QuerySuggestion.java: id: afbd9b90d86e last_write_checksum: sha1:4d51ee2d81f9d401a3f1f0555abd2cc28518a32c @@ -5276,14 +5340,6 @@ trackedFiles: id: db98cfda15a2 last_write_checksum: sha1:fe031356a7292d067dc9c86e3dd5cad18034d7ec pristine_git_object: 66ed90a1cddd7c1fd86fc1593e695534bdfa61d0 - src/main/java/com/glean/api_client/glean_api_client/models/components/ShortcutInsight.java: - id: abfa6e42672a - last_write_checksum: sha1:015f897c8b6c80b8dd8d731f23cd2aad205888ea - pristine_git_object: 3582296f684d975b7a169dd24b41f90312473eb3 - src/main/java/com/glean/api_client/glean_api_client/models/components/ShortcutInsightsResponse.java: - id: 5e52883e3c04 - last_write_checksum: sha1:09c5bea28e6e9f7901b5ecf9204bef90ea8d6a0d - pristine_git_object: 30254b20493452f077e7db642a8848e13322095a src/main/java/com/glean/api_client/glean_api_client/models/components/ShortcutMutableProperties.java: id: 6bc671a35733 last_write_checksum: sha1:893e57e81583d77ab9b654cb271d3e22ca9bd82f @@ -5454,8 +5510,8 @@ trackedFiles: pristine_git_object: 28dd33fc87061e4069fba7032c7237c8d7e5ba38 src/main/java/com/glean/api_client/glean_api_client/models/components/UgcType.java: id: 799738fed61d - last_write_checksum: sha1:8b90f1e164030d256cd95c5c7185d247918a68f0 - pristine_git_object: 050128b8ec9aa05ac5b801807e6438b230220a2e + last_write_checksum: sha1:42984f9bc31191f607be52843aca3ab2885fe25e + pristine_git_object: 0857214d32ca4aed6f185702d10776d488c61a7b src/main/java/com/glean/api_client/glean_api_client/models/components/UiConfig.java: id: 4a03695e2c2e last_write_checksum: sha1:9fc3343b6116a90df44344e10020c38b2a2fcfae @@ -5556,10 +5612,6 @@ trackedFiles: id: ce5a024c0946 last_write_checksum: sha1:0515cd85370dda8181a5315d7c332fa9b666ffce pristine_git_object: 0bbf3c7b5f02829e6a07acd6d93ca484cc41c719 - src/main/java/com/glean/api_client/glean_api_client/models/components/UserInsightsResponse.java: - id: cfc271b55cc1 - last_write_checksum: sha1:fceb1227ecd8dd576dc8f4b339f8e4d5a3cfdb8b - pristine_git_object: 235acd43f40447e0d848994da3c1c95194fa9da8 src/main/java/com/glean/api_client/glean_api_client/models/components/UserReferenceDefinition.java: id: 1383353e1cd8 last_write_checksum: sha1:2fe865e27086f1e5ebfa79c0e53bd04ce2a34793 @@ -5666,8 +5718,8 @@ trackedFiles: pristine_git_object: aa3d4a580ab69c40ef0d45e48f51b23b2582244d src/main/java/com/glean/api_client/glean_api_client/models/errors/GleanDataError.java: id: dd08ac4a5cb0 - last_write_checksum: sha1:5f67fd69be9c1c7c7280a2a5f7ecad467657014d - pristine_git_object: d51520b79a85706c6a0dfff2cc033de4a54443fe + last_write_checksum: sha1:de6fa763b94c0208c88712b7c93b44897dadc030 + pristine_git_object: c60e3cc4d7e1304fad10f5fc11749a5c36955b5b src/main/java/com/glean/api_client/glean_api_client/models/errors/GleanError.java: id: f76c87475860 last_write_checksum: sha1:7b7283153e6c3fd03b2b841b70eb93e4decb4fb8 @@ -5678,24 +5730,24 @@ trackedFiles: pristine_git_object: 20fa92680dc10e9bdc92e571a98baa4ab9bb7289 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/AddcollectionitemsRequestBuilder.java: id: 2b707cd81141 - last_write_checksum: sha1:64d39e0f07709ef6696a5a1568d5e851ca3116a0 - pristine_git_object: 577b0333084436a2c3a56786e1cf4598061e78c5 + last_write_checksum: sha1:f2b8bcf9fb1096fc09b35b2bb21037478c7a85e1 + pristine_git_object: d4df157116fd25c0163272fcf77761a704bd0fb0 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/AddverificationreminderRequestBuilder.java: id: 6f2a47b09264 - last_write_checksum: sha1:8ea3bae271dc3131e3af43ee60be735faa1c0ba9 - pristine_git_object: 3de8778bf64c3d1d72bce5aca860a094f85a1cbe + last_write_checksum: sha1:1dec883a5a76fba1b09d2228af2d4849cb27b71c + pristine_git_object: ccaae9b72ffa8c3ab0d7312a2ed35f6126b3c6dd src/main/java/com/glean/api_client/glean_api_client/models/operations//async/AdminsearchRequestBuilder.java: id: 46df94ff268f - last_write_checksum: sha1:1bc8126e3fe540e1ea9301e9d6cf7813593a6f6a - pristine_git_object: 51ef912e52e20c778d4efd1c39610fe7731f1cb5 + last_write_checksum: sha1:a4207ba593755184c5a734717c5b6aa420cf5bb8 + pristine_git_object: 23faecafd3e81424bd040dccf7036338dca22705 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/AutocompleteRequestBuilder.java: id: 6a4d2a211808 - last_write_checksum: sha1:28112632112976b863d627e4baae418b4925b378 - pristine_git_object: d9ca52957e3bfaeb50d7c4cfbeb9ace175769703 + last_write_checksum: sha1:05d891b7488e197fb69c84597904be7f48aa2bcb + pristine_git_object: 53274b83faf3be0280ba24c73357c69fa7c2db2c src/main/java/com/glean/api_client/glean_api_client/models/operations//async/ChatRequestBuilder.java: id: 6c3a76fecd89 - last_write_checksum: sha1:062dcdf9d95f99d243748459bebf87d054136028 - pristine_git_object: 400945a662310438d11c21db09e8e002b4f4eb7e + last_write_checksum: sha1:8bbd6dfac598d9a78578338f6839b5f753bcfbad + pristine_git_object: 50866fbca77a61d76e9ce098d0399e76dbaf014e src/main/java/com/glean/api_client/glean_api_client/models/operations//async/ChatStreamRequestBuilder.java: id: 05628cff560d last_write_checksum: sha1:5abc1b6f3919670420d395dcfb8465a148a74df1 @@ -5710,20 +5762,20 @@ trackedFiles: pristine_git_object: c3482b9184e68a9bfcc4f4a6970e3964c390c070 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/CreateannouncementRequestBuilder.java: id: 2b85a3c56b3a - last_write_checksum: sha1:9ffd93664a3cb94afcdbbb178d0b413090d3aeac - pristine_git_object: 5d27a6719bc05e68f9e816530df711bda54845f2 + last_write_checksum: sha1:422a5c6cc596b212fa687136fb6b4fc90c2558bd + pristine_git_object: 38479384869583a99eb8e0a379d986e3dfa4a871 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/CreateanswerRequestBuilder.java: id: 66b7264f5beb - last_write_checksum: sha1:76fc73dc0e6db410c5005cbde29232d7bd976a28 - pristine_git_object: ff9308546de38e9ccad8ff0c446e382b95eb9816 + last_write_checksum: sha1:4e81aa2c1049d66d9218ca3133c9b827597b70a4 + pristine_git_object: ea6e56757f0a82bc7d4241806cfa955f055561a8 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/CreateauthtokenRequestBuilder.java: id: c3a04cf83bce last_write_checksum: sha1:ca12552ccff9bcbf5547b641dc167aed7e240d17 pristine_git_object: 795272d2c17d2b1b8d7fcc416ceb2192afc698b0 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/CreatecollectionRequestBuilder.java: id: "903343953041" - last_write_checksum: sha1:f27eb1005e0ffb957d00ae6c2be04fed959fea61 - pristine_git_object: 1535b747a3f697322a3c24e380e79d981e3e6793 + last_write_checksum: sha1:9b3675c11d39d7aaf446d631c24ab3c3b87d6cb7 + pristine_git_object: b712b1c143ebae7c03b2cb8d3edfc49f349b659a src/main/java/com/glean/api_client/glean_api_client/models/operations//async/CreatefindingsexportRequestBuilder.java: id: 6f9a8c2d45d0 last_write_checksum: sha1:02a57396132d151795aa611e4f3be801edbebd5f @@ -5738,44 +5790,44 @@ trackedFiles: pristine_git_object: c412031ee5988648b40cbe1d214ca3582077f8e5 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/CreateshortcutRequestBuilder.java: id: e8dad2fca0de - last_write_checksum: sha1:79abeb9fc2fd5943593126afed28455d4584f122 - pristine_git_object: 0486eae440bda051bf0ec1522be2a636df9569f9 + last_write_checksum: sha1:814ea7e518ea2b7ddf1b68424fd80cf87f0d7406 + pristine_git_object: 03ad411ca53c9fed6b235a88eff536d188b72317 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/DeleteallchatsRequestBuilder.java: id: a1128008cad8 - last_write_checksum: sha1:fa47e48ad0295a90650c48f55ec1c87dc498ad7e - pristine_git_object: 7f4e9c89a8da70aae5c0dd9c826acf82f958ec60 + last_write_checksum: sha1:da4432cb0e03b81d54cea285fd59f703891c9d78 + pristine_git_object: ccd61873b4cf18cc24d5016ee5676504c22e52b1 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/DeleteannouncementRequestBuilder.java: id: d55514fa4531 - last_write_checksum: sha1:ad5491cb049a1b0a03b1775ee0171c2c29976c8e - pristine_git_object: 51cde196b643857d7edeed0a907f3e99986e5dad + last_write_checksum: sha1:5f0a7f8095e506066fbe3fbd04e48cc920b7ad5e + pristine_git_object: 4eed755f4291c39b8c4c5df0786c3d2cfbf51100 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/DeleteanswerRequestBuilder.java: id: bd6f9e8f74ff - last_write_checksum: sha1:b78f93523192dbb2ce55b4d67bce1a43f5034592 - pristine_git_object: 695e2544bb4f4978ff22d21a5f2a5963cdd0f86a + last_write_checksum: sha1:60838d6025ad4a3c298fd69a5cff4625500a0f8f + pristine_git_object: d313af29177b624ff1b8b00653b10b40476b4799 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/DeletechatfilesRequestBuilder.java: id: 05a2cb30b49f - last_write_checksum: sha1:13bcd2fd15d5ae909a1d26671163b969df9b82e1 - pristine_git_object: 638e902e0f919738ff21ebd488b46ff02b960a46 + last_write_checksum: sha1:140d1eb41ea00d95e3572dd6e3399209e0123d69 + pristine_git_object: d0b24118e1b6b9a735a24edad5763375cc415f9d src/main/java/com/glean/api_client/glean_api_client/models/operations//async/DeletechatsRequestBuilder.java: id: 096480ce7dcb - last_write_checksum: sha1:7b352249986c1311a2cdb2ec7e0c03251d3fb767 - pristine_git_object: e59d414f6e14c7e565bf831c119bf61106fdbf61 + last_write_checksum: sha1:f68a12bdfb901125fe84aadaab94d694fe7439fe + pristine_git_object: ad03fee90fe04d4ee6f64223055b07be8fc4184b src/main/java/com/glean/api_client/glean_api_client/models/operations//async/DeletecollectionRequestBuilder.java: id: 4f055e7f9f0a - last_write_checksum: sha1:2d24d256a3f2a42801645f211f9e04b02f8964f5 - pristine_git_object: dab83644a45161f3f6c66518fe35e685e63c76b6 + last_write_checksum: sha1:a34d9a9fdfd297fb8f5c3083701f18883e80887d + pristine_git_object: 6dd680020bff492ab3a8ba77d0c18d8595f8f971 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/DeletecollectionitemRequestBuilder.java: id: 9224a4ecd6a4 - last_write_checksum: sha1:be2ad60784a9f76121cc937244455244ed5afb70 - pristine_git_object: 895a27a01877518ddece85ce3ac4b618756cca8b + last_write_checksum: sha1:b968c3a5ed28e5b399e9076758c6522195de1bab + pristine_git_object: e57d0f1bec4bb80afceaeb90cc419713919d0380 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/DeletefindingsexportRequestBuilder.java: id: cc7e2e4d051e last_write_checksum: sha1:29c5400f3d904ae98d46d61cdf4df60c2e57364c pristine_git_object: a757afcf3483be6e4fca1ea90a65a47be43a6ec3 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/DeleteshortcutRequestBuilder.java: id: 050d6960a60c - last_write_checksum: sha1:89c0e522e45d9140047968e1dcbe3344513a6b1e - pristine_git_object: 0dbebbb26d845260ef9f059910f6231be37715f4 + last_write_checksum: sha1:437ffdfed963bfb5e2a2a0d96139850e098bad58 + pristine_git_object: 0e28e3191087805fcc9c2614bcdc36a86d2fd716 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/DownloadfindingsexportRequestBuilder.java: id: 42e0b57ab31a last_write_checksum: sha1:87972531a0e5637c0f565b6f9dd3cc0fe972311f @@ -5790,80 +5842,80 @@ trackedFiles: pristine_git_object: fea7086b0233dec6d90a80a0ba35daf90d1d449c src/main/java/com/glean/api_client/glean_api_client/models/operations//async/EditanswerRequestBuilder.java: id: d55be55a429e - last_write_checksum: sha1:127af8f15fd3a1f40dfc9e8d466028d7fa16a8e7 - pristine_git_object: e8db51cbd79af4ed782ec1f4f1c748be1b083d49 + last_write_checksum: sha1:da6ec1d743f7826d6da621de33a05113c2a6c683 + pristine_git_object: 43073a3e0b48940a1af5fef58ada3680206d9330 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/EditcollectionRequestBuilder.java: id: d33ecc6d8a02 - last_write_checksum: sha1:51e8cb1e890c13568bd00d72817aae673a6830ba - pristine_git_object: 3a7e8d881fef384f57b09e3e8c3fcb4444427137 + last_write_checksum: sha1:0370c888671b6427b64a06b990b724af651dd05c + pristine_git_object: 9a03e00513da7ba91107d2047a93669b362ead45 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/EditcollectionitemRequestBuilder.java: id: 6b30ae0c59c0 - last_write_checksum: sha1:12699e53bf93b4636f9f9fd790683a9ced0f78bd - pristine_git_object: 062310502ef1de88f9142984debf1e0a94cd1354 + last_write_checksum: sha1:e984ffba6e23ab2eee17446ac19caead90b0eb88 + pristine_git_object: 795d46c23b6220f42d7171fcdc2cfbed4f615e5c src/main/java/com/glean/api_client/glean_api_client/models/operations//async/EditpinRequestBuilder.java: id: 728b1a5795ce - last_write_checksum: sha1:d52c4077e64675575073f2dda8c397b1a2ceb6a5 - pristine_git_object: 353302903c0aa693e9f61b93befdf7677858e32d + last_write_checksum: sha1:eeba7916663127c05228d8d1d807f7c10294e074 + pristine_git_object: 31980eb134b02ad210151249bae3971c709df731 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/FeedRequestBuilder.java: id: ed8924fb46be - last_write_checksum: sha1:7ca3d9428e15255243c22004e80d71a371394c83 - pristine_git_object: d3f8838bc7cf9cff02f26ed93bf19ac408693fcf + last_write_checksum: sha1:e605d5b5e88235ae546eeb15c05a2c5992e79ec1 + pristine_git_object: 772d9e1c67d3c9ad7afb45d27304022768a3dfa9 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/FeedbackRequestBuilder.java: id: 75ccda7ef108 last_write_checksum: sha1:c421619c92b31468581de9a3e6ee5ed9df755844 pristine_git_object: 43f8b5ce0a3321ded08ed127b91fef022799154c src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetAgentRequestBuilder.java: id: 728c52579733 - last_write_checksum: sha1:573704170b82534eb2777939e638ea492537e4b6 - pristine_git_object: 1244b9fc906bd7ec6e3f4aa61546ec309f0774d0 + last_write_checksum: sha1:0fdf4cd0841f1d726a559dc685529c0b9c485cf6 + pristine_git_object: 612952bb4d35e9c8cfd6cae653dacc2599187684 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetAgentSchemasRequestBuilder.java: id: 78ce0c6b242c - last_write_checksum: sha1:6be025506a009e8381d6bdf3ff2e58e72604c821 - pristine_git_object: aa2cb4f25a034b1ec7c1efdf209a0bb7c8b5e1e0 + last_write_checksum: sha1:2f9b7d7e999bd1e207f40a19e60fb630a7f971cf + pristine_git_object: 2fde01db42ba84789d6fcb1a1c2852aeebe35b4f src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetRestApiV1ToolsListRequestBuilder.java: id: d0ece07eab72 last_write_checksum: sha1:6a72e0358371e0d992f430852e10f09745308b78 pristine_git_object: f0d2347c3ab66759957839fbb136a99519f6c39c src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetanswerRequestBuilder.java: id: ccf6a26a0d91 - last_write_checksum: sha1:67104fd41caa80f5784775f3c2470c45891fd296 - pristine_git_object: 240119e6e63fd0928b031ea91e4dc286b4776eb4 + last_write_checksum: sha1:ed8098230ffce55c2dafbeda8d17e83f08f02ba2 + pristine_git_object: 626be7e178b964e1d55bfa54cf4172083a22942a src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetchatRequestBuilder.java: id: aefd1fe00302 - last_write_checksum: sha1:b9f254c9ddd9489fd83431dbcf07dc60312f9657 - pristine_git_object: 5ea89916b86219f4e44e3673dc73059f47b39fe1 + last_write_checksum: sha1:49dd087a03d0544e2b9b10c643873049cf6a0497 + pristine_git_object: d58912cb792ec179cc899f25ab3e89468f45e8cc src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetchatapplicationRequestBuilder.java: id: 275e677caeed - last_write_checksum: sha1:4b10718efac102623b8af4dfc127cc47cbfa3c53 - pristine_git_object: d3ed2ad445443f19431906d30d9c55e1f3a4108e + last_write_checksum: sha1:169fbb8eeea5ed26a6c782f3d5f791fd2eeaeed9 + pristine_git_object: 921ba214b38b7fe4ffcd1bcbad4a645fcbb7caf4 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetchatfilesRequestBuilder.java: id: b0c86b83e1ac - last_write_checksum: sha1:7da04a9ffc6cc6e0126e2e386507d149a2832e44 - pristine_git_object: 78e3306150ab5632bb6fa43324f72eaeee6281ea + last_write_checksum: sha1:a146b7843a209afa6cb850e15a573d98ca888ec8 + pristine_git_object: 9922f5719718ff12a64332d35c8425108a727698 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetcollectionRequestBuilder.java: id: 0bf8c6668eb7 - last_write_checksum: sha1:8c1c4d8522a18889b64bdffc016db413acde9a2d - pristine_git_object: 6443ce9f5660ba52bc0dcc1131104f191ac9921f + last_write_checksum: sha1:0fc71a453594b13de1353de09d42bf306e3e40c3 + pristine_git_object: 53733fc0c620956fe5f88561bc09e77791e5ca98 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetdocpermissionsRequestBuilder.java: id: d361b0f63963 - last_write_checksum: sha1:26578795bd89c0e25a426d5619918dfb43bdbc6d - pristine_git_object: 36945479e5474181e216b3e9a543683ab170184f + last_write_checksum: sha1:c40bfcba19c648ca809338589b67389bcd1731e5 + pristine_git_object: 4d8e64e326837cac9e28e3fc87bb60fe0ce32aaf src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetdocumentsRequestBuilder.java: id: f2b021a6b6e4 - last_write_checksum: sha1:34237c1d673ddbc2a105810962200d87560ee570 - pristine_git_object: 3ed7eda5e4bf28fa6f89574e9e4c0d813e1e1c45 + last_write_checksum: sha1:a8f135c52052a0556a5b415a37d72803992973f9 + pristine_git_object: b08ee4660bfe247bad4849931d494d4734c7af3e src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetdocumentsbyfacetsRequestBuilder.java: id: 8913c538c055 - last_write_checksum: sha1:f7370a4edc9f6ce3a967f03f1db1e19a94dceea9 - pristine_git_object: 7589957bb569d0f888b6bc32657fe173028ab0f1 + last_write_checksum: sha1:7e647047bcc5b34d6f745ad022ec1bde1d76dec1 + pristine_git_object: 7b4885065bbd787668c896027150f0554499b83e src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetdocvisibilityRequestBuilder.java: id: 20c7857817a4 last_write_checksum: sha1:bc1a71d66481b27fcba5e5495f405df45df964c2 pristine_git_object: 452509b20bdc2fbbf3c4167145afc99911cb50c8 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetpinRequestBuilder.java: id: 178d72f64938 - last_write_checksum: sha1:33b61aadac15305ceccc819d02c8b7683b189422 - pristine_git_object: 04aaa3f2f0b205d9f030d2e7b34e50d450aa94a4 + last_write_checksum: sha1:f648dd1639ca3c1d4cb2476d492dce14c8a4eaa6 + pristine_git_object: 788c18308152d0a49a36381a3fc91b427272d3e5 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetpolicyRequestBuilder.java: id: a8b86cf76013 last_write_checksum: sha1:d7bfb368bc8311a4c952da495a564854cc2526a5 @@ -5874,60 +5926,60 @@ trackedFiles: pristine_git_object: b908803e49151bc5d5b7cb30adc698d8f15debee src/main/java/com/glean/api_client/glean_api_client/models/operations//async/GetshortcutRequestBuilder.java: id: c363149cb3fa - last_write_checksum: sha1:b091617596d760cf576fb9c0eb25f1d00888d1bf - pristine_git_object: a90c42d5e1834c7e1f534953992dc78f7fb2db0e + last_write_checksum: sha1:17fb064e3aa5d7fcd88421b805f30ac4e654a91f + pristine_git_object: 8fb4b6cb1712aaaf47ca918f3d5b1288a90078e9 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/InsightsRequestBuilder.java: id: d0cef31ca4eb - last_write_checksum: sha1:b48cc9dbc0d38e1753bce7bfd645b975c4bfd72b - pristine_git_object: 6506e29f804e778f906891ab89468de9918d8d21 + last_write_checksum: sha1:1611e632d2ac214173401f38c4a61dfa8ad08721 + pristine_git_object: 89ac19daf6ab4fa0943f3607b35db0e0995ef9a6 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/ListanswersRequestBuilder.java: id: a974cc9a0c62 - last_write_checksum: sha1:a681aaad1425f4065e7e92fe51f13bbe657c3e57 - pristine_git_object: 0196597e4c56309995d4e1f64a94e36b6949d3dd + last_write_checksum: sha1:245d5ca01772b507bf2334fb616bc90c4b19cf67 + pristine_git_object: dd0d2ad9980a75ad4d8a7cb2bd331ed9aa648954 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/ListchatsRequestBuilder.java: id: 3ddd86849582 - last_write_checksum: sha1:803aad3ca84522476879078558e03a25f822e06f - pristine_git_object: d181182afcc664a9177ad09491e3297d0dc8ed54 + last_write_checksum: sha1:4ebeb320509cb870b617a9b25aee11626c927b42 + pristine_git_object: 6b8cb31ca09c98414af2f8fbf544588d2f9b2332 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/ListcollectionsRequestBuilder.java: id: a66af65e5a7d - last_write_checksum: sha1:20acdf2ba825a0f63fded0498807cb61b92705e0 - pristine_git_object: 0b021b8347246e350308b0b506af4b1d7eaa98b4 + last_write_checksum: sha1:d1d9f5dea23eabdd79adc3edc5434d6bbbbb7998 + pristine_git_object: 530ea87e3961b400a0dd595d2c4e5989494b4c50 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/ListentitiesRequestBuilder.java: id: 775e69b210cd - last_write_checksum: sha1:c66917f8aaec13228469cf7a16d30f135f94638d - pristine_git_object: afcbb5b06836b0c738946e1a9449bb2de74741bf + last_write_checksum: sha1:6c7044a6469e4d7a191b3ff40bfb9cad49775a09 + pristine_git_object: 8b1950c2ef703c3b0d338070dbd2baefcd0b6f1c src/main/java/com/glean/api_client/glean_api_client/models/operations//async/ListfindingsexportsRequestBuilder.java: id: fc0c4bb35bf6 last_write_checksum: sha1:93f5726a074205bb6ab03e393ce2bb469f645f1b pristine_git_object: 105983e71868f47e0973669021516d8ffcb2ba52 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/ListpinsRequestBuilder.java: id: 91fb48f58a2c - last_write_checksum: sha1:ecad8dda4fa6583e1232145fdb406f00b6b66a16 - pristine_git_object: 937df44ebbad39b30b34a75625304a4aa0789e85 + last_write_checksum: sha1:792458bf7a7ff6cdc0231ce669a23a04e76fe535 + pristine_git_object: 82600c4dc60753ea10f0ca19cd0305a2b997074a src/main/java/com/glean/api_client/glean_api_client/models/operations//async/ListpoliciesRequestBuilder.java: id: eaa2cabfa652 last_write_checksum: sha1:0f1669ebc09481f3008e71181c6971f2717b3479 pristine_git_object: ebe59339a43a0d553e63b39621525237dcfe48dc src/main/java/com/glean/api_client/glean_api_client/models/operations//async/ListshortcutsRequestBuilder.java: id: fb2287af3e0a - last_write_checksum: sha1:95710989d1ee6c44c488f148f7889e138a5171de - pristine_git_object: 93967d3ca2aa16bf53617efd3eaa5d6991a9f26b + last_write_checksum: sha1:9867f33e94614565a39ef9092ec908561e744d84 + pristine_git_object: b2e3ebb7add863c42ae74823e8057c4e54f61fa4 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/ListverificationsRequestBuilder.java: id: "102117066517" - last_write_checksum: sha1:4c1c71bc0c8337197af82daed59804906235285f - pristine_git_object: 78fb7362c29db0be8c15bdad20283ea6a04a328f + last_write_checksum: sha1:b4413208907a635a8a45bad1037f0d6528922d25 + pristine_git_object: 65c06c427bcd6f922c2d8ec3ecb42f4b967b7101 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/MessagesRequestBuilder.java: id: 8781b84e3912 - last_write_checksum: sha1:0559b85a6b129bbf71f826c622b5b58a08279793 - pristine_git_object: 949ff8cbd3904e25618c27dba94226427c32149b + last_write_checksum: sha1:98a3895665486820b45445a72c3748fcf12f6d32 + pristine_git_object: 2e2a701b2313b18e342cf4ab3afe1cc1fb4c68fa src/main/java/com/glean/api_client/glean_api_client/models/operations//async/PeopleRequestBuilder.java: id: 713d0e832305 - last_write_checksum: sha1:00a4863ee74b3aa162a04128b98bf79101cad649 - pristine_git_object: e95bdeddf04b8e88dc80618ee4246565a21521ce + last_write_checksum: sha1:3ee6dc11a88e0e0fb52ce5de9321a1dfc2814ab4 + pristine_git_object: 726e122655ccd5568fee3da2f5d53c8540746de4 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/PinRequestBuilder.java: id: 11e86f5b0c45 - last_write_checksum: sha1:9db9949fb0c1dd822f13d512be8135411e7ffe3e - pristine_git_object: 3dff81c63b66d2b818b93f0b4ba69626aea02626 + last_write_checksum: sha1:a013758acfd4c6738a2fdd0f3eea6f35a6c109f7 + pristine_git_object: 92e58812c959831cceda450c7632ae79e95829b4 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/PostApiIndexV1AdddatasourceRequestBuilder.java: id: 3c6f34b93b68 last_write_checksum: sha1:fb207382ef420c61bb44f53e6769099675d0722f @@ -6082,48 +6134,48 @@ trackedFiles: pristine_git_object: a3ee503c1ce77042558cb5bcaa184d778eab3dc1 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/RecommendationsRequestBuilder.java: id: fb9a4142cd38 - last_write_checksum: sha1:027ddbd2f1271a7434241f29643e1c39a5c9743a - pristine_git_object: 5f4a2e5d49f1a89b720fe406827282ec1d8e0443 + last_write_checksum: sha1:1071b450863b649fd6865d8af65bbd910177b229 + pristine_git_object: bd18f937a7314074a2619bc9f2c356fe1052e075 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/SearchAgentsRequestBuilder.java: id: e7c50b9e7078 last_write_checksum: sha1:6946c0c4149cbf3f4c6ed9f40a56e68eae023895 pristine_git_object: 9bd1b7eb7e6c72e0b5453f583db0597d5b8775fe src/main/java/com/glean/api_client/glean_api_client/models/operations//async/SearchRequestBuilder.java: id: f1ce41664a11 - last_write_checksum: sha1:bfb2fafb70d29c0e60525256fb079b9f5876517f - pristine_git_object: f4d3c6caf1636dc41d75a5bff7f19a71524aaf52 + last_write_checksum: sha1:375db4e4e40910c69b497b7f51acb1d9faab1f73 + pristine_git_object: c4c17e540b8dca04630b32b8e1be2192396eae40 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/SetdocvisibilityRequestBuilder.java: id: aca2e27f6221 last_write_checksum: sha1:1317ad802999847027e0f88e0b1a0c245bed84ec pristine_git_object: 22a65a4bdb2df540ec6a616cb705ae7eae9d6897 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/SummarizeRequestBuilder.java: id: 6ce03e6cfe6b - last_write_checksum: sha1:f97450b4fc3fc0e508402a1841c28ad5ea74eed8 - pristine_git_object: 15b99bac92fb68b08ed9a511f6724ab1893edec1 + last_write_checksum: sha1:b95310808084636a3ce7522d5b37d032c3ce620f + pristine_git_object: f6b6e7180546ef5fd5e3c46d773725155e883a38 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/UnpinRequestBuilder.java: id: 33b1df94f00d - last_write_checksum: sha1:15181cde35612318963a0f48b5b4fb0d03a4bb18 - pristine_git_object: 8691decdb2affbeaeaab25fce402847ba3b3d289 + last_write_checksum: sha1:5bf6760477536c8287d6f3c75ac22303b25d4e29 + pristine_git_object: 953304807a1eea3d71440f2b3adcb4d11bc7cae8 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/UpdateannouncementRequestBuilder.java: id: 47eb06b06a95 - last_write_checksum: sha1:9af75075e63cabf0ecf57f1ac59ae3c8e5cf2506 - pristine_git_object: 19f0fd92267c49a6b2c4520ebba34f10a396bb38 + last_write_checksum: sha1:06eb0a16ac404a4a8bbe67a395db33803dad93d9 + pristine_git_object: 6603fce2bed5d7c4f71afbf9ac5083932cef90d4 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/UpdatepolicyRequestBuilder.java: id: a40a3f12c9b1 last_write_checksum: sha1:3703cfe7c90e4342ff30ae6ea393f06212fff201 pristine_git_object: a6dddfff5ee58a181f68d75f0cbca1e1a1a98ed4 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/UpdateshortcutRequestBuilder.java: id: 4b9dbf1c6388 - last_write_checksum: sha1:20f46ccf6373ee35b5bfba81ef950bfebff17df4 - pristine_git_object: 72b4ba645a1e0eadf5e7990db379558d8be5d496 + last_write_checksum: sha1:0776a31253780b02e0dd627878888ab742bc4564 + pristine_git_object: d9eaa6b138fde7df4b5b2b17a3b74e8a637ef411 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/UploadchatfilesRequestBuilder.java: id: ce898b961cd6 - last_write_checksum: sha1:6272f07dc61dfedb04939b5a80cb4fa5c9d4480b - pristine_git_object: 6c5a1cf93ba14d91cbc2ced4eb3f884f453fc131 + last_write_checksum: sha1:f39e6e79fca5d5420672acdde0362ac41af4b297 + pristine_git_object: 3c7904b50e418e8676630bd9562b75fc2fd2c6c7 src/main/java/com/glean/api_client/glean_api_client/models/operations//async/VerifyRequestBuilder.java: id: 7ec5f7cc617f - last_write_checksum: sha1:1487408afbd76debd1a2d86da335cc32dda0b276 - pristine_git_object: a07550bbb6856f12b124081e37151f97c3a4f481 + last_write_checksum: sha1:e2412ce1b73f2e71fe29baf264aa7ffcaa81e010 + pristine_git_object: 11df264a21b7eb40da4126bd486e494336ce2808 src/main/java/com/glean/api_client/glean_api_client/models/operations/ActivityRequestBuilder.java: id: 72d1210c2827 last_write_checksum: sha1:0ccf3cb8433f1e099b319a7006a235db1d124939 @@ -6132,46 +6184,62 @@ trackedFiles: id: dde99b9238be last_write_checksum: sha1:c7952537fda086e60ffd29e5c143bb0bd395533f pristine_git_object: 4615f3bbdbd19ae3629fc2d8c900afc7d70da560 + src/main/java/com/glean/api_client/glean_api_client/models/operations/AddcollectionitemsRequest.java: + id: 1401657ca47c + last_write_checksum: sha1:eda6249852194f153960633bb882508edeed0b05 + pristine_git_object: 901d0b57935d78e43abc6e31e2f555df8d9c40cd src/main/java/com/glean/api_client/glean_api_client/models/operations/AddcollectionitemsRequestBuilder.java: id: 5eb0cd440740 - last_write_checksum: sha1:36355e96cdb385bf71272022148cda882d8ec0bc - pristine_git_object: 78cbf22268dbde3ba04eed236a3378d5cc7e281f + last_write_checksum: sha1:0d1693866080aebe819cda3a48aa72f2f67a90cc + pristine_git_object: d9da798f8f32fef94b57985fa69679e6d8e19ad6 src/main/java/com/glean/api_client/glean_api_client/models/operations/AddcollectionitemsResponse.java: id: dea2dd9cb002 last_write_checksum: sha1:6c1a4fdcac2cfbea8910d479383b3e6bd44f0892 pristine_git_object: b0cc4aef1f8af0127e12cbe1b3aea1e421e6b0a7 + src/main/java/com/glean/api_client/glean_api_client/models/operations/AddverificationreminderRequest.java: + id: 6097e3e35973 + last_write_checksum: sha1:efc0d10d804fc5e44463f1a0534dc1814e9e0be9 + pristine_git_object: efda8d9037fc874289e21ac4e09bcf0dc8616f99 src/main/java/com/glean/api_client/glean_api_client/models/operations/AddverificationreminderRequestBuilder.java: id: 9440cabc8460 - last_write_checksum: sha1:5912dc4e13fb3acf87b3c2ded1de09ec53d9e337 - pristine_git_object: 9facda2a645dcde4496c406fe03b2f3023701f5d + last_write_checksum: sha1:1c995835e4871ac3c4994c5a623e865ae50a8404 + pristine_git_object: 9680b96bc662d194760f10279cfebfa153b19683 src/main/java/com/glean/api_client/glean_api_client/models/operations/AddverificationreminderResponse.java: id: e32a54b31ec8 last_write_checksum: sha1:537e75e12ff7c5d6e70675cc8fc9df4fb8016441 pristine_git_object: e6bdf35b1cd611160db71358847079356774f34a + src/main/java/com/glean/api_client/glean_api_client/models/operations/AdminsearchRequest.java: + id: 4494a0e18073 + last_write_checksum: sha1:fb326759e83a147ce0c47c241883f2a62a2f8524 + pristine_git_object: 7f39119ba4edb2088baa136237710a88515e6272 src/main/java/com/glean/api_client/glean_api_client/models/operations/AdminsearchRequestBuilder.java: id: 78010c2a8c14 - last_write_checksum: sha1:d8b8cff0b812ff1681e36bd9623b9a4f7f0d58d6 - pristine_git_object: e7fe3ad173013098574e57fc44c9c896aff6969f + last_write_checksum: sha1:d5c72037988ef194acd99119a3fde6a5436b2c0f + pristine_git_object: 85e3b59d4d3ab6844d8f730c6478a71728bd2e00 src/main/java/com/glean/api_client/glean_api_client/models/operations/AdminsearchResponse.java: id: d19c4abf6a29 last_write_checksum: sha1:14d3e038d9ae6ea1b506bc48c041a1aad8b0281b pristine_git_object: 934e3fb11c3d727334b6d968f6a446b83fc18425 + src/main/java/com/glean/api_client/glean_api_client/models/operations/AutocompleteRequest.java: + id: 8021321d0adc + last_write_checksum: sha1:ba16cfed198c1e6193a69803db0edb88cd9da28c + pristine_git_object: ba6f6703cc860218dde95d5125b56af74545c2c4 src/main/java/com/glean/api_client/glean_api_client/models/operations/AutocompleteRequestBuilder.java: id: 657e1e80a9ac - last_write_checksum: sha1:8a9f7d3cd828efc2ba03feca089a6cf1a5938877 - pristine_git_object: 4ecb30defaf6ada19b4e09bcf466a5b1753dc688 + last_write_checksum: sha1:31ac4aaf0a60bcf6b871885f6120392272bd7c0c + pristine_git_object: 3f7c2f409fe59802f33b60e8bc78794d462bc14b src/main/java/com/glean/api_client/glean_api_client/models/operations/AutocompleteResponse.java: id: 987a94ccbf95 last_write_checksum: sha1:a95cf758fde48f77890f6142bc7909236940803a pristine_git_object: df3a4935f7ac6e93ee5663a68900c46be5038a9d src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatRequest.java: id: 7d64efd2d662 - last_write_checksum: sha1:cc3b9b095a3123cb3e387a6195d0408c47683d59 - pristine_git_object: 61e409a20334bdc81b1f02faeb9df6b835f1386a + last_write_checksum: sha1:409e5147f770c555fef12f77355f1d8b65e20cb9 + pristine_git_object: 99f779c95cdf392692e2ff5bde22450f0f02bc5f src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatRequestBuilder.java: id: 1d962da527de - last_write_checksum: sha1:69bd5329159eb11fd70353a41488883bd22455c0 - pristine_git_object: e6de45a59f40fe57487f54a115b81e690b49e05b + last_write_checksum: sha1:73f1d7e9579e292891d5657034c79334e4e15c4c + pristine_git_object: 744373471d4963e61e913da04b0a9d01e29f91df src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatResponse.java: id: 8dfc869d2216 last_write_checksum: sha1:092fd7afccf88e6449a2efa349bda59063eed559 @@ -6204,18 +6272,26 @@ trackedFiles: id: 7211be68a7d7 last_write_checksum: sha1:795c96a9da5540b3f5e56ea25458603d1afeb068 pristine_git_object: abe27657349977fdd67a267cc0dcc9c676f8eb06 + src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateannouncementRequest.java: + id: 7a8d7e162ef6 + last_write_checksum: sha1:ffdd31b8503ddd4b40c6e7e474d4977a79a4c1f9 + pristine_git_object: bbbd26882f8e2f191ed013e82dcc3b443ac34f7a src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateannouncementRequestBuilder.java: id: 561c493a911e - last_write_checksum: sha1:5a20eeb3836a8056a5ef5695a68ef596588d61c3 - pristine_git_object: db590f0a35286c56edd85ec4f6420e5418d59a9e + last_write_checksum: sha1:50d3e1a97df52a561c08d00351c68d51a2477ad8 + pristine_git_object: 2444d313f1f902eda00825812e83bcd7494799d8 src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateannouncementResponse.java: id: f70553085803 last_write_checksum: sha1:9ed858bfd3962081e9ebbbf9d4c6c9778b608e8a pristine_git_object: 2d31d078ef481fabb7b907ff238cf61a1ba717a7 + src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateanswerRequest.java: + id: 86099d878d26 + last_write_checksum: sha1:eccfc337f845ebdef1fc3f87f2ee03db358bfa9d + pristine_git_object: 245194126c9c6708d303048b62c82a13b35cfc29 src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateanswerRequestBuilder.java: id: f17003d0dfc9 - last_write_checksum: sha1:a074ff967c32773a67b62138ea87fbc348f34e34 - pristine_git_object: 6466d66241de2f5799f3078d23bd8a271842ec4f + last_write_checksum: sha1:75a680ad57459b6810e0bae0c5263dca160875a8 + pristine_git_object: 999ca531ac5d6d97d47ce62fb82c168fc36d9f59 src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateanswerResponse.java: id: 71ad4b662dfc last_write_checksum: sha1:568b3af7a63a1ee1aa937b27917148be59d393be @@ -6228,10 +6304,14 @@ trackedFiles: id: db14b4c9a82a last_write_checksum: sha1:58990a3a90aab5053c2a5a8159ede4d00fd67f93 pristine_git_object: 2032c809bf28522c61aa3d1292f04c1c24d60c74 + src/main/java/com/glean/api_client/glean_api_client/models/operations/CreatecollectionRequest.java: + id: ceae3a18f3b3 + last_write_checksum: sha1:478e9733e558b46c8020389704091d0ea3254bc9 + pristine_git_object: 78876770878d8ff7c5e33630b8e49b229a46da2b src/main/java/com/glean/api_client/glean_api_client/models/operations/CreatecollectionRequestBuilder.java: id: 2a1075240cd2 - last_write_checksum: sha1:9649f8c022f060321b3aaf5b823d72356697e453 - pristine_git_object: e8be8da801ee8b09429bcbc31ff10bec85606918 + last_write_checksum: sha1:31a245781bc69f015698d26b0617c1ec5258ef2b + pristine_git_object: 108fa8e13a6a4e9234e85a830e36de7b73e1d394 src/main/java/com/glean/api_client/glean_api_client/models/operations/CreatecollectionResponse.java: id: 99da35c2a007 last_write_checksum: sha1:f8808958f6ce43953b5e8e0f2b506552750c1de1 @@ -6264,78 +6344,98 @@ trackedFiles: id: 0ed38d5aad8a last_write_checksum: sha1:2ad8d0ad403b44943a7a3b387d614c33d97e1b6d pristine_git_object: 04bcb0698aa929ebf4818df3dc0311ddbcae7d4a + src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateshortcutRequest.java: + id: d21e50cb2552 + last_write_checksum: sha1:8c430797a012cc8779610fbedc8a734bbac9b9d4 + pristine_git_object: 05c5fa236d4a31f2b4c69325ba29a70d8e1ebb7b src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateshortcutRequestBuilder.java: id: 02ddf35a21d3 - last_write_checksum: sha1:258b2198042e1c81a4a5e10ce7320762663d09d4 - pristine_git_object: 2a81d599b9e31984ed17e126f8df9a3c98463e95 + last_write_checksum: sha1:60b0d44fee09fd18d4eac698886e3bf3944d6aba + pristine_git_object: 4eac7138828c9e324331f199dcafc5336f56eeaa src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateshortcutResponse.java: id: 9c234128a2d7 last_write_checksum: sha1:57b0f5a7902afb064ebb3afd50dc2ba9a886d210 pristine_git_object: 793026567ad54737a876259451583a3ae2a4dc6b src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteallchatsRequest.java: id: f842d9a60974 - last_write_checksum: sha1:6c28c8d20db3dba7edca5eec104d72676074c829 - pristine_git_object: dc907bad6e8818248d95a20223cd30a50e6b47b0 + last_write_checksum: sha1:39a3a7b740bbba9365e330822e846136e95d98f7 + pristine_git_object: 20e77011c0830f9edc7bb2d557ccc7a8f532a61b src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteallchatsRequestBuilder.java: id: b5b9067e37bb - last_write_checksum: sha1:2de92bdd30005e8e4c64303f7a3545dcb5f870d2 - pristine_git_object: 7ccb501d9237bd6b04ae8ec4f0b3c62e316b4372 + last_write_checksum: sha1:e9f22cba9b4f7733b3004930c63355d54502dc62 + pristine_git_object: aae854c903bb9cfbc425be81056c83ce5ac4f1f0 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteallchatsResponse.java: id: 079b48f4c5c6 last_write_checksum: sha1:d09f798f95af4d0efe929ae800150a13f15fa0ca pristine_git_object: 628c8253a5153932773da85d7dac890ec2ab032f + src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteannouncementRequest.java: + id: 7fc406dc472d + last_write_checksum: sha1:8638df3e8e84341f6e7d36a9725e0b0484174f0d + pristine_git_object: aa945d9effd8da592c36a1c2b4767cfd108fb380 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteannouncementRequestBuilder.java: id: 064baace68af - last_write_checksum: sha1:7b21e92c94dcf28faead6acd615cb25dcae16275 - pristine_git_object: 81127ece17fafca38ef7093181736105952c4d6b + last_write_checksum: sha1:795ac01a9bf6157702c20ae3e5bca6b4ac5faa1a + pristine_git_object: ae652db6f028edf2672aff9f14bf21c7a4654c7f src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteannouncementResponse.java: id: 32427c7445ce last_write_checksum: sha1:e0ea70b63aa202e9969caca9d8de044c707b809f pristine_git_object: 11c8a1e6dfc207c1fc4a6fc3e42814a6293a26bc + src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteanswerRequest.java: + id: c643cf2fc620 + last_write_checksum: sha1:4d418f98c0eb731ae3db743852282b34f575f633 + pristine_git_object: 23ef82d41824cf8bbf019be225050834ba179d64 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteanswerRequestBuilder.java: id: 446b79c2b606 - last_write_checksum: sha1:8d50b0779c2659a22dadca069086f4ec9e311103 - pristine_git_object: 2648e7af953767294acc7ffa82db61da4adb99a4 + last_write_checksum: sha1:6e319f071ac9bf098e52005a3d816beab6a7a164 + pristine_git_object: 5488d0ae986e17a9c243cbdf79bc09ff42796f2c src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteanswerResponse.java: id: 9abf271f6437 last_write_checksum: sha1:369abe54b25e425d55524678a01efbc0f9957193 pristine_git_object: eb955356564dfc9dff2afc4e6f1b85b291863052 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatfilesRequest.java: id: e23e38be21d4 - last_write_checksum: sha1:72bfe97646cbc6469f91fc3892c76da4983d7b8c - pristine_git_object: a17bd69f0c1bf30a79838c82766c752940434701 + last_write_checksum: sha1:75ae139849715bfda518d97ddb5e0df32d143acd + pristine_git_object: 95838cd8d50e6c67be45cd49992779d44b5db8fe src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatfilesRequestBuilder.java: id: 7630b53965b4 - last_write_checksum: sha1:3d0ccb0f35b50d778933ada60757d776b183fe05 - pristine_git_object: ff60807bdd58d440d6cb22472682ade3a9e95cc4 + last_write_checksum: sha1:a2214e2d35be75c0a5a733670cb026a06fc1ff67 + pristine_git_object: af57be548d54905a4f6a931e5d576f0ce092a4e1 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatfilesResponse.java: id: fc0b71898806 last_write_checksum: sha1:d9a1ece3a73466f6443a3ed30bd04aa7ab1db1db pristine_git_object: 26d787fcc3bd8f84fcd93f7009c58567833e5ba8 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatsRequest.java: id: cbc6a58e868a - last_write_checksum: sha1:9ef8a51f967b8030ee03a0750a172ffc314bfcb2 - pristine_git_object: 5d6a848b99bb826625832e7b7f7bd0366659c934 + last_write_checksum: sha1:df640f4afbcc69c7199ffd70530381abf1dc3136 + pristine_git_object: af5dfd564f977018deab0597e9cc34808ff884fe src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatsRequestBuilder.java: id: 5aa3ba5043bd - last_write_checksum: sha1:b0e44d3087b0e9320906023abfd89a8113c93583 - pristine_git_object: ffbf6a3aa9aaf43f081fd6eb62d63d7500572a79 + last_write_checksum: sha1:64288b22c09591e5eb6b3b0aad24b62a81dc51c3 + pristine_git_object: 5866ac972c76d86c15599597bcfe484e32fc42bb src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatsResponse.java: id: e7e19127c707 last_write_checksum: sha1:246c14b8bd6d197666ef68ce1f49ce54c97d3fb5 pristine_git_object: 8c4a672baa13164fad714d5ce670839ceb338709 + src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionRequest.java: + id: 06891b0de7e8 + last_write_checksum: sha1:d417ee6832214cf6b6a2d681d8963fc79e4780cc + pristine_git_object: 48ded486db80506e597add66c16c809355ba28c5 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionRequestBuilder.java: id: 31806dc235d1 - last_write_checksum: sha1:2711f2afc29c0672f94fdd7378ad037fdf658950 - pristine_git_object: 8e45027de8e0af93aa5fe47fccf906c6541ed8e2 + last_write_checksum: sha1:49399fa082c712007f1fcfd7071150e48a67587d + pristine_git_object: 154576bdbec955d353d49f36e633ef716f23c877 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionResponse.java: id: 162801f3c266 last_write_checksum: sha1:32544c1329d3cc49f8d6407200d07ca467a94b8d pristine_git_object: c9703da1327dea280883c4bf27df5b2b5a7b5444 + src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionitemRequest.java: + id: 726bbae00d72 + last_write_checksum: sha1:faf39426312c9f2e4dbab38ba40afb54a8508684 + pristine_git_object: 01e481b4292910e9887157efd872b888259568fa src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionitemRequestBuilder.java: id: ee4819289469 - last_write_checksum: sha1:dd0b5ae31cb59b5fdd7c4ae691892329119e01f1 - pristine_git_object: 03b54da7bd4384abb0961a1373cfe3b12c86ade0 + last_write_checksum: sha1:30f3ad613f48afea75053bcddc96ce50fec0463a + pristine_git_object: 7439eb79cd00b480136253715789733d65bd1336 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionitemResponse.java: id: f9a927a88634 last_write_checksum: sha1:abf3a1cbe2ed0cf7f91a499eb2b7c0ce4b1ed0cc @@ -6352,10 +6452,14 @@ trackedFiles: id: ddb57e7b59c1 last_write_checksum: sha1:91645426f916e7c971013ff85b1cfaa62d4c52b4 pristine_git_object: ecc399bb00b6008ce150e92db4b02b648fc62fa3 + src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteshortcutRequest.java: + id: 7e6cebd7198c + last_write_checksum: sha1:b9fb416f2de70eb61285f46b5e80f3c739fd626c + pristine_git_object: 28b2e7a6281eece4a4997f9aa68f3283019cf610 src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteshortcutRequestBuilder.java: id: a1f43a921557 - last_write_checksum: sha1:eea25b3b6cbb8a85bab4056113ca3e8d91164da1 - pristine_git_object: 53c02652959a68bcea513cb0e5e92e5b6b64cdee + last_write_checksum: sha1:d922f554e167a84a3b2446ca93012172c2625f8e + pristine_git_object: 18ef890b14821c9888a61bd9682f65a1e078a7dc src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteshortcutResponse.java: id: afe871069545 last_write_checksum: sha1:8ece2e3c2b2266928f974576da4ac5d073165c97 @@ -6396,42 +6500,62 @@ trackedFiles: id: f48c4ea8152b last_write_checksum: sha1:745a2211dd80e54fac4a5966bda376344f609239 pristine_git_object: bbeaba60e3ac26206f2550acfae64d31c8fbc397 + src/main/java/com/glean/api_client/glean_api_client/models/operations/EditanswerRequest.java: + id: dfa4ce2dfb45 + last_write_checksum: sha1:f9132000346be5750ca98cb3cc442cafdd8e26f0 + pristine_git_object: a21001d93ad102b9e7e9dd5d0415bd80feb8e948 src/main/java/com/glean/api_client/glean_api_client/models/operations/EditanswerRequestBuilder.java: id: 760a3f8f62f9 - last_write_checksum: sha1:b8280b6315bb0be9dfcb4381224797768401c046 - pristine_git_object: bbae853f9f9befb7648f8a4b5f6a0d6bd2890d6e + last_write_checksum: sha1:38dfd113cff565d67ddf12d8a608874c099688c3 + pristine_git_object: f24272089844cdfbfcde5b50a5cd02f4edcf996c src/main/java/com/glean/api_client/glean_api_client/models/operations/EditanswerResponse.java: id: 0db508fc1ffc last_write_checksum: sha1:cfb7f487d677cac339685262983b55e0f114cf84 pristine_git_object: 54d27f4c822bdb9305b95de2cff7cf98d6a0bab2 + src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionRequest.java: + id: 7cca476df430 + last_write_checksum: sha1:6b20b867b5aec1a4a7f6d45c3adde47bd3f7fe5e + pristine_git_object: 45d9f278f389a0e8844054cb71774fa7df025548 src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionRequestBuilder.java: id: 160f3efdf8d9 - last_write_checksum: sha1:84741946f54540c9157ab408863738c6697c27d6 - pristine_git_object: 2886f14546773a19ea3477fdc43afd358de31d13 + last_write_checksum: sha1:f1b55aaccebd3d051420ecdf4ca309821b2f6f5b + pristine_git_object: 512104eb2498984a2f46ea257916c90af2039c46 src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionResponse.java: id: 98313ceeb20d last_write_checksum: sha1:53e8eed658a8679f02ff530e9157b417e848935a pristine_git_object: f8d3c70ef01a276378d9597b3c0bea2c1cc12a47 + src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionitemRequest.java: + id: a4a43e1ef840 + last_write_checksum: sha1:bb8a833581869364306a194fe93b59b8066593f0 + pristine_git_object: 8b024fd03b151b8aac228e13785441af872b4384 src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionitemRequestBuilder.java: id: b89496bc9e34 - last_write_checksum: sha1:e0a238d4f42115602917f272b1fefb7c2c5994e3 - pristine_git_object: c0a51ade0465f88c57d2f22575e9957922a8f789 + last_write_checksum: sha1:2e876d35b2adc6dc1d223802583c467ce02a6527 + pristine_git_object: d8ce095a2ba636fede65c483225d8f396c2c2649 src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionitemResponse.java: id: ea635028ffd4 last_write_checksum: sha1:9368fa8bb7f80510b2c8ac823068308b2e542c66 pristine_git_object: 8ce4b9735ac914fab49d708480b848a1cdbb3e95 + src/main/java/com/glean/api_client/glean_api_client/models/operations/EditpinRequest.java: + id: b27b6d868be9 + last_write_checksum: sha1:71d5e3a3e7b962d47e3362d332be79a227336d26 + pristine_git_object: 60ec9cca4604f2fea4ec588bde77b6c3bc81b1eb src/main/java/com/glean/api_client/glean_api_client/models/operations/EditpinRequestBuilder.java: id: 582294a91da8 - last_write_checksum: sha1:121d5df5e9c6a196f013bc85e235895676ee2a60 - pristine_git_object: 48b4986f6f1fc812a22f7788d4e2b349bd005b69 + last_write_checksum: sha1:3384084f34591f0ea212c096ce9aef71caae90f3 + pristine_git_object: 024f742ae44a06830032f4664e5b641aaa128362 src/main/java/com/glean/api_client/glean_api_client/models/operations/EditpinResponse.java: id: 871e122f315f last_write_checksum: sha1:a9ddb06af550968f89ab6e8149834acbeda5ec48 pristine_git_object: 1a7e470e419560ea1e3e9c8eba2f01b6424421b8 + src/main/java/com/glean/api_client/glean_api_client/models/operations/FeedRequest.java: + id: 11e78db41513 + last_write_checksum: sha1:6d244dd55216e559ba29bbbef864911f216d803e + pristine_git_object: cbfbd5265f323cce6e2653f2c08e638115f03afd src/main/java/com/glean/api_client/glean_api_client/models/operations/FeedRequestBuilder.java: id: 06e5aa45f67d - last_write_checksum: sha1:35f4240b371b595de216afbcdcceae993e912f97 - pristine_git_object: 0ca738736aa92ed96416d6710a486643205bd4de + last_write_checksum: sha1:0b0395ec73af840861c9c7ebab4b06950899df45 + pristine_git_object: 9845f2c5af1fee94a26793ae4758b5f3cb32ddca src/main/java/com/glean/api_client/glean_api_client/models/operations/FeedResponse.java: id: 41e848fc3f43 last_write_checksum: sha1:458d864da0297e0c0e59a28e5bed4d956fab41dc @@ -6450,24 +6574,24 @@ trackedFiles: pristine_git_object: fc5c16c9af1c43d3bc1aeb7a66488de37605d6d0 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentRequest.java: id: 8147b739233a - last_write_checksum: sha1:c94c54dcc03b42a0af12b537e2ce149ac602bf32 - pristine_git_object: 4336a3bb30fc62083b9b12891932c39e7173bb10 + last_write_checksum: sha1:ae3b14524f5f73385b7e7ec899094845d3d84490 + pristine_git_object: bea9866b2f4eb20d2e6bf20671046443ea2fed13 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentRequestBuilder.java: id: a89fe313af33 - last_write_checksum: sha1:9bd91c374e28554c24fcec3ad3144948c080bc8b - pristine_git_object: 12e5a29d23054f213aad91f6c5b06e1aa87faa0a + last_write_checksum: sha1:2d40e059b77aaa90f2063c08fd2a56e0d8dedca8 + pristine_git_object: f8ef0b7f29b58a3ae5811e52864eab152231ac1c src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentResponse.java: id: db441cabff25 last_write_checksum: sha1:aca39a09ed99fda6ac91a9721062068236a935e3 pristine_git_object: 6082db5c21c6aa9036f45b669e29e2884f9a9a90 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentSchemasRequest.java: id: 57ecb7cab553 - last_write_checksum: sha1:3db2c567ee3b369afb85b5698499646c490980d2 - pristine_git_object: 2a7a390030729fae7feea6cc9184ac7c3614000e + last_write_checksum: sha1:ed2bbe796c4e97fa712998567c849e0ed4e6bdff + pristine_git_object: 6206e1058892fd4171731250f770a76e5a2172e2 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentSchemasRequestBuilder.java: id: 2d45b48750f1 - last_write_checksum: sha1:902a4fd7176200685a4179013d30d44f600fd7c2 - pristine_git_object: 085c171b0e7a99d58e4dba52555aae3b29c09e65 + last_write_checksum: sha1:634e3b7c02a1a059689b263c84cabe8da3e94802 + pristine_git_object: a3899d16972346fbcd93bccdf9812cd51e385476 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentSchemasResponse.java: id: 0f877dbacbcf last_write_checksum: sha1:43a81ac1bf22de71fb50366956901f6e1e1637e6 @@ -6484,78 +6608,98 @@ trackedFiles: id: 97053e2b6ece last_write_checksum: sha1:33b1e13119d5a2fd9cea946495ecf7af9ad67c27 pristine_git_object: bcb7e53766db2cb9fa7d5d688e644ca0d5866b5d + src/main/java/com/glean/api_client/glean_api_client/models/operations/GetanswerRequest.java: + id: 6d3b46774e25 + last_write_checksum: sha1:96e3110a530dbcd62c4d7ed3a358023ac43ccced + pristine_git_object: d07a4f1ba605c176b8ea651cb581a44b9da7d697 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetanswerRequestBuilder.java: id: 549b647bd405 - last_write_checksum: sha1:6815ced7ce72105a2b137294bdd1a0547de737b1 - pristine_git_object: ed86573f45d04f838e7ebee67e696b140b0c69bb + last_write_checksum: sha1:e0d094203d9946a258c6fe60e9f9edd8fb8c87f4 + pristine_git_object: 8ff4325a3a82bac8bb1cc7bd3493859ff1984966 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetanswerResponse.java: id: 4b8893b22574 last_write_checksum: sha1:7b6813d89afdf0f9e9fe6e84511254bae2ff88ad pristine_git_object: 8d5b8be52feb0e0acf90ff0a386e30a61957b3d9 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatRequest.java: id: fea8c14a81c6 - last_write_checksum: sha1:c4b4e25073c1ef5816d0ff1ae0ec74590f487fa5 - pristine_git_object: c19d2e05cdf082acbdc5f64e880eaad9dd3ea42e + last_write_checksum: sha1:de90794c21d09fd68aeeab9ba0abc31941c18be2 + pristine_git_object: 990bb8a00ea7a5e318cbb6501686021c8d41f768 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatRequestBuilder.java: id: 135c60c2f284 - last_write_checksum: sha1:de09c4230939abfd1374e699df2a183226c3834f - pristine_git_object: 7ee3d3bf492dfff55ff73f46781a534882f41d5a + last_write_checksum: sha1:39e1274606b8e384ce03c798f688eeb8ff8a96a4 + pristine_git_object: 80b53cba16d32cf63df3776c973a12af3f025d48 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatResponse.java: id: 3c3a6961b279 last_write_checksum: sha1:3fec6f01ae2940d61bb4f09823e417989632ca8b pristine_git_object: 10eadae9c59b82fad9ccf36cca0875f66bd12bdb src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatapplicationRequest.java: id: 58c3cf9b57f5 - last_write_checksum: sha1:b700143914c8de796d8f7de8991b48472b35c5e1 - pristine_git_object: bf95bda9a505fe85a8f74c089b0618fa3293002e + last_write_checksum: sha1:a810645c88d206c7707a2824f2881408b50f80a3 + pristine_git_object: c058d362ff3109a90ec8428ed97c2dbfbedf30c4 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatapplicationRequestBuilder.java: id: 1e0f1e0648fb - last_write_checksum: sha1:af99b626b428d731ff85681ff9164807fa1ca9fb - pristine_git_object: ab3f2c079414f14ea256f6960d39747df182aa95 + last_write_checksum: sha1:5805150ca6b264a71c859540559afb9ed41c9f73 + pristine_git_object: e82bcd21a1c32d5c8b9a10075a9ecd675222e1ce src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatapplicationResponse.java: id: 042a9aba0b43 last_write_checksum: sha1:39f1a628a4213c223e2da4932f80de8168cde1df pristine_git_object: 8d45e5ad3bd74a6b96373e3be18464ec4ee96028 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatfilesRequest.java: id: d20db9f68750 - last_write_checksum: sha1:847759ab8948f11027ea53517e1857354d15dd1b - pristine_git_object: e8dc151d3fa23dfd64cf098918f9c4461c6542cf + last_write_checksum: sha1:c9abbac45481a9f102ddb82970a40b148c5ce48c + pristine_git_object: 1c003b67fc304d870b75e2c9746d5e594089cf5e src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatfilesRequestBuilder.java: id: 52402c722b4b - last_write_checksum: sha1:2c1e31505decf2e8be981f84aaf47971369643a8 - pristine_git_object: 3a3f54c31020b46052483a4e548dd2af68601622 + last_write_checksum: sha1:c30932782556325c09d5eb9230a6324037288902 + pristine_git_object: 7dd5f66a63e178729afbc9c3fe72099a44a59ea6 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatfilesResponse.java: id: a8b3f78e3a86 last_write_checksum: sha1:3e9d8df4317e2fa2d731cb25960468bff6a8d0d4 pristine_git_object: 70b65336e6065589adf5e8a771a957db80f79fb8 + src/main/java/com/glean/api_client/glean_api_client/models/operations/GetcollectionRequest.java: + id: 34d1c6c7781e + last_write_checksum: sha1:b9239c661094799b8138d249d23426c4490dd3b3 + pristine_git_object: a8d4a92e20099b2faacd52372e65642fdf24d2ad src/main/java/com/glean/api_client/glean_api_client/models/operations/GetcollectionRequestBuilder.java: id: 14f3188b0265 - last_write_checksum: sha1:8240c5666bbc516a8747b43ba718f07b9a37125d - pristine_git_object: a9ea86b1b8f507adbbcfde25eb52a555c089639b + last_write_checksum: sha1:a2483e0d0aff8b0e816003054ad72b4be0d198e3 + pristine_git_object: c06e833b014c960e5af5e18b29499d39eb17afc2 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetcollectionResponse.java: id: d0c9bbf1ac60 last_write_checksum: sha1:9c9cf3723c1c8816f2dd80968d02eaba09e61a43 pristine_git_object: 1746d6ec7873ec942ea3149f3ac0efab78b94c01 + src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocpermissionsRequest.java: + id: 20f96bd9300d + last_write_checksum: sha1:81761b6c3e1dc94834e93f70f28780a1e6b725b4 + pristine_git_object: f03a5524d7548bb3ea94ec2fb8e95109823cef69 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocpermissionsRequestBuilder.java: id: a71e0d3ee291 - last_write_checksum: sha1:134d8943fe24e67f7918ef2df2ed97bc7144c342 - pristine_git_object: c4460f8a4acf2330c2e08e8c77926094dcf5c9f0 + last_write_checksum: sha1:bb8f4eea2f24cdc3a10a5e5a80adfb3b7c870aa5 + pristine_git_object: 30a65102e13eb6a412f8a4875e0d87f21275620f src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocpermissionsResponse.java: id: 40971f2afac3 last_write_checksum: sha1:aaf7cc3cc940dc174f3e6dbba5a9e7fc310baf2a pristine_git_object: 9c64fcae3adeefef8cf6a7d58394d55c5e164a37 + src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsRequest.java: + id: f563935c53d2 + last_write_checksum: sha1:93380ba47c240cd701c93f4a1e32a4800b8e7758 + pristine_git_object: 33dbbf07dfb719b62c3c92d1638eb7cbd0c11a05 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsRequestBuilder.java: id: 87f640cd52c4 - last_write_checksum: sha1:f661e6d407d84f1ed33a5fb4604d12b05326f2c7 - pristine_git_object: 878718901a083bef28a5515026c39e13f8aa42f6 + last_write_checksum: sha1:86aacb9a8c2e5dadbeec856eaa2fd46bd77c307c + pristine_git_object: 0d507bf36f71a052b7a960b6ad4d3bad92f28829 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsResponse.java: id: 7c23d5371d44 last_write_checksum: sha1:94258ba5c9e90b05305477af401e0feacae39cf6 pristine_git_object: b7eb155c7b47c9aa545ce209fbe763d3f4ebba76 + src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsbyfacetsRequest.java: + id: 0565d70d51ea + last_write_checksum: sha1:f18ed9a49466f56558043adad3d4b295904289ab + pristine_git_object: 2e71598ee959e24609c2ea5f8aeb18fc19a6b76f src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsbyfacetsRequestBuilder.java: id: b6f70e2fe42f - last_write_checksum: sha1:ae3a88192cab00ea53a373e95af5e2321e38df23 - pristine_git_object: cdb12b2c636ff8b34d51116fbec2d48a0a5d3bd8 + last_write_checksum: sha1:4cf6e0f6e20ead4d4c685a8894095808407e484b + pristine_git_object: f613c1345f059da4d4771c038aea46f674e9c92e src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsbyfacetsResponse.java: id: 3b7d8e9ef2bd last_write_checksum: sha1:d4169beaaeeb260aeddad5ed093af5766e92e9ab @@ -6572,10 +6716,14 @@ trackedFiles: id: 3b364d3e1747 last_write_checksum: sha1:11db66a22d20a3d75c1ac3248fe5e24f34cc932d pristine_git_object: 05d85d6b38f6426e4293dc3aaa43afbf37b7ea8c + src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpinRequest.java: + id: 9ddf040f42c3 + last_write_checksum: sha1:136370e1ad66ea3428fbbbc3a3c02b1e1055580e + pristine_git_object: c14465a4a7850dcd32fa5431a1593f3c6d9f26a1 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpinRequestBuilder.java: id: 984b66f6e719 - last_write_checksum: sha1:1403f047bf8c0f60921f3ab50a99247548418b80 - pristine_git_object: df7e720664f7f958a5f84eb9d943800a8a836b3b + last_write_checksum: sha1:51b495c6026220c477551cf6a0f7825f84772b33 + pristine_git_object: 90922298aeb42cc98fa5c727b7d4cde9228b7689 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpinResponse.java: id: 523663bbb15c last_write_checksum: sha1:327738fcc602d807bd70c9cc429a69a87e97bcb8 @@ -6604,54 +6752,74 @@ trackedFiles: id: df4220a26a29 last_write_checksum: sha1:1115f124db2bfc44d042c3959abc27a33cec1c40 pristine_git_object: b306c2655ee699e58c67f6fecfa7b5b33b522d89 + src/main/java/com/glean/api_client/glean_api_client/models/operations/GetshortcutRequest.java: + id: 507e83a3d5ff + last_write_checksum: sha1:befbe22d74ea0e68c8ab4a1495bc14bb657d1098 + pristine_git_object: b2d1a17ac29f5ba78655cc43ec258af2ee7efbbb src/main/java/com/glean/api_client/glean_api_client/models/operations/GetshortcutRequestBuilder.java: id: 5d3b9e9345a3 - last_write_checksum: sha1:f6e1330c0b8bdf77db95a2197a45dcd6f38d782d - pristine_git_object: 56849c1fbffd1f5ba069eb6c62255b4ab7524e52 + last_write_checksum: sha1:3ae62aab8ad00ce31bda7ba48f0df82feceb488b + pristine_git_object: 55ed3269efcd2f80f3285bf9f21775cd1d6448a9 src/main/java/com/glean/api_client/glean_api_client/models/operations/GetshortcutResponse.java: id: 4ae965a79d6a last_write_checksum: sha1:d77617d439a1b1027f8480c1eb3814bc59e1a7fe pristine_git_object: 47986a9190346399aa88c79ccadbe2cc31f5098e + src/main/java/com/glean/api_client/glean_api_client/models/operations/InsightsRequest.java: + id: 97309e22a37a + last_write_checksum: sha1:3a44cdbe41eee3a363570b9239baa9a60c85848c + pristine_git_object: d410117b959bf1e9047693be8d01837c5d3e6541 src/main/java/com/glean/api_client/glean_api_client/models/operations/InsightsRequestBuilder.java: id: 0a2e1f9af961 - last_write_checksum: sha1:7b3d19c2d5c83e78b09d159a0182ae8c977e4c12 - pristine_git_object: bdc7a0bf5d73637123b30b329fdeef3133c48ff9 + last_write_checksum: sha1:96bbb1f3e7891df53bcc09204f6a07476b5d7c90 + pristine_git_object: 4ff74d24209a429a4e0c27a0e77c5a68df3b170b src/main/java/com/glean/api_client/glean_api_client/models/operations/InsightsResponse.java: id: 536f2c82c77f last_write_checksum: sha1:29fa54f65847e5d6389a7984cbb57921b0fea65f pristine_git_object: f33e091a504324f2560354a5977c099cb51719be + src/main/java/com/glean/api_client/glean_api_client/models/operations/ListanswersRequest.java: + id: 21a7e8548b16 + last_write_checksum: sha1:73b81729a94ad6fa506a8bba090db12e81276501 + pristine_git_object: d252aeb4cb8d5a4266cc32cd55f663bcfce81bd9 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListanswersRequestBuilder.java: id: 7c40c8dbd43b - last_write_checksum: sha1:f208ff79682f512844f0acb30db9a520f787aa77 - pristine_git_object: fe8cb4a538ccd7a822f601156519a7c32c48cbd5 + last_write_checksum: sha1:2607d910c8ecbfc6d028fcdf6f6cc11f9d615f40 + pristine_git_object: d976fd86f1aebdda8b5286e862a02b56e806c898 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListanswersResponse.java: id: 7b9f92da7b83 last_write_checksum: sha1:9d0e42e0d23c85253429f621f66aff42bca17dbe pristine_git_object: 1d374554208630ded530464ab8d06030adec5a58 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListchatsRequest.java: id: d9b59b61e043 - last_write_checksum: sha1:7a20e0a75ece2219bbe93377f3127591dd6683be - pristine_git_object: e3ef50191265187f0dff07f45f6edba595ae7f42 + last_write_checksum: sha1:6bd4fe4662c7a28f8369f3a3857b9c89d9156b2a + pristine_git_object: fcd83ff9cfdca6ada9dea200bf104b3625aa7d06 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListchatsRequestBuilder.java: id: bb9cf898bbb5 - last_write_checksum: sha1:3587612accff37f10bcdc3ab62c489e9b2673b22 - pristine_git_object: faaeeec1b5ee3ba2e6b9eb5255015c8a38ea787c + last_write_checksum: sha1:8719fe30c13e8e50485f171d7ea0335e7c630d70 + pristine_git_object: 9545ca27f88743bd3335c3501af850eb12743202 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListchatsResponse.java: id: 50dfe3eff93e last_write_checksum: sha1:0a56e59403b396f16e98fef04623a0dbf4a64bd4 pristine_git_object: bc24105aaa2ffebb8494531ac76c828b34fa13ba + src/main/java/com/glean/api_client/glean_api_client/models/operations/ListcollectionsRequest.java: + id: 721a23645991 + last_write_checksum: sha1:9c45e2f0005e91fa81a9966681b09d0e7115f038 + pristine_git_object: 0e89bac3c4a820b3e2138dfbdf90d9f2cee5b6db src/main/java/com/glean/api_client/glean_api_client/models/operations/ListcollectionsRequestBuilder.java: id: a1707c40c3f1 - last_write_checksum: sha1:b951a3abab78cdd8125ea4a522c0f155d7b93294 - pristine_git_object: 171dc5b4917b172b0e3e16475658061e05a8aa79 + last_write_checksum: sha1:d726a923a94ceb582853fbc54c3b63702d86df4f + pristine_git_object: 61b18904cd6f662c38747a8c9329e18158301379 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListcollectionsResponse.java: id: f09ff83cbbef last_write_checksum: sha1:ce763939948caf63b8c83b8c60253cfe5b0a9041 pristine_git_object: e570378c051c3b8d1a8111e708dd2e057e8f93a3 + src/main/java/com/glean/api_client/glean_api_client/models/operations/ListentitiesRequest.java: + id: 741d9f4c9b1e + last_write_checksum: sha1:1b73744d9dcb50bb7d006f464809cdd354e270b6 + pristine_git_object: eddc4cb72b94950e76806008d94eabd43a80e4e4 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListentitiesRequestBuilder.java: id: 3a1493b56793 - last_write_checksum: sha1:78a25811796eff374aa4e4e57a0ac924b74c8ea9 - pristine_git_object: ea1d823994a895bd7128ce2104a39d650a0c554b + last_write_checksum: sha1:fd503cb434d55b5868d7c8fa0a5ec98170f9a0ed + pristine_git_object: 2b9d908ee70a94e90e7d03b44a1394e7cf9c697c src/main/java/com/glean/api_client/glean_api_client/models/operations/ListentitiesResponse.java: id: 4257c11be036 last_write_checksum: sha1:fd05ef0d17043179060eefb3041da366d515d839 @@ -6666,12 +6834,16 @@ trackedFiles: pristine_git_object: 910eb2a8d4228a50f6267a7bd0123459d050b0d3 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequest.java: id: 20fe425d3d43 - last_write_checksum: sha1:1e9bf0b1b9fafaff7a86e6c7eb1182e737154582 - pristine_git_object: 4a93a79d868d6870ea47a744569f87f5532f4d88 + last_write_checksum: sha1:67b4cf60e311e6f5b803f719c2a846e14c611c01 + pristine_git_object: ff7ef784ce3a2ee6661377c254cd8f907c6c2279 + src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequestBody.java: + id: 581233edf480 + last_write_checksum: sha1:549a05482a04c68f24b2581a4dd5bbad08322f87 + pristine_git_object: 8b5eb3d3406289526c84d836e873f4f59d043b02 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequestBuilder.java: id: c1538b03a724 - last_write_checksum: sha1:3975e396af08418046cfb086072a4f90cb3299cd - pristine_git_object: 0c255efdffe8a1e15f6f5c63b77cd5221eab55d8 + last_write_checksum: sha1:44a84f9701e1de6b57441fd8f5b23d6e12f98e10 + pristine_git_object: 57ac26e5ad1c228a74a1d4171dea299be1960c5c src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsResponse.java: id: 268bae5cf316 last_write_checksum: sha1:4a4bb54b911fc34aae1c4d2719b013aa59b2ec84 @@ -6688,46 +6860,62 @@ trackedFiles: id: 4d6023a91f7d last_write_checksum: sha1:3fd9668a639093b8dca01be71c9fd654d81ddb41 pristine_git_object: 67c67d9b8526e07e4e462d81aa61d3f51bb8278f + src/main/java/com/glean/api_client/glean_api_client/models/operations/ListshortcutsRequest.java: + id: 017711d1aa77 + last_write_checksum: sha1:f14b31313d31a71a9450b592fc06d87c811428fe + pristine_git_object: a1c2fe3f6ccf52de4e95eb3c9287f7871e7759ce src/main/java/com/glean/api_client/glean_api_client/models/operations/ListshortcutsRequestBuilder.java: id: c8f976231d0f - last_write_checksum: sha1:16b82ba70302102db73ccab5855d2817c7395273 - pristine_git_object: 71b6843e92376e685cc8c5508c028d506f60cf51 + last_write_checksum: sha1:7e2e78a8bd8754fd229a35015f59268c6557a0be + pristine_git_object: b97b30554f2446a68c9e72b78898e258bf1174fa src/main/java/com/glean/api_client/glean_api_client/models/operations/ListshortcutsResponse.java: id: 61a5b4017148 last_write_checksum: sha1:ca94fd847bb3252b6c2ac01f46c8adc70ab5ff4c pristine_git_object: dafd1947a6df1096275bcc557945673dafb0eecc src/main/java/com/glean/api_client/glean_api_client/models/operations/ListverificationsRequest.java: id: 63d7b8cbacc0 - last_write_checksum: sha1:e20b7b49fe1243b2e93ad69541057a4248216ccb - pristine_git_object: cf7697d9aef076f6ba6a677091597c6a86aa029f + last_write_checksum: sha1:98a5b8c04693a94397fa60849570ea4760e69b26 + pristine_git_object: c98489b60660808a1cd12e1a026b84708b63abd0 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListverificationsRequestBuilder.java: id: a5c806f8a671 - last_write_checksum: sha1:96f77c5d98e6094e47f186a0df146fe570174655 - pristine_git_object: 008685a0661dbee4c4d40fabd6229f2917e6210c + last_write_checksum: sha1:5151e423c06d31bd87b6edebf85ef43a772316de + pristine_git_object: 2bb78e75e7164b09aaa3f3c833f7a411a4a47476 src/main/java/com/glean/api_client/glean_api_client/models/operations/ListverificationsResponse.java: id: f2529293ebb9 last_write_checksum: sha1:3f60ac8417cb9827fd69deb8fbf6c29043b51588 pristine_git_object: 8c3d45b197c1944396896750c1ef52fd44166e33 + src/main/java/com/glean/api_client/glean_api_client/models/operations/MessagesRequest.java: + id: 99353a6aab35 + last_write_checksum: sha1:7dbe997e5f493bdd729afc52a5bb94f3e0e4957c + pristine_git_object: bdb46f9cdcd85b9c5f38727f555b7b8cd81ded1e src/main/java/com/glean/api_client/glean_api_client/models/operations/MessagesRequestBuilder.java: id: efc9e24647cf - last_write_checksum: sha1:741ffcef2c1f69511d339fdf23d8562dcff474b2 - pristine_git_object: 7d9776420791bb1d0c9550a01110081f02a80ca0 + last_write_checksum: sha1:22188ce16fffa26e553888014d5338a3e1ce394d + pristine_git_object: 4cfeb58aa8fa6c4824f982402b1941e8217e3e23 src/main/java/com/glean/api_client/glean_api_client/models/operations/MessagesResponse.java: id: 6d70d9f158a1 last_write_checksum: sha1:490e4bd4cd1111738c40d1303d2c48d1f965b362 pristine_git_object: 53ada8e2dfc399dcf79b6c5b637ff75876d79c6b + src/main/java/com/glean/api_client/glean_api_client/models/operations/PeopleRequest.java: + id: 0d77d6c33a54 + last_write_checksum: sha1:ef22b8f814ba45f04b0674a89db11e3b0d7aad6f + pristine_git_object: a890b09a9dfa3b8aa0f255cf6a92879f70886545 src/main/java/com/glean/api_client/glean_api_client/models/operations/PeopleRequestBuilder.java: id: fb385f951940 - last_write_checksum: sha1:aef8cbe1b13c74df7dde01d630d7ff220d968809 - pristine_git_object: e8365b46142db3c5f14684dd1e3bef7c30a6d624 + last_write_checksum: sha1:f279dcdd1f3ca824b3a4a9b9d54f251f26d369cd + pristine_git_object: b2447fcf33ba2623e3587bcce34f0f6b861c8d61 src/main/java/com/glean/api_client/glean_api_client/models/operations/PeopleResponse.java: id: 6735942f3432 last_write_checksum: sha1:1da9009df8c74c929e94b33d09028f85fc483651 pristine_git_object: a8342c7f72d2574175b0a38a6916f401649cc4f8 + src/main/java/com/glean/api_client/glean_api_client/models/operations/PinRequest.java: + id: fc6c9099e1e0 + last_write_checksum: sha1:74d3a1a1259b33347f7af59c9611e2d5d9c492ab + pristine_git_object: 3a01122f576b84d32cc0eb8310c157906e05504a src/main/java/com/glean/api_client/glean_api_client/models/operations/PinRequestBuilder.java: id: 4e3ac00df5f3 - last_write_checksum: sha1:3775b928d78d980e78053af5b3ac113b6cb2cf84 - pristine_git_object: b10bdf28a00051153ce04dba2cd9b4014e27084f + last_write_checksum: sha1:78624ad5f66cfc66f20c498494ccb96b50c7ae11 + pristine_git_object: ec083c63cecd489d2159169d65cd067c14590ed6 src/main/java/com/glean/api_client/glean_api_client/models/operations/PinResponse.java: id: b4daab3f9129 last_write_checksum: sha1:7f8c76c17a854e55a6739205018007cb38b00c5e @@ -7052,10 +7240,14 @@ trackedFiles: id: 5398a0aeec97 last_write_checksum: sha1:c7c67ecc484a0f18224a4442ea453db13dc4e1d7 pristine_git_object: 0fddcc272f569d229506763a712f88bcbd110596 + src/main/java/com/glean/api_client/glean_api_client/models/operations/RecommendationsRequest.java: + id: 6e79977499bf + last_write_checksum: sha1:366dd6fa8b5911fc3d7695966684d22b00613556 + pristine_git_object: 0462a1fc959166f1b50af7a07790c8cb185be6a9 src/main/java/com/glean/api_client/glean_api_client/models/operations/RecommendationsRequestBuilder.java: id: 12ccc4c1a7c1 - last_write_checksum: sha1:c3cc3166d42a28206124986dabd5883e98ec7878 - pristine_git_object: 6eaf5a729c0fec29df9f6a404b740ae2ef3a9736 + last_write_checksum: sha1:3c5a713bd62c41cd295b7b68470c7d40e2380765 + pristine_git_object: c2af4b98e963a42a36f67936f7d3b01665a4af5b src/main/java/com/glean/api_client/glean_api_client/models/operations/RecommendationsResponse.java: id: 46c095752165 last_write_checksum: sha1:807a1e39cb380a670d37e3fe313df679ddb9bcf9 @@ -7076,10 +7268,14 @@ trackedFiles: id: 8bfed9a8de12 last_write_checksum: sha1:030e62fde7061e27792f416def91e21a905fa63c pristine_git_object: 945f9aa9a9c2a50c6cb7491c1d0aa46317685a4e + src/main/java/com/glean/api_client/glean_api_client/models/operations/SearchRequest.java: + id: e71fd6820703 + last_write_checksum: sha1:d80f961d876995c5b76b7b01d2702fc3b245800d + pristine_git_object: 9f25a63cd1ef2fc03e870147ee078e76c17c9de3 src/main/java/com/glean/api_client/glean_api_client/models/operations/SearchRequestBuilder.java: id: 709ba7e9416b - last_write_checksum: sha1:ab3986ef6642d2d77a1a0e37b8a512f3e557db8f - pristine_git_object: a460ea1d833936badbefcdded1a633fff4c145b9 + last_write_checksum: sha1:f81c5346a5a40b5d909a8e031ca1b5abdfb692b1 + pristine_git_object: a0b3d89cfff04dac3dab3ece3e5ed5489aa7613e src/main/java/com/glean/api_client/glean_api_client/models/operations/SearchResponse.java: id: 8ba5f92596e6 last_write_checksum: sha1:cda86f8f16fce67d52babeb5169a19af749c9dba @@ -7092,26 +7288,38 @@ trackedFiles: id: 5265ed2020d6 last_write_checksum: sha1:dfbcf1ac7bc01bd619be8cfc06e0a38f0cde1196 pristine_git_object: 55b6696b7d97f3d116d4384f51ef7c0c1091f0e7 + src/main/java/com/glean/api_client/glean_api_client/models/operations/SummarizeRequest.java: + id: 5485c9463932 + last_write_checksum: sha1:4ffa18a8c060febf7a77db5452d491cfb5f56d23 + pristine_git_object: a10593d631c5507a48cb5e652f5d3b1a5d6553db src/main/java/com/glean/api_client/glean_api_client/models/operations/SummarizeRequestBuilder.java: id: 7f55c465e7d6 - last_write_checksum: sha1:b8714d52120e0379bc7b6ba3e1315caabe4d8dad - pristine_git_object: cb19ccb66f645426b29c84bf059eb255baadcbb6 + last_write_checksum: sha1:626652ce21e7eb81506d6d5a976168b56411d3a8 + pristine_git_object: fb3bd091e3d11fd8a2458cfbb9b391a57e7580e8 src/main/java/com/glean/api_client/glean_api_client/models/operations/SummarizeResponse.java: id: b4efc826b391 last_write_checksum: sha1:67799a0ba42d6092b40ce6f8f53b95418e71e452 pristine_git_object: a4b524f158bc28ba247cb06822b132cfdc82635e + src/main/java/com/glean/api_client/glean_api_client/models/operations/UnpinRequest.java: + id: a1f7b70c0be4 + last_write_checksum: sha1:ba7ab1066065eb846208d1038c90985281fc04ad + pristine_git_object: 168cdc0bc4a49106625c484d4a093cdd70f576d5 src/main/java/com/glean/api_client/glean_api_client/models/operations/UnpinRequestBuilder.java: id: 6b7ae007814c - last_write_checksum: sha1:261d9f6abeeccf4c3edb7e48b2884c820ccf5b0c - pristine_git_object: 213e2b33673ff0d43bc89a329133956f3cc65a79 + last_write_checksum: sha1:6cbef90f5611b6dd579d6c728b56a8d8ffaf1851 + pristine_git_object: 38a81a868de59a03a01aa1406d080c8fa26ff9bc src/main/java/com/glean/api_client/glean_api_client/models/operations/UnpinResponse.java: id: 2bb7bb863947 last_write_checksum: sha1:6cb3e4e191637ba6dac48e8cf90a3b288216f1e8 pristine_git_object: 8989de1eef025744b0d0b3a1d97765e92ca8b74c + src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateannouncementRequest.java: + id: f9f6507c4e57 + last_write_checksum: sha1:a82a1a00146660e7f33eddabf5b777c377e57deb + pristine_git_object: 818fd3abd2386a2fd9175eae57958483c214b6c0 src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateannouncementRequestBuilder.java: id: 48b271bc651d - last_write_checksum: sha1:e452b9621df5785669a2a0558cd2fb7b793ee54c - pristine_git_object: ede6eacdfcf9ccec1def5362bf04fe9d8da94882 + last_write_checksum: sha1:ec9ac4910fcdb8ba8d475db8e6d0c757725d22bc + pristine_git_object: 66a7e0a6a1ebae7172d833c1a054d166d77931c8 src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateannouncementResponse.java: id: 31b8cdb4f0b1 last_write_checksum: sha1:198e802b6fa040c4f53a0dd0ea8beeb855dc565f @@ -7128,30 +7336,38 @@ trackedFiles: id: 7b0d3294e79f last_write_checksum: sha1:da53e291faf9355b5706ea062439021bbecb585b pristine_git_object: 2647e53c4c913828ffa9d7c6d569229e1e64a528 + src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateshortcutRequest.java: + id: 9ce034215b79 + last_write_checksum: sha1:a2c0cc0cc48735ff6e726bd9c8e71267aa3f8657 + pristine_git_object: 6faccff0679f20793bcca1a6f60b6aa91cca86fb src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateshortcutRequestBuilder.java: id: 89504aec36a5 - last_write_checksum: sha1:faf1c6e48eddb64a147ff57ae6243adf55407756 - pristine_git_object: c675efeef50b61d319dcf7aa5679a4ad1a845538 + last_write_checksum: sha1:08b1496098f2edb52b6f1a79c3b0ed71379c52f1 + pristine_git_object: 4874d0c3159834a230050fa907c2fdc9a22ad8fc src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateshortcutResponse.java: id: 2147ad8045d6 last_write_checksum: sha1:061ec2a039f69308dca800f2387313d94335587c pristine_git_object: fd2f4a988d9a227d2cde83e590673c04fefe7b49 src/main/java/com/glean/api_client/glean_api_client/models/operations/UploadchatfilesRequest.java: id: 990604c6c837 - last_write_checksum: sha1:5773f3003ab637c765d4f0d3fcfa586d849b6707 - pristine_git_object: 66c72ab00a8be3d1ac61b11ff7a23ad1e30a5e40 + last_write_checksum: sha1:c008daf0eef43f5a5deafdec34266cde56573b5c + pristine_git_object: 5bd53dcc8d3a6fef3f2b7ebd4bdbc3d5d945efc9 src/main/java/com/glean/api_client/glean_api_client/models/operations/UploadchatfilesRequestBuilder.java: id: a72337b4c759 - last_write_checksum: sha1:98134a09c829204ab97514bb3056a326a46c14d4 - pristine_git_object: 59ead0388a4da3b530281490aa863f12b431dd05 + last_write_checksum: sha1:9847dc74fa334e016185dc267c3a95763e9c5ff5 + pristine_git_object: 866f3abd1a026afe23c40f1c33a5498a13c3104b src/main/java/com/glean/api_client/glean_api_client/models/operations/UploadchatfilesResponse.java: id: ff553b3702c3 last_write_checksum: sha1:d4560a64391e9586f1144c91f17639c783171e34 pristine_git_object: c1aced43361bb393acec5d625c49e4c4f1eddd89 + src/main/java/com/glean/api_client/glean_api_client/models/operations/VerifyRequest.java: + id: 071c0ec19188 + last_write_checksum: sha1:8af5ce0bbfedae87d4e524e4a7a77b7e5f9ca6e9 + pristine_git_object: e8d56cbb1202c385eb0b1710c249d1018bf53c2c src/main/java/com/glean/api_client/glean_api_client/models/operations/VerifyRequestBuilder.java: id: a7cab6c65daf - last_write_checksum: sha1:2ae03dfb3ef4425ed96313d5ef89a3547dcf13ab - pristine_git_object: 35e129f1028c88aba1884f5773d769452eb94bc9 + last_write_checksum: sha1:dbafc90bdc3cc5b1ddb5d7dfc17abe6a99aefe26 + pristine_git_object: 2cdccb334613ffff766feca0c8d3d1da0c8c6afa src/main/java/com/glean/api_client/glean_api_client/models/operations/VerifyResponse.java: id: bcfbe425a95f last_write_checksum: sha1:7f25275b6f625efc57ecf1308b5463aa9f5769f0 @@ -7614,20 +7830,20 @@ trackedFiles: pristine_git_object: 9462c48d6788bc0b84e6cfb6566d17fa224dd973 src/main/java/com/glean/api_client/glean_api_client/operations/Addcollectionitems.java: id: ec227a59f74a - last_write_checksum: sha1:f53a59113535a5713d610d0b90a07c57b72d4ac1 - pristine_git_object: b62ee45274f09b685729b95ab252456dccc173f1 + last_write_checksum: sha1:17205c4f77b44e4ddf95ffbfa3157e88b9228d92 + pristine_git_object: 1cd95af04f53f155aebf843b82f60a73b8a42477 src/main/java/com/glean/api_client/glean_api_client/operations/Addverificationreminder.java: id: f686dc147da8 - last_write_checksum: sha1:621806b90bf57b1f1c08472be99cd72d17911e1d - pristine_git_object: 362e81f701361a41d91ee69f679e3e1e72ce5a43 + last_write_checksum: sha1:d6ffbce0312f3f08557e1a8eee97e242e9fe1cc4 + pristine_git_object: b90d8692bf0a392ed3d6869944c55d2160de9228 src/main/java/com/glean/api_client/glean_api_client/operations/Adminsearch.java: id: e38f7929dc8d - last_write_checksum: sha1:eee02fcaf8cd37c7672779b02f6e92a0360add0f - pristine_git_object: 2c5152778bcd9d50e35acf7f98b5ec7703227b00 + last_write_checksum: sha1:b7d59cc12cf3926eecb53b2bc7e620b1e150a9b8 + pristine_git_object: 3e390e8004100cfa1f9f62b7f00cfd5fbea45575 src/main/java/com/glean/api_client/glean_api_client/operations/Autocomplete.java: id: 47c33477bc27 - last_write_checksum: sha1:5fd8adf36f1c5ad4c30688d8d8a7eae73cc3cde7 - pristine_git_object: 17da9d904c5e7635cb76091d0cc9581794a0059c + last_write_checksum: sha1:2668036d48e189ddd10584d5f4791dc0ef844182 + pristine_git_object: ca3f6510581744901e557a2943d732a872c603bc src/main/java/com/glean/api_client/glean_api_client/operations/Chat.java: id: 5b64dd840142 last_write_checksum: sha1:16e1d12597580e7cf893c790920f2fb2520a3a4c @@ -7646,20 +7862,20 @@ trackedFiles: pristine_git_object: 0b25e97026d347d8c965439eb96d1f292baaf885 src/main/java/com/glean/api_client/glean_api_client/operations/Createannouncement.java: id: 4a275692c364 - last_write_checksum: sha1:a81ea1ceea6d9e16f931839e2821c39e0a57a98d - pristine_git_object: 46ae6a379d52ff7931b9de936e43b16600f74725 + last_write_checksum: sha1:6c751add451ba418f1d85a818a785e7a45b0858b + pristine_git_object: ddaf15116d062b141ef72a3a52231c968e4dc68b src/main/java/com/glean/api_client/glean_api_client/operations/Createanswer.java: id: ddaf8ff13f5e - last_write_checksum: sha1:36fe5b3bf5e5419e49da093f54e8b2e874508ff0 - pristine_git_object: 8db7c70c1aae502e8dd9770d7903b8d5f26b089f + last_write_checksum: sha1:89c790f0f4f471c5172605323f3ae3a3358e1a57 + pristine_git_object: 2bfeec3709ea46071971b59d06c7f42f90f1683b src/main/java/com/glean/api_client/glean_api_client/operations/Createauthtoken.java: id: 3d1edeea221e last_write_checksum: sha1:16030f78cd25601d9fae126e6b7483755744846a pristine_git_object: e5d6144ef221f007cd300ab2f6373be0c15db496 src/main/java/com/glean/api_client/glean_api_client/operations/Createcollection.java: id: 45128c1ac24f - last_write_checksum: sha1:eab170245b12e1557477cada1b720d7a59705b95 - pristine_git_object: b27f18052543387713964a197cba1856641e2d9f + last_write_checksum: sha1:cbb73f062178d0a7bb7ffa7b899bbad2d2cb3008 + pristine_git_object: b2ecd483a3195751a6168aa8c04b3ddf4e260e9d src/main/java/com/glean/api_client/glean_api_client/operations/Createfindingsexport.java: id: a3873b785d78 last_write_checksum: sha1:40fa226d1e891f1ef2ba8bb32663e06ff615f59a @@ -7674,20 +7890,20 @@ trackedFiles: pristine_git_object: 2787e205b969052ce3aa2041b3689dcb9d0ce4a4 src/main/java/com/glean/api_client/glean_api_client/operations/Createshortcut.java: id: f7e88ffba953 - last_write_checksum: sha1:f72d0484ab3d2c2ecf468809a14e4e7c1f5ac31d - pristine_git_object: b213182164080e8fe2cdcc724845591727202012 + last_write_checksum: sha1:5e65f91945ae69eb940f7997ed0496d2d9bd3426 + pristine_git_object: 8803bd1d2aab54d8233c9b9ac960463126249dac src/main/java/com/glean/api_client/glean_api_client/operations/Deleteallchats.java: id: 71ee76d719ed last_write_checksum: sha1:0cd9d7340066769c1018b4c9b29092de32708af3 pristine_git_object: 234291ebb08118863ed9cab20891d9971a7ec1b6 src/main/java/com/glean/api_client/glean_api_client/operations/Deleteannouncement.java: id: 245ccc0210f7 - last_write_checksum: sha1:fc57a493bd784b1c41fe59880c522770b018420f - pristine_git_object: f51f46a18f9238f3057748fde48bb3fbaa973b8e + last_write_checksum: sha1:14a7ffe63211b5a52489b6e3eccf2bb9f32834ad + pristine_git_object: 31cb6d128d9ef425e82d569b5481068cdc1bf8e1 src/main/java/com/glean/api_client/glean_api_client/operations/Deleteanswer.java: id: b6423dbfd5c5 - last_write_checksum: sha1:cf7a380b32b56cf5ac2977abf1079b96a2c7b4a8 - pristine_git_object: 261afd0850f143e448a19d58cb58291cc46196a8 + last_write_checksum: sha1:03794dc0577753ba926b3e2e475b516a1ea2ab88 + pristine_git_object: 9341a8b40620ce9fb301b767952e0aae66b08a77 src/main/java/com/glean/api_client/glean_api_client/operations/Deletechatfiles.java: id: 4160f4dc8458 last_write_checksum: sha1:6012adde144b05968f862456f6e9eb4ad08676b9 @@ -7698,20 +7914,20 @@ trackedFiles: pristine_git_object: e20700de4a74abd0eccf1d2f73b902bcff2826f2 src/main/java/com/glean/api_client/glean_api_client/operations/Deletecollection.java: id: e1513d31dba8 - last_write_checksum: sha1:d9d5a43996fe5a5e6bb3e068ece9d601064e91cc - pristine_git_object: 3fe61d7510de1d0345e53d8d9b7ed464104f437c + last_write_checksum: sha1:ca12aa4b6228e016964fce0de8750545c591cdd1 + pristine_git_object: b30b5e5e3ceacd247f3317b291d5d2d1661b734c src/main/java/com/glean/api_client/glean_api_client/operations/Deletecollectionitem.java: id: 06cc72b59d59 - last_write_checksum: sha1:b649ea228df1e39261c8b6024a48a54fc9b0e28e - pristine_git_object: 6fbfdc3a0b2e3001fbc6365b4b10e045ed1a7c94 + last_write_checksum: sha1:c8e5f2150c29d3454c5e771f01a033800fb774e0 + pristine_git_object: a61843845b46805ccabbce33ffcbf20bfdb959ca src/main/java/com/glean/api_client/glean_api_client/operations/Deletefindingsexport.java: id: dae06e6ac9b3 last_write_checksum: sha1:1e203cc63ced8712da2e3c6d11211c19cedbaf0f pristine_git_object: bc625b5880642a89b1450d8f9194ad017adfa804 src/main/java/com/glean/api_client/glean_api_client/operations/Deleteshortcut.java: id: 5376d821bf88 - last_write_checksum: sha1:72c6a54bdb86fd7fd4ea7d23f5e493b2ec0634d2 - pristine_git_object: ace8feed32ed7dfcbd6256caabcf3bfd5fa4d692 + last_write_checksum: sha1:19d0304583a42e9aa61c8f993a61fbca1793d0ce + pristine_git_object: 0812b87ad344d5b5e509be326ae5dc908a6505eb src/main/java/com/glean/api_client/glean_api_client/operations/Downloadfindingsexport.java: id: 1a27b1000c6c last_write_checksum: sha1:0d7affe5db40a3b4ecf4880fcc18bc0f76266320 @@ -7726,24 +7942,24 @@ trackedFiles: pristine_git_object: 4bd96095f491787ee556e132d62dd95171fae15c src/main/java/com/glean/api_client/glean_api_client/operations/Editanswer.java: id: f912c02be8a3 - last_write_checksum: sha1:3417208a51699434cc5e33b5852cd4a19cfb97a2 - pristine_git_object: e1afde9353cb4fcad0ba480427e6a118fbbe11f2 + last_write_checksum: sha1:dc86d75366c67da6e483f71a7c0420ed34469f96 + pristine_git_object: eef76e50f887fdff89534c6d776cfe5b30f202bd src/main/java/com/glean/api_client/glean_api_client/operations/Editcollection.java: id: 58bc402c018f - last_write_checksum: sha1:b1d5eb36761a8c974f1181578a710d191f1e68a6 - pristine_git_object: 8a1e90cef28dba2abb486193efcde28be2f82bc7 + last_write_checksum: sha1:d6e4209b6437b9a33aaf315452523a9e3ca6a1ee + pristine_git_object: ba184f7514cfc3cbe65c0168d7e81504351b4a91 src/main/java/com/glean/api_client/glean_api_client/operations/Editcollectionitem.java: id: e7bef5b4ac66 - last_write_checksum: sha1:3e07f85d68e2d180562f346bdaab9c585d3035a2 - pristine_git_object: ca37088318290d4435582852ca0a51c96850e54a + last_write_checksum: sha1:978f09c9120ce9acbb2c9efa897a230c42adca38 + pristine_git_object: 8382c7a03fdd36f32d52491e6239ee7c1bd526f6 src/main/java/com/glean/api_client/glean_api_client/operations/Editpin.java: id: 66404a0fc9e6 - last_write_checksum: sha1:5506090cdb494eb50950c5be6095b3fda861b592 - pristine_git_object: f00acb9836ad0b4baee395a35bbbe803ba5933dd + last_write_checksum: sha1:fc0ff57de1654d9f92c0868c7e47f4e0dce8379c + pristine_git_object: 71904881345a364db6bf55f7220de437f1626ce0 src/main/java/com/glean/api_client/glean_api_client/operations/Feed.java: id: d676411d3123 - last_write_checksum: sha1:28d3dea4661f8e000ddfbcdd20bb7b8473148a93 - pristine_git_object: 0c1e7db0b91a4d17d9e89e9322959d268c1cd5f0 + last_write_checksum: sha1:f15b2b25b99d7f712fe8437bf453975569878f5f + pristine_git_object: b6610608cc955a74d3579d45106919b10af244d7 src/main/java/com/glean/api_client/glean_api_client/operations/Feedback.java: id: c45a9ee7e7c5 last_write_checksum: sha1:a68b6ead60af0e7bdc4599f3e78ef2f5fe74bccd @@ -7762,8 +7978,8 @@ trackedFiles: pristine_git_object: bc0892d86f11cb73d490ea9f66a5b6b3f891535e src/main/java/com/glean/api_client/glean_api_client/operations/Getanswer.java: id: ba980eb5d5c5 - last_write_checksum: sha1:c73717fc7fea1979aa945dfc9246723e1118e293 - pristine_git_object: ac408fd42f4b7b9b57d6c8aa177db668b78d442e + last_write_checksum: sha1:081ba6dd16f879f9936105f443f1de264e8d9516 + pristine_git_object: b1ccbb61daa9ab7323fcf123a1e969d28e7191b5 src/main/java/com/glean/api_client/glean_api_client/operations/Getchat.java: id: afc27b2f2e51 last_write_checksum: sha1:371994562224b51576f9c674495adc4b22ba93c6 @@ -7778,28 +7994,28 @@ trackedFiles: pristine_git_object: 3e6b3046b0927b4fb53acdcaa029158c59d33ae6 src/main/java/com/glean/api_client/glean_api_client/operations/Getcollection.java: id: 184117a24d75 - last_write_checksum: sha1:f76a859552e3722eb9b942e6bd3c4caf10d5685a - pristine_git_object: 5c217554c8f32adeec3867aaed7e71e111086352 + last_write_checksum: sha1:88ae7c8cbdf0710c0c15dd7dd1f820c34200ee40 + pristine_git_object: 12713bc267a50ed3e9dcc806497779b023b35ad2 src/main/java/com/glean/api_client/glean_api_client/operations/Getdocpermissions.java: id: 52a939847632 - last_write_checksum: sha1:13158bed19cfa733046a93ae0d3f52ef432571fe - pristine_git_object: a8a3f728a1efa5c5830a59782332c5aea9f0fd6b + last_write_checksum: sha1:3f9c8713afb71846ee9a061d6dfeaa0d9bfd79b4 + pristine_git_object: af249e1bbd7ce0e2c9425aebc010569ad38abc9c src/main/java/com/glean/api_client/glean_api_client/operations/Getdocuments.java: id: 41652c81effa - last_write_checksum: sha1:78842acceb8b3e6e25530189fd187c16957c7a82 - pristine_git_object: 1a4a001934053972d29cd2374d34d65784a64638 + last_write_checksum: sha1:163d0aa5d2e1a613133957d1e9081d57a39024a2 + pristine_git_object: c09333e5643e8905aebafee3709a148c940836b3 src/main/java/com/glean/api_client/glean_api_client/operations/Getdocumentsbyfacets.java: id: 20f426731bb7 - last_write_checksum: sha1:6b77d9775efe61c59420d2a824dce0b02f948964 - pristine_git_object: e95a7ba11f91ecf4e7c4c480898a58c878de7501 + last_write_checksum: sha1:e8c7dde2d640da6d134aa445da03074937492333 + pristine_git_object: 1d15d507e45f1885593c96e4d312f65d6f60d460 src/main/java/com/glean/api_client/glean_api_client/operations/Getdocvisibility.java: id: 6030f20b483a last_write_checksum: sha1:e4fbc60653a7427017a2be29794ac81fa3ae754c pristine_git_object: 0b58b8a18c9e8cadd4e06089bcbf8659e696af0c src/main/java/com/glean/api_client/glean_api_client/operations/Getpin.java: id: daf23f0994e6 - last_write_checksum: sha1:79315da81a76ab1c673f0971aabd499b426abdd2 - pristine_git_object: 52dce6caf19d7b50214ed671d96df6d659b970b9 + last_write_checksum: sha1:977c03c8990cf016508b28033c65aedf264f5c19 + pristine_git_object: bc47dc8bbef192ddb81aec9b3323c53cf2eea86a src/main/java/com/glean/api_client/glean_api_client/operations/Getpolicy.java: id: 5c3dfdac061d last_write_checksum: sha1:41d878f070b738e8ad2d91429535bbc08ed4ab1b @@ -7810,64 +8026,64 @@ trackedFiles: pristine_git_object: 8ba3576b0795e5a190b94322c3cd4582c6c0a5d3 src/main/java/com/glean/api_client/glean_api_client/operations/Getshortcut.java: id: 8552e6ef9191 - last_write_checksum: sha1:418db015b852b4cccec4fa8b61f49e221e2cf985 - pristine_git_object: 41dbd565a9753bc355621bcbe08ca6d4a83ad732 + last_write_checksum: sha1:097fc592773fef176f0068e6d49da7400bea68c8 + pristine_git_object: 0f303222801f1fb369aac9488214fffbf4dfd3f3 src/main/java/com/glean/api_client/glean_api_client/operations/Insights.java: id: 62a68eac4d1f - last_write_checksum: sha1:d639714918669894caaca045e40a738caebc6c08 - pristine_git_object: e95b6aebf9ada80ed39e5728578b6ea2ce1a90cb + last_write_checksum: sha1:4fba75e135ff481f92d2151c8ee867bf013fb340 + pristine_git_object: b738eb0c48fb2f24a895354b36e4f4ab4c1cf713 src/main/java/com/glean/api_client/glean_api_client/operations/Listanswers.java: id: c845cd0c4457 - last_write_checksum: sha1:dbfa39a8cef541aa998bda44884d05006c1c82a3 - pristine_git_object: 7bdd142cfce777e99e327e994b26965bf33e2d7d + last_write_checksum: sha1:617d86d34abeb1f6f86227264ca37ca1cfccfec2 + pristine_git_object: 7a0a0d19222a02b189c6dfdbd1b950692ec2a66a src/main/java/com/glean/api_client/glean_api_client/operations/Listchats.java: id: 82dc45dee789 last_write_checksum: sha1:f3a4c3ccf49f70a9af943df77e417f83cd25c1b9 pristine_git_object: c9f37b01f502c1a35f1a6ad0495b51c7c2a0b859 src/main/java/com/glean/api_client/glean_api_client/operations/Listcollections.java: id: 1ed13802f0b8 - last_write_checksum: sha1:ab50e911a737690d67ad3e4cdc13a3f64bc2dfba - pristine_git_object: 8f2cd2706dc36db647d18e8b6fffce0d34ed91a6 + last_write_checksum: sha1:5d2a02006346250eb07865d787b4a3b576f5d474 + pristine_git_object: 143394e3aac4d00e13c1bbed2e0e9ab63360082a src/main/java/com/glean/api_client/glean_api_client/operations/Listentities.java: id: 75dce52eafae - last_write_checksum: sha1:37379ace6ec5cc2f13aa3b447fd0bcaa1112b524 - pristine_git_object: f7924f40e17e7eba76b6bf3f9eb967ac5bde9be1 + last_write_checksum: sha1:1edca991ad8a9dc703168ad06d87f27f905c0366 + pristine_git_object: 67f4e0b8924f22d1643ebd2a9eee27cf619b5295 src/main/java/com/glean/api_client/glean_api_client/operations/Listfindingsexports.java: id: cef7851a8830 last_write_checksum: sha1:aff22adad5912f8b8ebe595aafa00674950593e1 pristine_git_object: 737902212f9acec84dfb18bd4d924bd574247543 src/main/java/com/glean/api_client/glean_api_client/operations/Listpins.java: id: ccadcc1d5f25 - last_write_checksum: sha1:72f9e5e6f8992d46f355dd10c28113360f461152 - pristine_git_object: 95691041b00d1040cd91d22264adb25c61e624cd + last_write_checksum: sha1:88972d9279a55bf85b837f5c0f25317a5c02adc5 + pristine_git_object: c4a9ab563233479a302818c0243a64b7a05effa1 src/main/java/com/glean/api_client/glean_api_client/operations/Listpolicies.java: id: 4124ce98bd40 last_write_checksum: sha1:f766cdbd6759d0bfc8699be1d13cea68f7163d6d pristine_git_object: d612e9aa272b8f73c415c9c0ddbdb674f7ab3586 src/main/java/com/glean/api_client/glean_api_client/operations/Listshortcuts.java: id: f42833033c70 - last_write_checksum: sha1:6699ccc9e7e78c0b1fb9936bfe2345d85760b8a5 - pristine_git_object: e98e172bc6f25096ab4dea4e85959192354a1b2e + last_write_checksum: sha1:16874379af8443db5c10dce1449b369abfd2e4f6 + pristine_git_object: 8857d145d578ad98ba1f4b4a3c8f66b08feac187 src/main/java/com/glean/api_client/glean_api_client/operations/Listverifications.java: id: 10398760e4ad last_write_checksum: sha1:b37e6f0878fe254331509167561dc84a53ca2886 pristine_git_object: 1295d57472afd71e08082e40ea9093060700ed54 src/main/java/com/glean/api_client/glean_api_client/operations/Messages.java: id: e529d626e867 - last_write_checksum: sha1:3596ad43e3b6aa8164d2fa2354edeab53f1dcac7 - pristine_git_object: ac030de67cffbd45fc1e5e5d2790b6dca86c28b4 + last_write_checksum: sha1:4efe120c385307499e29db2fe40d87bdbc617f59 + pristine_git_object: 8797734ad3ff9b4f1b4acec328297b2a9dfa1916 src/main/java/com/glean/api_client/glean_api_client/operations/Operations.java: id: 81dedbd0bd68 last_write_checksum: sha1:9e282a3dddae24263f5ccbcde546d2ca0f95e471 pristine_git_object: dc043ed636d9de28d397e708d900f8ae6ef2d794 src/main/java/com/glean/api_client/glean_api_client/operations/People.java: id: 37a00b702673 - last_write_checksum: sha1:d6e5731fd695fdac9ce9002a3144127046f31dc8 - pristine_git_object: 4708c033f621e6541ea58857c00d00e9723e2feb + last_write_checksum: sha1:c6841eb134c9e2c807ca5a830b4f76acc3301dfd + pristine_git_object: 04cac1e797d4d3edb1faa0de11589e9ae3a35aad src/main/java/com/glean/api_client/glean_api_client/operations/Pin.java: id: d4467a81f7b7 - last_write_checksum: sha1:7c9d96a817b9cf626337a25d6b35b7a434515bad - pristine_git_object: 9adf82b1fe1f07ade04cb22155bd751ef57fe7e5 + last_write_checksum: sha1:10f8d0bb1e9596176f303d2300875cf38bd99d21 + pristine_git_object: 198b2d28fe8cccdd78389fd9094412a8edff5a1f src/main/java/com/glean/api_client/glean_api_client/operations/PostApiIndexV1Adddatasource.java: id: 06627a85321f last_write_checksum: sha1:6276b270954cad209e63a332f7a1330bdbac9dc3 @@ -8022,12 +8238,12 @@ trackedFiles: pristine_git_object: 7773b5c0a35c316f7ecffae8d77db2cb01701d5a src/main/java/com/glean/api_client/glean_api_client/operations/Recommendations.java: id: ab31cb2dd32b - last_write_checksum: sha1:5e7d7b29a78c5dcb50cf174721e01121ce47beb4 - pristine_git_object: 5fcb2df58fce5f1eeda21e7b1f57f18c19e108ce + last_write_checksum: sha1:beb0d32b035544bfecf380595d35735ae94b3c26 + pristine_git_object: fcf77a56d4b3a19ffd274e0e1ec78c28e5e526ba src/main/java/com/glean/api_client/glean_api_client/operations/Search.java: id: 97c80b03b669 - last_write_checksum: sha1:e6432fc02699c920a883b0e96aba1bb29fa1c0ee - pristine_git_object: 4c453d50a0f23e0af52d8fbd53d9a30768f27890 + last_write_checksum: sha1:1fbf51f67998988fe4516e85479c013e2339199b + pristine_git_object: e1e85f52a86c6262b6be9a2293f97136a6f07893 src/main/java/com/glean/api_client/glean_api_client/operations/SearchAgents.java: id: d5fd9d23c122 last_write_checksum: sha1:f3ebed5cc60ddc46b3f7f70a7099728548d4f2db @@ -8038,32 +8254,32 @@ trackedFiles: pristine_git_object: cd593a97dc0d5f25eb5cea92fa3881f31aa8001c src/main/java/com/glean/api_client/glean_api_client/operations/Summarize.java: id: 978e9bc5e729 - last_write_checksum: sha1:8a01920a9321a4914a48c146ef2ec9d55a120f24 - pristine_git_object: cb2ddf2fa6ed25b0ed7205e8ca1f95cc1d808bec + last_write_checksum: sha1:ffff83bdbcdff64a673ea4ba1302df1f8ae56cb1 + pristine_git_object: 1c1b627459ccdc122b873a3da915377db4a505e8 src/main/java/com/glean/api_client/glean_api_client/operations/Unpin.java: id: ac23b649ea51 - last_write_checksum: sha1:d06f37fad3ac205fcb5741b076afac99e815da65 - pristine_git_object: 7b59607fcd51b5ac3906b8e1613f2a9eea9a0514 + last_write_checksum: sha1:a7eb2fe29a07377427948b35263fc5be659a0f46 + pristine_git_object: e8dfa9153a67ee5b7dc98efe6278eb151db1ec0c src/main/java/com/glean/api_client/glean_api_client/operations/Updateannouncement.java: id: c87fe8fab694 - last_write_checksum: sha1:d2ba807c70b03f3938224f2fad945886c00640c7 - pristine_git_object: 75b51bb821a7d8fc41d045b4b70c8f9b116d2545 + last_write_checksum: sha1:7373bdda29d1269de5d0d91f8f3f654e0f277906 + pristine_git_object: 832fa357d49e1ccdf3521f9cc0bbedf9570dccde src/main/java/com/glean/api_client/glean_api_client/operations/Updatepolicy.java: id: 19569a3e37c8 last_write_checksum: sha1:7f687e8a26e55f144b5e477e9224e632b9a8271f pristine_git_object: 0f3e493be794bea2bdc368f4a8b5cd63ac9488d4 src/main/java/com/glean/api_client/glean_api_client/operations/Updateshortcut.java: id: 945e24e2a95b - last_write_checksum: sha1:b7825d6f4898ac2750e716f0a3b78840a2181272 - pristine_git_object: 1a99265501ae8a7d6241ecaeb4a8ebdaf67a5182 + last_write_checksum: sha1:9275226be4721c3221c5eaaec8577829e4635e6d + pristine_git_object: 5de6b08edc3e5d73145c686fbb0585d2a346d79a src/main/java/com/glean/api_client/glean_api_client/operations/Uploadchatfiles.java: id: 52a5641c943b last_write_checksum: sha1:c7358d98ed9eac20c71ac4495985c5d61f479f36 pristine_git_object: 879f31c016f73701b74c2c4e66bcaba7d2959932 src/main/java/com/glean/api_client/glean_api_client/operations/Verify.java: id: 858a3d4ac265 - last_write_checksum: sha1:dc715021a8a75c5d5f3a453f1c9360f5f5e7641b - pristine_git_object: 80bfcf1c0d80be95ca397a61a20c1a2a2d46031a + last_write_checksum: sha1:3401a66149bccfa1b5b52598f8da50044c181ae3 + pristine_git_object: 2d4de1e97f55a4bf5f9759664cf88dff7480aaa8 src/main/java/com/glean/api_client/glean_api_client/utils/AsyncHook.java: id: 6e92fcad618a last_write_checksum: sha1:34d7bac5124e5cf6c6696430594e05be32fb4df3 @@ -8627,7 +8843,7 @@ examples: 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"}]}, "overviewResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "assistantResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "agentsResponse": {"topAgentsInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentsUsageByDepartmentInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentUsersInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}} + application/json: {"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"}]}, "overviewResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "assistantResponse": {"perUserInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}, "agentsResponse": {"topAgentsInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentsUsageByDepartmentInsights": [{"icon": {"color": "#343CED", "key": "person_icon", "iconType": "GLYPH", "name": "user"}}], "agentUsersInsights": [{"person": {"name": "George Clooney", "obfuscatedId": "abc123"}}]}} messages: speakeasy-default-messages: requestBody: @@ -9206,6 +9422,7 @@ generatedTests: get_/rest/api/v1/tools/list: "2025-06-09T18:03:44Z" post_/rest/api/v1/tools/call: "2025-06-09T18:03:44Z" listpolicies: "2025-06-09T18:03:44Z" +releaseNotes: "## Java SDK Changes:\n* `glean.client.search.recommendations()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response.gleanDataError.federatedSearchRateLimitError` **Added**\n* `glean.client.documents.retrieveByFacets()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.announcements.update()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.answers.create()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.answers.delete()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.answers.update()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.answers.retrieve()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.answers.list()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.chat.create()`: \n * `request` **Changed**\n * `response.messages[].agentConfig.agent.enum(auto)` **Added** (Breaking ⚠️)\n* `glean.client.verification.verify()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.verification.addReminder()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.chat.retrieve()`: \n * `request.locale` **Added**\n * `response.chatResult.chat.messages[].agentConfig.agent.enum(auto)` **Added** (Breaking ⚠️)\n* `glean.client.shortcuts.update()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.shortcuts.list()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.shortcuts.retrieve()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.shortcuts.delete()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.shortcuts.create()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.entities.readPeople()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.entities.list()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.documents.retrievePermissions()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.collections.addItems()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.collections.create()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.collections.delete()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.collections.deleteItem()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.collections.update()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.collections.updateItem()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.collections.retrieve()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.collections.list()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.announcements.delete()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.search.autocomplete()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response.gleanDataError.federatedSearchRateLimitError` **Added**\n* `glean.client.search.query()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response.gleanDataError.federatedSearchRateLimitError` **Added**\n * `error.federatedSearchRateLimitError` **Added**\n* `glean.client.documents.summarize()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.insights.retrieve()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\n* `glean.client.messages.retrieve()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response.searchResponse.gleanDataError.federatedSearchRateLimitError` **Added**\n* `glean.client.pins.update()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.pins.retrieve()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.pins.list()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.pins.create()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.pins.remove()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.search.queryAsAdmin()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response.gleanDataError.federatedSearchRateLimitError` **Added**\n * `error.federatedSearchRateLimitError` **Added**\n* `glean.client.documents.retrieve()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.search.retrieveFeed()`: \n * `request` **Changed** (Breaking ⚠️)\n * `response.results[].primaryEntry.promptTemplate.favoriteInfo.ugcType.enum(prismViewsType)` **Added** (Breaking ⚠️)\n* `glean.client.announcements.create()`: `request` **Changed** (Breaking ⚠️)\n* `glean.client.chat.delete()`: `request.locale` **Added**\n* `glean.client.chat.list()`: `request.locale` **Added**\n* `glean.client.chat.createStream()`: \n * `request.chatRequest.messages[].agentConfig.agent.enum(auto)` **Added**\n* `glean.client.chat.deleteFiles()`: `request.locale` **Added**\n* `glean.client.chat.retrieveFiles()`: `request.locale` **Added**\n* `glean.client.chat.uploadFiles()`: `request.locale` **Added**\n* `glean.client.agents.retrieve()`: `request.locale` **Added**\n* `glean.client.chat.retrieveApplication()`: `request.locale` **Added**\n* `glean.client.verification.list()`: `request.locale` **Added**\n* `glean.client.agents.retrieveSchemas()`: `request.locale` **Added**\n* `glean.client.chat.deleteAll()`: `request.locale` **Added**\n* `glean.client.governance.data.policies.retrieve()`: `response.report.config.inputOptions.subsetDocIdsToScan` **Added**\n* `glean.client.governance.data.policies.update()`: \n * `request.updateDlpReportRequest.config.inputOptions.subsetDocIdsToScan` **Added**\n* `glean.client.governance.data.policies.list()`: `response.reports[].config.inputOptions.subsetDocIdsToScan` **Added**\n* `glean.client.governance.data.policies.create()`: \n * `request.config.inputOptions.subsetDocIdsToScan` **Added**\n * `response.report.config.inputOptions.subsetDocIdsToScan` **Added**\n* `glean.client.governance.data.reports.create()`: \n * `request.config.inputOptions.subsetDocIdsToScan` **Added**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 61df6e35..c69794df 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -21,13 +21,14 @@ generation: schemas: allOfMergeStrategy: shallowMerge requestBodyFieldName: "" + versioningStrategy: automatic persistentEdits: {} tests: generateTests: true generateNewTests: false skipResponseBodyAssertions: false java: - version: 0.12.14 + version: 0.12.15 additionalDependencies: [] additionalPlugins: [] artifactID: glean-api-client @@ -70,5 +71,6 @@ java: operationScopedParams: true outputModelSuffix: output projectName: glean-api-client + respectTitlesForPrimitiveUnionMembers: false templateVersion: v2 unionStrategy: populated-fields diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index f8520c95..401191ac 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: version: 0.9.0 title: Glean API - x-source-commit-sha: 17a84cfc3e3f0e0a3eec1792cf57a65f444d613e + x-source-commit-sha: 5b2305735f672fdca6c1ec60a201ee19ef80b858 description: | # 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. @@ -22,7 +22,7 @@ info: These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice. x-logo: url: https://app.glean.com/images/glean-text2.svg - x-open-api-commit-sha: 3bb1859df9ba2cff7a43d5b1c336bb826a766b4c + x-open-api-commit-sha: 925059cc70ae2691bb863fd9eba851a596e5e5b5 x-speakeasy-name: 'Glean API' servers: - url: https://{instance}-be.glean.com @@ -101,7 +101,8 @@ paths: operationId: createannouncement x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -134,7 +135,8 @@ paths: operationId: deleteannouncement x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -163,7 +165,8 @@ paths: operationId: updateannouncement x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -196,7 +199,8 @@ paths: operationId: createanswer x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -229,7 +233,8 @@ paths: operationId: deleteanswer x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -258,7 +263,8 @@ paths: operationId: editanswer x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -291,7 +297,8 @@ paths: operationId: getanswer x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -325,7 +332,8 @@ paths: deprecated: true x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -347,6 +355,12 @@ paths: description: Not Authorized "429": description: Too Many Requests + x-glean-deprecated: + id: 4c0923bd-64c7-45b9-99a5-b36f2705e618 + introduced: "2026-01-21" + message: Answer boards have been removed and this endpoint no longer serves a purpose + removal: "2026-10-15" + x-speakeasy-deprecation-message: "Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose" x-speakeasy-name-override: list x-speakeasy-group: client.answers /rest/api/v1/createauthtoken: @@ -388,6 +402,7 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -526,6 +541,7 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" responses: "200": @@ -548,6 +564,7 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -579,6 +596,7 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -614,6 +632,7 @@ paths: x-visibility: Public x-codegen-request-body-name: payload parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" responses: "200": @@ -640,6 +659,7 @@ paths: x-visibility: Preview x-codegen-request-body-name: payload parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: content: @@ -672,6 +692,7 @@ paths: operationId: uploadchatfiles x-visibility: Public parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: required: true @@ -706,6 +727,7 @@ paths: operationId: getchatfiles x-visibility: Public parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: required: true @@ -740,6 +762,7 @@ paths: operationId: deletechatfiles x-visibility: Public parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" requestBody: required: true @@ -769,6 +792,7 @@ paths: operationId: getAgent x-visibility: Preview parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" - description: The ID of the agent. required: true @@ -808,6 +832,7 @@ paths: operationId: getAgentSchemas x-visibility: Preview parameters: + - $ref: "#/components/parameters/locale" - $ref: "#/components/parameters/timezoneOffset" - description: The ID of the agent. required: true @@ -993,7 +1018,8 @@ paths: operationId: addcollectionitems x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1026,7 +1052,8 @@ paths: operationId: createcollection x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1065,7 +1092,8 @@ paths: operationId: deletecollection x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1100,7 +1128,8 @@ paths: operationId: deletecollectionitem x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1135,7 +1164,8 @@ paths: operationId: editcollection x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1174,7 +1204,8 @@ paths: operationId: editcollectionitem x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1207,7 +1238,8 @@ paths: operationId: getcollection x-visibility: Preview x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1240,7 +1272,8 @@ paths: operationId: listcollections x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1273,7 +1306,8 @@ paths: operationId: getdocpermissions x-visibility: Preview x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1308,7 +1342,8 @@ paths: operationId: getdocuments x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1341,7 +1376,8 @@ paths: operationId: getdocumentsbyfacets x-visibility: Preview x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1374,7 +1410,8 @@ paths: operationId: insights x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1407,7 +1444,8 @@ paths: operationId: messages x-visibility: Preview x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1440,7 +1478,8 @@ paths: operationId: editpin x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1473,7 +1512,8 @@ paths: operationId: getpin x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1506,7 +1546,8 @@ paths: operationId: listpins x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1539,7 +1580,8 @@ paths: operationId: pin x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1572,7 +1614,8 @@ paths: operationId: unpin x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1603,7 +1646,8 @@ paths: operationId: adminsearch x-visibility: Preview x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1648,7 +1692,8 @@ paths: operationId: autocomplete x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1681,7 +1726,8 @@ paths: operationId: feed x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1716,7 +1762,8 @@ paths: operationId: recommendations x-visibility: Preview x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1755,7 +1802,8 @@ paths: operationId: search x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1802,7 +1850,8 @@ paths: operationId: listentities x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1835,7 +1884,8 @@ paths: operationId: people x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1868,7 +1918,8 @@ paths: operationId: createshortcut x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1901,7 +1952,8 @@ paths: operationId: deleteshortcut x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1930,7 +1982,8 @@ paths: operationId: getshortcut x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1963,7 +2016,8 @@ paths: operationId: listshortcuts x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -1996,7 +2050,8 @@ paths: operationId: updateshortcut x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -2029,7 +2084,8 @@ paths: operationId: summarize x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -2062,7 +2118,8 @@ paths: operationId: addverificationreminder x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -2104,6 +2161,7 @@ paths: required: false schema: type: integer + - $ref: "#/components/parameters/locale" responses: "200": description: OK @@ -2128,7 +2186,8 @@ paths: operationId: verify x-visibility: Public x-codegen-request-body-name: payload - parameters: [] + parameters: + - $ref: "#/components/parameters/locale" requestBody: content: application/json: @@ -2229,7 +2288,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/IndexDocumentRequest" + $ref: '#/components/schemas/IndexDocumentRequest' required: true x-exportParamName: IndexDocumentRequest responses: @@ -2255,7 +2314,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/IndexDocumentsRequest" + $ref: '#/components/schemas/IndexDocumentsRequest' required: true x-exportParamName: IndexDocumentsRequest responses: @@ -2281,7 +2340,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkIndexDocumentsRequest" + $ref: '#/components/schemas/BulkIndexDocumentsRequest' required: true x-exportParamName: BulkIndexDocumentsRequest responses: @@ -2305,7 +2364,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/UpdatePermissionsRequest" + $ref: '#/components/schemas/UpdatePermissionsRequest' required: true x-exportParamName: UpdatePermissionsRequest responses: @@ -2342,7 +2401,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ProcessAllDocumentsRequest" + $ref: '#/components/schemas/ProcessAllDocumentsRequest' x-exportParamName: ProcessAllDocumentsRequest responses: "200": @@ -2365,7 +2424,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteDocumentRequest" + $ref: '#/components/schemas/DeleteDocumentRequest' required: true x-exportParamName: DeleteDocumentRequest responses: @@ -2389,7 +2448,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/IndexUserRequest" + $ref: '#/components/schemas/IndexUserRequest' required: true x-exportParamName: IndexUserRequest responses: @@ -2415,7 +2474,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkIndexUsersRequest" + $ref: '#/components/schemas/BulkIndexUsersRequest' required: true x-exportParamName: BulkIndexUsersRequest responses: @@ -2439,7 +2498,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/IndexGroupRequest" + $ref: '#/components/schemas/IndexGroupRequest' required: true x-exportParamName: IndexGroupRequest responses: @@ -2465,7 +2524,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkIndexGroupsRequest" + $ref: '#/components/schemas/BulkIndexGroupsRequest' required: true x-exportParamName: BulkIndexGroupsRequest responses: @@ -2489,7 +2548,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/IndexMembershipRequest" + $ref: '#/components/schemas/IndexMembershipRequest' required: true x-exportParamName: IndexMembershipRequest responses: @@ -2513,7 +2572,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/BulkIndexMembershipsRequest" + $ref: '#/components/schemas/BulkIndexMembershipsRequest' required: true x-exportParamName: BulkIndexMembershipsRequest responses: @@ -2538,7 +2597,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ProcessAllMembershipsRequest" + $ref: '#/components/schemas/ProcessAllMembershipsRequest' x-exportParamName: ProcessAllMembershipsRequest responses: "200": @@ -2561,7 +2620,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteUserRequest" + $ref: '#/components/schemas/DeleteUserRequest' required: true x-exportParamName: DeleteUserRequest responses: @@ -2587,7 +2646,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteGroupRequest" + $ref: '#/components/schemas/DeleteGroupRequest' required: true x-exportParamName: DeleteGroupRequest responses: @@ -2611,7 +2670,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/DeleteMembershipRequest" + $ref: '#/components/schemas/DeleteMembershipRequest' required: true x-exportParamName: DeleteMembershipRequest responses: @@ -2627,7 +2686,6 @@ paths: x-speakeasy-group: indexing.permissions /api/index/v1/debug/{datasource}/status: post: - x-beta: true summary: | Beta: Get datasource status description: | @@ -2649,16 +2707,16 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugDatasourceStatusResponse" + $ref: '#/components/schemas/DebugDatasourceStatusResponse' "400": description: Bad Request "401": description: Not Authorized + x-beta: true x-speakeasy-name-override: status x-speakeasy-group: indexing.datasource /api/index/v1/debug/{datasource}/document: post: - x-beta: true summary: | Beta: Get document information description: | @@ -2678,7 +2736,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugDocumentRequest" + $ref: '#/components/schemas/DebugDocumentRequest' required: true x-exportParamName: DebugDocumentRequest responses: @@ -2687,16 +2745,16 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugDocumentResponse" + $ref: '#/components/schemas/DebugDocumentResponse' "400": description: Bad Request "401": description: Not Authorized + x-beta: true x-speakeasy-group: indexing.documents x-speakeasy-name-override: debug /api/index/v1/debug/{datasource}/documents: post: - x-beta: true summary: | Beta: Get information of a batch of documents description: | @@ -2716,7 +2774,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugDocumentsRequest" + $ref: '#/components/schemas/DebugDocumentsRequest' required: true x-exportParamName: DebugDocumentsRequest responses: @@ -2725,16 +2783,16 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugDocumentsResponse" + $ref: '#/components/schemas/DebugDocumentsResponse' "400": description: Bad Request "401": description: Not Authorized + x-beta: true x-speakeasy-group: indexing.documents x-speakeasy-name-override: debugMany /api/index/v1/debug/{datasource}/user: post: - x-beta: true summary: | Beta: Get user information description: | @@ -2754,7 +2812,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugUserRequest" + $ref: '#/components/schemas/DebugUserRequest' required: true x-exportParamName: DebugUserRequest responses: @@ -2763,11 +2821,12 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DebugUserResponse" + $ref: '#/components/schemas/DebugUserResponse' "400": description: Bad Request "401": description: Not Authorized + x-beta: true x-speakeasy-name-override: debug x-speakeasy-group: indexing.people /api/index/v1/checkdocumentaccess: @@ -2783,7 +2842,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CheckDocumentAccessRequest" + $ref: '#/components/schemas/CheckDocumentAccessRequest' required: true x-exportParamName: CheckDocumentAccessRequest responses: @@ -2792,7 +2851,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CheckDocumentAccessResponse" + $ref: '#/components/schemas/CheckDocumentAccessResponse' "400": description: Bad Request "401": @@ -2803,7 +2862,6 @@ paths: x-speakeasy-name-override: checkAccess /api/index/v1/getdocumentstatus: post: - deprecated: true summary: Get document upload and indexing status description: | Intended for debugging/validation. Fetches the current upload and indexing status of documents. @@ -2815,7 +2873,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDocumentStatusRequest" + $ref: '#/components/schemas/GetDocumentStatusRequest' required: true x-exportParamName: GetDocumentStatusRequest responses: @@ -2824,18 +2882,18 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDocumentStatusResponse" + $ref: '#/components/schemas/GetDocumentStatusResponse' "400": description: Bad Request "401": description: Not Authorized "429": description: Too Many Requests + deprecated: true x-speakeasy-group: indexing.documents x-speakeasy-name-override: status /api/index/v1/getdocumentcount: post: - deprecated: true summary: Get document count description: | Fetches document count for the specified custom datasource. @@ -2847,7 +2905,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDocumentCountRequest" + $ref: '#/components/schemas/GetDocumentCountRequest' required: true x-exportParamName: GetDocumentCountRequest responses: @@ -2856,18 +2914,18 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDocumentCountResponse" + $ref: '#/components/schemas/GetDocumentCountResponse' "400": description: Bad Request "401": description: Not Authorized "409": description: Conflict + deprecated: true x-speakeasy-group: indexing.documents x-speakeasy-name-override: count /api/index/v1/getusercount: post: - deprecated: true summary: Get user count description: | Fetches user count for the specified custom datasource. @@ -2879,7 +2937,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserCountRequest" + $ref: '#/components/schemas/GetUserCountRequest' required: true x-exportParamName: GetUserCountRequest responses: @@ -2888,13 +2946,14 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetUserCountResponse" + $ref: '#/components/schemas/GetUserCountResponse' "400": description: Bad Request "401": description: Not Authorized "409": description: Conflict + deprecated: true x-speakeasy-name-override: count x-speakeasy-group: indexing.people /api/index/v1/betausers: @@ -2907,7 +2966,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GreenlistUsersRequest" + $ref: '#/components/schemas/GreenlistUsersRequest' required: true x-exportParamName: GreenlistUsersRequest responses: @@ -2931,7 +2990,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CustomDatasourceConfig" + $ref: '#/components/schemas/CustomDatasourceConfig' required: true x-exportParamName: DatasourceConfig responses: @@ -2953,7 +3012,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDatasourceConfigRequest" + $ref: '#/components/schemas/GetDatasourceConfigRequest' required: true x-exportParamName: GetDatasourceConfigRequest responses: @@ -2962,7 +3021,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/CustomDatasourceConfig" + $ref: '#/components/schemas/CustomDatasourceConfig' "400": description: Bad Request "401": @@ -2983,7 +3042,7 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/RotateTokenResponse" + $ref: '#/components/schemas/RotateTokenResponse' "400": description: Bad Request "401": @@ -3000,7 +3059,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/IndexEmployeeRequest" + $ref: '#/components/schemas/IndexEmployeeRequest' required: true x-exportParamName: IndexEmployeeRequest responses: @@ -3024,7 +3083,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/BulkIndexEmployeesRequest" + $ref: '#/components/schemas/BulkIndexEmployeesRequest' required: true x-exportParamName: BulkIndexEmployeesRequest responses: @@ -3067,7 +3126,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DeleteEmployeeRequest" + $ref: '#/components/schemas/DeleteEmployeeRequest' required: true x-exportParamName: DeleteEmployeeRequest responses: @@ -3091,7 +3150,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/IndexTeamRequest" + $ref: '#/components/schemas/IndexTeamRequest' required: true x-exportParamName: IndexTeamRequest responses: @@ -3115,7 +3174,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DeleteTeamRequest" + $ref: '#/components/schemas/DeleteTeamRequest' required: true x-exportParamName: DeleteTeamRequest responses: @@ -3139,7 +3198,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/BulkIndexTeamsRequest" + $ref: '#/components/schemas/BulkIndexTeamsRequest' required: true x-exportParamName: BulkIndexTeamsRequest responses: @@ -3163,7 +3222,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/BulkIndexShortcutsRequest" + $ref: '#/components/schemas/BulkIndexShortcutsRequest' required: true x-exportParamName: BulkIndexShortcutsRequest responses: @@ -3187,7 +3246,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UploadShortcutsRequest" + $ref: '#/components/schemas/UploadShortcutsRequest' required: true x-exportParamName: UploadShortcutsRequest responses: @@ -3203,10 +3262,9 @@ paths: x-speakeasy-group: indexing.shortcuts /rest/api/v1/governance/data/policies/{id}: get: - description: Fetches the specified policy version, or the latest if no version is provided. - summary: Gets specified policy operationId: getpolicy - x-visibility: Public + summary: Gets specified policy + description: Fetches the specified policy version, or the latest if no version is provided. tags: - Governance parameters: @@ -3229,17 +3287,18 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/GetDlpReportResponse" + $ref: '#/components/schemas/GetDlpReportResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.policies x-speakeasy-name-override: retrieve post: - description: Updates an existing policy. - summary: Updates an existing policy operationId: updatepolicy + summary: Updates an existing policy + description: Updates an existing policy. tags: - Governance parameters: @@ -3253,7 +3312,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UpdateDlpReportRequest" + $ref: '#/components/schemas/UpdateDlpReportRequest' required: true responses: "200": @@ -3261,7 +3320,7 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UpdateDlpReportResponse" + $ref: '#/components/schemas/UpdateDlpReportResponse' "403": description: Permissions error "500": @@ -3270,10 +3329,9 @@ paths: x-speakeasy-name-override: update /rest/api/v1/governance/data/policies: get: - description: Lists policies with filtering. - summary: Lists policies operationId: listpolicies - x-visibility: Public + summary: Lists policies + description: Lists policies with filtering. tags: - Governance parameters: @@ -3295,25 +3353,25 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ListDlpReportsResponse" + $ref: '#/components/schemas/ListDlpReportsResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.policies x-speakeasy-name-override: list post: - description: Creates a new policy with specified specifications and returns its id. - summary: Creates new policy operationId: createpolicy - x-visibility: Public + summary: Creates new policy + description: Creates a new policy with specified specifications and returns its id. tags: - Governance requestBody: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/CreateDlpReportRequest" + $ref: '#/components/schemas/CreateDlpReportRequest' required: true responses: "200": @@ -3321,19 +3379,19 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/CreateDlpReportResponse" + $ref: '#/components/schemas/CreateDlpReportResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.policies x-speakeasy-name-override: create /rest/api/v1/governance/data/policies/{id}/download: get: - description: Downloads CSV violations report for a specific policy id. This does not support continuous policies. - summary: Downloads violations CSV for policy operationId: downloadpolicycsv - x-visibility: Public + summary: Downloads violations CSV for policy + description: Downloads CSV violations report for a specific policy id. This does not support continuous policies. tags: - Governance parameters: @@ -3349,29 +3407,29 @@ paths: content: text/csv; charset=UTF-8: schema: - description: CSV of all the violations found for this policy. type: string + description: CSV of all the violations found for this policy. "400": description: Bad request error (e.g., continuous policies are not supported). "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.policies x-speakeasy-name-override: download /rest/api/v1/governance/data/reports: post: - description: Creates a new one-time report and executes its batch job. - summary: Creates new one-time report operationId: createreport - x-visibility: Public + summary: Creates new one-time report + description: Creates a new one-time report and executes its batch job. tags: - Governance requestBody: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UpdateDlpConfigRequest" + $ref: '#/components/schemas/UpdateDlpConfigRequest' required: true responses: "200": @@ -3379,19 +3437,19 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UpdateDlpConfigResponse" + $ref: '#/components/schemas/UpdateDlpConfigResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.reports x-speakeasy-name-override: create /rest/api/v1/governance/data/reports/{id}/download: get: - description: Downloads CSV violations report for a specific report id. - summary: Downloads violations CSV for report operationId: downloadreportcsv - x-visibility: Public + summary: Downloads violations CSV for report + description: Downloads CSV violations report for a specific report id. tags: - Governance parameters: @@ -3407,20 +3465,20 @@ paths: content: text/csv; charset=UTF-8: schema: - description: CSV of all the violations found for this report. type: string + description: CSV of all the violations found for this report. "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.reports x-speakeasy-name-override: download /rest/api/v1/governance/data/reports/{id}/status: get: - description: Fetches the status of the run corresponding to the report-id. - summary: Fetches report run status operationId: getreportstatus - x-visibility: Public + summary: Fetches report run status + description: Fetches the status of the run corresponding to the report-id. tags: - Governance parameters: @@ -3436,19 +3494,19 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/ReportStatusResponse" + $ref: '#/components/schemas/ReportStatusResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.data.reports x-speakeasy-name-override: status /rest/api/v1/governance/documents/visibilityoverrides: get: - description: Fetches the visibility override status of the documents passed. - summary: Fetches documents visibility operationId: getdocvisibility - x-visibility: Public + summary: Fetches documents visibility + description: Fetches the visibility override status of the documents passed. tags: - Governance parameters: @@ -3465,25 +3523,25 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/GetDocumentVisibilityOverridesResponse" + $ref: '#/components/schemas/GetDocumentVisibilityOverridesResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.documents.visibilityoverrides x-speakeasy-name-override: list post: - description: Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents. - summary: Hide or unhide docs operationId: setdocvisibility - x-visibility: Public + summary: Hide or unhide docs + description: Sets the visibility-override state of the documents specified, effectively hiding or un-hiding documents. tags: - Governance requestBody: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UpdateDocumentVisibilityOverridesRequest" + $ref: '#/components/schemas/UpdateDocumentVisibilityOverridesRequest' required: true responses: "200": @@ -3491,26 +3549,26 @@ paths: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/UpdateDocumentVisibilityOverridesResponse" + $ref: '#/components/schemas/UpdateDocumentVisibilityOverridesResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public x-speakeasy-group: client.governance.documents.visibilityoverrides x-speakeasy-name-override: create /rest/api/v1/governance/data/findings/exports: post: - description: Creates a new DLP findings export job. - summary: Creates findings export operationId: createfindingsexport - x-visibility: Private + summary: Creates findings export + description: Creates a new DLP findings export job. tags: - Governance requestBody: content: application/json; charset=UTF-8: schema: - $ref: "#/components/schemas/DlpExportFindingsRequest" + $ref: '#/components/schemas/DlpExportFindingsRequest' required: true responses: "200": @@ -3518,16 +3576,16 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ExportInfo" + $ref: '#/components/schemas/ExportInfo' "403": description: Permissions error "500": description: Internal error + x-visibility: Public get: - description: Lists all DLP findings exports. - summary: Lists findings exports operationId: listfindingsexports - x-visibility: Private + summary: Lists findings exports + description: Lists all DLP findings exports. tags: - Governance responses: @@ -3536,17 +3594,17 @@ paths: content: application/json: schema: - $ref: "#/components/schemas/ListDlpFindingsExportsResponse" + $ref: '#/components/schemas/ListDlpFindingsExportsResponse' "403": description: Permissions error "500": description: Internal error + x-visibility: Public /rest/api/v1/governance/data/findings/exports/{id}: get: - description: Downloads a DLP findings export as a CSV file. - summary: Downloads findings export operationId: downloadfindingsexport - x-visibility: Private + summary: Downloads findings export + description: Downloads a DLP findings export as a CSV file. tags: - Governance parameters: @@ -3562,17 +3620,17 @@ paths: content: text/csv; charset=UTF-8: schema: - description: CSV of all the exported findings. type: string + description: CSV of all the exported findings. "403": description: Permissions error "500": description: Internal error + x-visibility: Public delete: - description: Deletes a DLP findings export. - summary: Deletes findings export operationId: deletefindingsexport - x-visibility: Private + summary: Deletes findings export + description: Deletes a DLP findings export. tags: - Governance parameters: @@ -3590,6 +3648,7 @@ paths: description: Permissions error "500": description: Internal error + x-visibility: Public /rest/api/v1/chat#stream: post: tags: @@ -3776,6 +3835,14 @@ components: action: type: string description: The type of activity this represents. + x-enumDescriptions: + VIEW: Represents a visit to the given `url`. + EDIT: Represents an edit of the document represented by the `url`. + SEARCH: Represents a search performed at the given `url`. + COMMENT: Represents a comment on the document represented by the `url`. + CRAWL: Represents an explicit request to index the given `url` along with associated attributes in this payload. + HISTORICAL_SEARCH: Represents a search performed at the given `url` as indicated by the user's history. + HISTORICAL_VIEW: Represents a visit to the given `url` as indicated by the user's history. enum: - VIEW - EDIT @@ -4099,6 +4166,37 @@ components: event: type: string description: The action the user took within a Glean client with respect to the object referred to by the given `trackingToken`. + x-enumDescriptions: + CLICK: The object's primary link was clicked with the intent to view its full representation. Depending on the object type, this may imply an external navigation or navigating to a new page or view within the Glean app. + CONTAINER_CLICK: A link to the object's parent container (e.g. the folder in which it's located) was clicked. + COPY_LINK: The user copied a link to the primary link. + CREATE: The user creates a document. + DISMISS: The user dismissed the object such that it was hidden from view. + DOWNVOTE: The user gave feedback that the object was not useful. + EMAIL: The user attempted to send an email. + EXECUTE: The user executed the object (e.g. ran a workflow). + FILTER: The user applied a filter. + FIRST_TOKEN: The first token of a streaming response is received. + FOCUS_IN: The user clicked into an interactive element, e.g. the search box. + LAST_TOKEN: The final token of a streaming response is received. + MANUAL_FEEDBACK: The user submitted textual manual feedback regarding the object. + MANUAL_FEEDBACK_SIDE_BY_SIDE: The user submitted comparative feedback for multiple side-by-side implementations. + MARK_AS_READ: The user explicitly marked the content as read. + MESSAGE: The user attempted to send a message using their default messaing app. + MIDDLE_CLICK: The user middle clicked the object's primary link with the intent to open its full representation in a new tab. + PAGE_BLUR: The user puts a page out of focus but keeps it in the background. + PAGE_FOCUS: The user puts a page in focus, meaning it is the first to receive keyboard events. + PAGE_LEAVE: The user leaves a page and it is unloaded (by clicking a link, closing the tab/window, etc). + PREVIEW: The user clicked the object's inline preview affordance. + RIGHT_CLICK: The user right clicked the object's primary link. This may indicate an intent to open it in a new tab or copy it. + SECTION_CLICK: The user clicked a link to a subsection of the primary object. + SEEN: The user has likely seen the object (e.g. took action to make the object visible within the user's viewport). + SELECT: The user explicitly selected something, eg. a chat response variant they prefer. + SHARE: The user shared the object with another user. + SHOW_MORE: The user clicked the object's show more affordance. + UPVOTE: The user gave feedback that the object was useful. + VIEW: The object was visible within the user's viewport. + VISIBLE: The object was visible within the user's viewport. enum: - CLICK - CONTAINER_CLICK @@ -4318,6 +4416,12 @@ components: - LT - GT - NOT_EQUALS + x-enumDescriptions: + EQUALS: The value is equal to the specified value. + ID_EQUALS: The value is equal to the specified ID. + LT: The value is less than the specified value. + GT: The value is greater than the specified value. + NOT_EQUALS: The value is not equal to the specified value. example: EQUALS x-speakeasy-enum-descriptions: EQUALS: The value is equal to the specified value. @@ -4508,6 +4612,12 @@ components: items: type: string description: Hints for the response content. + x-enumDescriptions: + ALL_RESULT_COUNTS: Return result counts for each result set which has non-zero results, even when the request itself is limited to a subset. + FACET_RESULTS: Return only facet results. + QUERY_METADATA: Returns result counts for each result set which has non-zero results, as well as other information about the search such as suggested spelling corrections. + RESULTS: Return search result documents. + SPELLCHECK_METADATA: Return metadata pertaining to spellcheck results. enum: - ALL_RESULT_COUNTS - FACET_RESULTS @@ -4845,8 +4955,6 @@ components: format: date-time description: The team member's start date TeamEmail: - type: object - description: Information about a team's email properties: email: type: string @@ -4854,11 +4962,13 @@ components: description: An email address type: type: string - description: An enum of `PRIMARY`, `SECONDARY`, `ONCALL`, `OTHER` default: OTHER + description: An enum of `PRIMARY`, `SECONDARY`, `ONCALL`, `OTHER` + type: object required: - email - type + description: Information about a team's email CustomFieldValueStr: properties: strText: @@ -6010,6 +6120,8 @@ components: - TICKET - TRANSCRIPT - WITH + x-enumDescriptions: + CANONICAL: Canonical documents for the entity, such as overview docs, architecture docs elastic. x-speakeasy-enum-descriptions: CANONICAL: Canonical documents for the entity, such as overview docs, architecture docs elastic. associatedEntityId: @@ -6142,6 +6254,10 @@ components: prominence: type: string description: The level of visual distinction that should be given to a result. + x-enumDescriptions: + HERO: A high-confidence result that should feature prominently on the page. + PROMOTED: May not be the best result but should be given additional visual distinction. + STANDARD: Should not be distinct from any other results. enum: - HERO - PROMOTED @@ -6201,6 +6317,10 @@ components: type: string description: | The level of visual distinction that should be given to a result. + x-enumDescriptions: + HERO: A high-confidence result that should feature prominently on the page. + PROMOTED: May not be the best result but should be given additional visual distinction. + STANDARD: Should not be distinct from any other results. enum: - HERO - PROMOTED @@ -6498,6 +6618,11 @@ components: properties: type: type: string + x-enumDescriptions: + FULL_TIME: The person is a current full-time employee of the company. + CONTRACTOR: The person is a current contractor of the company. + NON_EMPLOYEE: The person object represents a non-human actor such as a service or admin account. + FORMER_EMPLOYEE: The person is a previous employee of the company. enum: - FULL_TIME - CONTRACTOR @@ -6676,6 +6801,13 @@ components: DocumentVisibility: type: string description: The level of visibility of the document as understood by our system. + x-enumDescriptions: + PRIVATE: Only one person is able to see the document. + SPECIFIC_PEOPLE_AND_GROUPS: Only specific people and/or groups can see the document. + DOMAIN_LINK: Anyone in the domain with the link can see the document. + DOMAIN_VISIBLE: Anyone in the domain can search for the document. + PUBLIC_LINK: Anyone with the link can see the document. + PUBLIC_VISIBLE: Anyone on the internet can search for the document. enum: - PRIVATE - SPECIFIC_PEOPLE_AND_GROUPS @@ -7167,24 +7299,36 @@ components: agent: type: string description: Name of the agent. + x-enumDescriptions: + DEFAULT: Integrates with your company's knowledge. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values + GPT: Communicates directly with the LLM. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values + UNIVERSAL: Uses both company and web knowledge. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values + FAST: Uses an agent powered by the agentic engine that responds faster but may have lower quality results. Requires the agentic engine to be enabled in the deployment. + ADVANCED: Uses an agent powered by the agentic engine that thinks for longer and potentially makes more LLM calls to return higher quality results. Requires the agentic engine to be enabled in the deployment. + AUTO: Uses an agent powered by the agentic engine that routes between reasoning efforts based on the question and context. enum: - DEFAULT - GPT - UNIVERSAL - FAST - ADVANCED + - AUTO x-speakeasy-enum-descriptions: DEFAULT: Integrates with your company's knowledge. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values GPT: Communicates directly with the LLM. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values UNIVERSAL: Uses both company and web knowledge. This will soon be deprecated in favor of the FAST and ADVANCED `agent` values FAST: Uses an agent powered by the agentic engine that responds faster but may have lower quality results. Requires the agentic engine to be enabled in the deployment. ADVANCED: Uses an agent powered by the agentic engine that thinks for longer and potentially makes more LLM calls to return higher quality results. Requires the agentic engine to be enabled in the deployment. + AUTO: Uses an agent powered by the agentic engine that routes between reasoning efforts based on the question and context. toolSets: $ref: "#/components/schemas/ToolSets" mode: type: string description: Top level modes to run GleanChat in. - enum: + x-enumDescriptions: + DEFAULT: Used if no mode supplied. + QUICK: Deprecated. + enum: - DEFAULT - QUICK x-speakeasy-enum-descriptions: @@ -7554,6 +7698,16 @@ components: type: string default: CONTENT description: 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. + x-enumDescriptions: + UPDATE: An intermediate state message for progress updates. + CONTENT: A user query or response message. + CONTEXT: A message providing context in addition to the user query. + DEBUG: A debug message. Strictly used internally. + DEBUG_EXTERNAL: A debug message to be used while debugging Action creation. + ERROR: A message that describes an error while processing the request. + HEADING: A heading message used to distinguish different sections of the holistic response. + WARNING: A warning message to be shown to the user. + SERVER_TOOL: A message used to for server-side tool auth/use, for request and response. enum: - UPDATE - CONTENT @@ -8253,22 +8407,6 @@ components: dayRange: $ref: "#/components/schemas/Period" description: Time period for which Insights are requested. - InsightsAiAppRequestOptions: - type: object - properties: - aiAppIds: - type: array - items: - type: string - description: IDs of the AI Apps for which Insights should be returned. An empty array signifies all. - InsightsAgentsRequestOptions: - type: object - properties: - agentIds: - type: array - items: - type: string - description: IDs of the Agents for which Insights should be returned. An empty array signifies all. InsightsRequest: properties: overviewRequest: @@ -8286,65 +8424,6 @@ components: 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 - - ANSWERS - - COLLECTIONS - - CONTENT - - GLEAN_ASSIST - - QUERIES - - SHORTCUTS - - 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" - 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 - properties: - label: - type: string - description: Label for the included count information. - countInfo: - type: array - items: - $ref: "#/components/schemas/CountInfo" - description: List of data points for counts for a given date period. UserActivityInsight: required: - user @@ -8365,218 +8444,6 @@ components: $ref: "#/components/schemas/CountInfo" activeDayCount: $ref: "#/components/schemas/CountInfo" - UserInsightsResponse: - properties: - lastLogTimestamp: - type: integer - description: Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - activityInsights: - type: array - items: - $ref: "#/components/schemas/UserActivityInsight" - description: Insights for all active users with respect to set of actions. - inactiveInsights: - type: array - items: - $ref: "#/components/schemas/UserActivityInsight" - description: Insights for all in inactive users with respect to set of actions and time period. Activity count will be set to 0. - totalTeammates: - type: integer - description: Total number of teammates that have logged in to the product, that are still valid teammates. - totalActiveUsers: - type: integer - description: Total number of active users in the requested period. - departments: - type: array - items: - type: string - description: list of departments applicable for users tab. - DocumentInsight: - required: - - document - properties: - document: - $ref: "#/components/schemas/Document" - viewCount: - $ref: "#/components/schemas/CountInfo" - visitorCount: - $ref: "#/components/schemas/CountInfo" - ContentInsightsResponse: - properties: - lastLogTimestamp: - type: integer - description: Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - documentInsights: - type: array - items: - $ref: "#/components/schemas/DocumentInsight" - description: Insights for documents. - departments: - type: array - items: - type: string - description: list of departments applicable for contents tab. - minDepartmentSizeThreshold: - type: integer - description: Min threshold in size of departments while populating results, otherwise 0. - minVisitorThreshold: - type: integer - description: Minimum number of visitors to a document required to be included in insights. - QueryInsight: - required: - - query - properties: - query: - type: string - description: The query string the information is about. - searchCount: - $ref: "#/components/schemas/CountInfo" - searchorCount: - $ref: "#/components/schemas/CountInfo" - searchWithClickCount: - $ref: "#/components/schemas/CountInfo" - clickCount: - $ref: "#/components/schemas/CountInfo" - similarQueries: - type: array - items: - $ref: "#/components/schemas/QueryInsight" - description: list of similar queries to current one. - QueryInsightsResponse: - properties: - lastLogTimestamp: - type: integer - description: Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - queryInsights: - type: array - items: - $ref: "#/components/schemas/QueryInsight" - description: Insights for queries. - lowPerformingQueryInsights: - type: array - items: - $ref: "#/components/schemas/QueryInsight" - description: Insights for low performing queries without good results. - departments: - type: array - items: - type: string - description: list of departments applicable for queries tab. - minVisitorThreshold: - type: integer - description: Min threshold in number of visitors while populating results, otherwise 0. - ShortcutInsight: - required: - - shortcut - properties: - shortcut: - $ref: "#/components/schemas/Shortcut" - visitCount: - $ref: "#/components/schemas/CountInfo" - visitorCount: - $ref: "#/components/schemas/CountInfo" - ShortcutInsightsResponse: - properties: - lastLogTimestamp: - type: integer - description: Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - shortcutInsights: - type: array - items: - $ref: "#/components/schemas/ShortcutInsight" - description: Insights for shortcuts. - departments: - type: array - items: - type: string - description: list of departments applicable for shortcuts tab. - minVisitorThreshold: - type: integer - description: Min threshold in number of visitors while populating results, otherwise 0. - AiInsightsResponse: - properties: - lastLogTimestamp: - type: integer - description: Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - assistantInsights: - type: array - items: - $ref: "#/components/schemas/UserActivityInsight" - totalActiveAssistantUsers: - type: integer - description: Total number of Active Assistant users (chat, summary, AIA) in requested period. - totalChatMessages: - type: integer - description: Total number of Chat messages sent in requested period. - totalAiSummarizations: - type: integer - description: Total number of AI Document Summarizations invoked in the requested period. - totalAiAnswers: - type: integer - description: Total number of AI Answers generated in the requested period. - totalUpvotes: - type: integer - description: Total number of Chat messages which received upvotes by the user. - totalDownvotes: - type: integer - description: Total number of Chat messages which received downvotes by the user. - totalGleanbotResponses: - type: integer - description: Total number of Gleanbot responses, both proactive and reactive. - totalGleanbotResponsesShared: - type: integer - description: Total number of Gleanbot responses shared publicly (upvoted). - totalGleanbotResponsesNotHelpful: - type: integer - description: Total number of Glean responses rejected as not helpful (downvoted). - departments: - type: array - items: - type: string - description: list of departments applicable for users tab. - AiAppActionCounts: - type: object - additionalProperties: - type: integer - description: Map from action to frequency. - properties: - totalSlackbotResponses: - type: integer - description: Total number of Slackbot responses, both proactive and reactive. - totalSlackbotResponsesShared: - type: integer - description: Total number of Slackbot responses shared publicly (upvoted). - totalSlackbotResponsesNotHelpful: - type: integer - description: Total number of Slackbot responses rejected as not helpful (downvoted). - totalChatMessages: - type: integer - description: Total number of Chat messages sent in requested period. - totalUpvotes: - type: integer - description: Total number of Chat messages which received upvotes by the user. - totalDownvotes: - type: integer - description: Total number of Chat messages which received downvotes by the user. - AiAppsInsightsResponse: - properties: - lastLogTimestamp: - type: integer - description: Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - aiAppInsights: - type: array - items: - $ref: "#/components/schemas/UserActivityInsight" - totalActiveUsers: - type: integer - description: Total number of active users on the Ai App in the requested period. - actionCounts: - $ref: "#/components/schemas/AiAppActionCounts" - departments: - type: array - items: - type: string - description: list of departments applicable for users tab. GleanAssistInsightsResponse: properties: lastLogTimestamp: @@ -8654,6 +8521,18 @@ components: $ref: "#/components/schemas/CurrentActiveUsers" ugcSummary: $ref: "#/components/schemas/CurrentActiveUsers" + LabeledCountInfo: + required: + - label + properties: + label: + type: string + description: Label for the included count information. + countInfo: + type: array + items: + $ref: "#/components/schemas/CountInfo" + description: List of data points for counts for a given date period. PerUserInsight: properties: person: @@ -8898,51 +8777,9 @@ components: $ref: "#/components/schemas/LabeledCountInfo" InsightsResponse: properties: - timeseries: - deprecated: true - type: array - items: - $ref: "#/components/schemas/LabeledCountInfo" - description: List of timeseries to make charts (if applicable). - users: - deprecated: true - $ref: "#/components/schemas/UserInsightsResponse" - content: - deprecated: true - $ref: "#/components/schemas/ContentInsightsResponse" - queries: - deprecated: true - $ref: "#/components/schemas/QueryInsightsResponse" - collections: - deprecated: true - $ref: "#/components/schemas/ContentInsightsResponse" - collectionsV2: - deprecated: true - $ref: "#/components/schemas/ContentInsightsResponse" - shortcuts: - deprecated: true - $ref: "#/components/schemas/ShortcutInsightsResponse" - announcements: - deprecated: true - $ref: "#/components/schemas/ContentInsightsResponse" - answers: - deprecated: true - $ref: "#/components/schemas/ContentInsightsResponse" - ai: - deprecated: true - $ref: "#/components/schemas/AiInsightsResponse" - aiApps: - deprecated: true - $ref: "#/components/schemas/AiAppsInsightsResponse" gleanAssist: deprecated: true $ref: "#/components/schemas/GleanAssistInsightsResponse" - departments: - deprecated: true - type: array - items: - type: string - description: list of all departments. overviewResponse: $ref: "#/components/schemas/InsightsOverviewResponse" assistantResponse: @@ -9025,6 +8862,9 @@ components: type: array items: $ref: "#/components/schemas/ErrorMessage" + federatedSearchRateLimitError: + type: boolean + description: Indicates the federated search results could not be fetched due to rate limiting. x-speakeasy-name-override: GleanDataError ResultsResponse: properties: @@ -9873,6 +9713,10 @@ components: SectionType: type: string description: Type of the section. This defines how the section should be interpreted and rendered in the digest. + x-enumDescriptions: + CHANNEL: A standard section for channel-based digests (e.g. from Slack, Teams). + MENTIONS: A dedicated section that surfaces user mentions (actionable, informative, or all). + TOPIC: A section driven by a generic topic, not tied to any specific channel or instance. enum: - CHANNEL - MENTIONS @@ -9884,6 +9728,9 @@ components: UpdateType: type: string description: Optional type classification for the update. + x-enumDescriptions: + ACTIONABLE: Updates that require user attention or action + INFORMATIVE: Updates that are purely informational enum: - ACTIONABLE - INFORMATIVE @@ -10033,6 +9880,7 @@ components: - SHORTCUTS_TYPE - WORKFLOWS_TYPE - PROMPT_TEMPLATES_TYPE + - PRISM_VIEWS_TYPE FavoriteInfo: type: object properties: @@ -10399,6 +10247,9 @@ components: type: string default: STANDARD description: The type of request being made. + x-enumDescriptions: + STANDARD: Used by default for all requests and satisfies all standard use cases for list requests. Limited to 10000 entities. + FULL_DIRECTORY: Used exclusively to return a comprehensive list of all people entities in the organization, typically for audit like purposes. The recommended approach is to sort by FIRST_NAME or LAST_NAME, and use pagination for large organizations. enum: - STANDARD - FULL_DIRECTORY @@ -10488,6 +10339,9 @@ components: - PEOPLE_WITHOUT_MANAGER includeTypes: description: The types of people entities to include in the response in addition to those returned by default. + x-enumDescriptions: + PEOPLE_WITHOUT_MANAGER: Returns all people without a manager apart from the requested IDs. + INVALID_ENTITIES: Includes invalid entities in the response if any of the requested IDs are invalid. type: array items: type: string @@ -10827,20 +10681,19 @@ components: description: The error message if applicable IndexDocumentRequest: type: object - description: Describes the request body of the /indexdocument API call properties: version: type: integer format: int64 description: Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. document: + $ref: '#/components/schemas/DocumentDefinition' description: Document being added/updated - $ref: "#/components/schemas/DocumentDefinition" required: - document + description: Describes the request body of the /indexdocument API call IndexDocumentsRequest: type: object - description: Describes the request body of the /indexdocuments API call properties: uploadId: type: string @@ -10849,16 +10702,16 @@ components: type: string description: Datasource of the documents documents: - description: Batch of documents being added/updated type: array items: - $ref: "#/components/schemas/DocumentDefinition" + $ref: '#/components/schemas/DocumentDefinition' + description: Batch of documents being added/updated required: - documents - datasource + description: Describes the request body of the /indexdocuments API call UpdatePermissionsRequest: type: object - description: Describes the request body of the /updatepermissions API call properties: datasource: type: string @@ -10873,30 +10726,30 @@ components: description: | The permalink for viewing the document. **Note: viewURL is a required field if id was not set when uploading the document.**' permissions: - $ref: "#/components/schemas/DocumentPermissionsDefinition" + $ref: '#/components/schemas/DocumentPermissionsDefinition' description: The permissions that define who can view this document in the search results. Please refer to [this](https://developers.glean.com/indexing/documents/permissions) for more details. required: - permissions - datasource + description: Describes the request body of the /updatepermissions API call GetDocumentCountRequest: type: object - description: Describes the request body of the /getdocumentcount API call properties: datasource: type: string description: Datasource name for which document count is needed. required: - datasource + description: Describes the request body of the /getdocumentcount API call GetDocumentCountResponse: type: object - description: Describes the response body of the /getdocumentcount API call properties: documentCount: type: integer description: Number of documents corresponding to the specified custom datasource. + description: Describes the response body of the /getdocumentcount API call GetDocumentStatusRequest: type: object - description: Describes the request body for /getdocumentstatus API call properties: datasource: type: string @@ -10911,9 +10764,9 @@ components: - datasource - objectType - docId + description: Describes the request body for /getdocumentstatus API call GetDocumentStatusResponse: type: object - description: Describes the response body of the /getdocumentstatus API call properties: uploadStatus: type: string @@ -10929,11 +10782,9 @@ components: type: integer format: int64 description: Time of last successful indexing, in epoch seconds + description: Describes the response body of the /getdocumentstatus API call BulkIndexRequest: type: object - description: Describes the request body of a bulk upload API call - required: - - uploadId properties: uploadId: type: string @@ -10947,68 +10798,70 @@ components: forceRestartUpload: type: boolean description: Flag to discard previous upload attempts and start from scratch. Must be specified with isFirstPage=true + required: + - uploadId + description: Describes the request body of a bulk upload API call BulkIndexTeamsRequest: type: object - description: Describes the request body of the /bulkindexteams API call allOf: - - $ref: "#/components/schemas/BulkIndexRequest" + - $ref: '#/components/schemas/BulkIndexRequest' - type: object properties: teams: - description: Batch of team information type: array items: - $ref: "#/components/schemas/TeamInfoDefinition" + $ref: '#/components/schemas/TeamInfoDefinition' + description: Batch of team information required: - teams + description: Describes the request body of the /bulkindexteams API call BulkIndexEmployeesRequest: type: object - description: Describes the request body of the /bulkindexemployees API call allOf: - - $ref: "#/components/schemas/BulkIndexRequest" + - $ref: '#/components/schemas/BulkIndexRequest' - type: object properties: employees: - description: Batch of employee information type: array items: - $ref: "#/components/schemas/EmployeeInfoDefinition" + $ref: '#/components/schemas/EmployeeInfoDefinition' + description: Batch of employee information disableStaleDataDeletionCheck: type: boolean description: 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` required: - employees + description: Describes the request body of the /bulkindexemployees API call BulkIndexDocumentsRequest: type: object - description: Describes the request body of the /bulkindexdocuments API call allOf: - - $ref: "#/components/schemas/BulkIndexRequest" + - $ref: '#/components/schemas/BulkIndexRequest' - type: object properties: datasource: type: string description: Datasource of the documents documents: - description: Batch of documents for the datasource type: array items: - $ref: "#/components/schemas/DocumentDefinition" + $ref: '#/components/schemas/DocumentDefinition' + description: Batch of documents for the datasource disableStaleDocumentDeletionCheck: type: boolean description: 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` required: - datasource - documents + description: Describes the request body of the /bulkindexdocuments API call ProcessAllDocumentsRequest: type: object - description: Describes the request body of the /processalldocuments API call properties: datasource: type: string description: If provided, process documents only for this custom datasource. Otherwise all uploaded documents are processed. + description: Describes the request body of the /processalldocuments API call DeleteDocumentRequest: type: object - description: Describes the request body of the /deletedocument API call properties: version: type: integer @@ -11027,9 +10880,9 @@ components: - datasource - id - objectType + description: Describes the request body of the /deletedocument API call IndexUserRequest: type: object - description: Describes the request body of the /indexuser API call properties: version: type: integer @@ -11039,30 +10892,30 @@ components: type: string description: The datasource for which the user is added user: + $ref: '#/components/schemas/DatasourceUserDefinition' description: The user to be added or updated - $ref: "#/components/schemas/DatasourceUserDefinition" required: - datasource - user + description: Describes the request body of the /indexuser API call GetUserCountRequest: type: object - description: Describes the request body of the /getusercount API call properties: datasource: type: string description: Datasource name for which user count is needed. required: - datasource + description: Describes the request body of the /getusercount API call GetUserCountResponse: type: object - description: Describes the response body of the /getusercount API call properties: userCount: type: integer description: Number of users corresponding to the specified custom datasource. + description: Describes the response body of the /getusercount API call BulkIndexUsersRequest: type: object - description: Describes the request body for the /bulkindexusers API call properties: uploadId: type: string @@ -11080,10 +10933,10 @@ components: type: string description: datasource of the users users: - description: batch of users for the datasource type: array items: - $ref: "#/components/schemas/DatasourceUserDefinition" + $ref: '#/components/schemas/DatasourceUserDefinition' + description: batch of users for the datasource disableStaleDataDeletionCheck: type: boolean description: 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` @@ -11091,31 +10944,31 @@ components: - uploadId - datasource - users + description: Describes the request body for the /bulkindexusers API call GreenlistUsersRequest: type: object - description: Describes the request body of the /betausers API call properties: datasource: type: string description: Datasource which needs to be made visible to users specified in the `emails` field. emails: type: array - description: The emails of the beta users items: type: string format: email + description: The emails of the beta users required: - datasource - emails + description: Describes the request body of the /betausers API call DatasourceUserDefinition: type: object - description: describes a user in the datasource properties: email: type: string userId: - description: To be supplied if the user id in the datasource is not the email type: string + description: To be supplied if the user id in the datasource is not the email name: type: string isActive: @@ -11124,9 +10977,9 @@ components: required: - email - name + description: describes a user in the datasource IndexGroupRequest: type: object - description: Describes the request body of the /indexgroup API call properties: version: type: integer @@ -11136,14 +10989,14 @@ components: type: string description: The datasource for which the group is added group: + $ref: '#/components/schemas/DatasourceGroupDefinition' description: The group to be added or updated - $ref: "#/components/schemas/DatasourceGroupDefinition" required: - datasource - group + description: Describes the request body of the /indexgroup API call BulkIndexGroupsRequest: type: object - description: Describes the request body for the /bulkindexgroups API call properties: uploadId: type: string @@ -11161,10 +11014,10 @@ components: type: string description: datasource of the groups groups: - description: batch of groups for the datasource type: array items: - $ref: "#/components/schemas/DatasourceGroupDefinition" + $ref: '#/components/schemas/DatasourceGroupDefinition' + description: batch of groups for the datasource disableStaleDataDeletionCheck: type: boolean description: 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` @@ -11172,18 +11025,18 @@ components: - uploadId - datasource - groups + description: Describes the request body for the /bulkindexgroups API call DatasourceGroupDefinition: type: object - description: describes a group in the datasource properties: name: type: string description: name of the group. Should be unique among all groups for the datasource, and cannot have spaces. required: - name + description: describes a group in the datasource IndexMembershipRequest: type: object - description: Describes the request body of the /indexmembership API call properties: version: type: integer @@ -11193,14 +11046,14 @@ components: type: string description: The datasource for which the membership is added membership: + $ref: '#/components/schemas/DatasourceMembershipDefinition' description: The membership to be added or updated - $ref: "#/components/schemas/DatasourceMembershipDefinition" required: - datasource - membership + description: Describes the request body of the /indexmembership API call BulkIndexMembershipsRequest: type: object - description: Describes the request body for the /bulkindexmemberships API call properties: uploadId: type: string @@ -11221,49 +11074,49 @@ components: type: string description: group who's memberships are specified memberships: - description: batch of memberships for the group type: array items: - $ref: "#/components/schemas/DatasourceBulkMembershipDefinition" + $ref: '#/components/schemas/DatasourceBulkMembershipDefinition' + description: batch of memberships for the group required: - uploadId - datasource - memberships + description: Describes the request body for the /bulkindexmemberships API call ProcessAllMembershipsRequest: type: object - description: Describes the request body of the /processallmemberships API call properties: datasource: type: string description: If provided, process group memberships only for this custom datasource. Otherwise all uploaded memberships are processed. + description: Describes the request body of the /processallmemberships API call DatasourceMembershipDefinition: type: object - description: describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. properties: groupName: - description: The group for which the membership is specified type: string + description: The group for which the membership is specified memberUserId: - description: If the member is a user, then the email or datasource id for the user type: string + description: If the member is a user, then the email or datasource id for the user memberGroupName: - description: If the member is a group, then the name of the member group type: string + description: If the member is a group, then the name of the member group required: - groupName + description: describes the membership row of a group. Only one of memberUserId and memberGroupName can be specified. DatasourceBulkMembershipDefinition: type: object - description: describes the membership row of a group in the bulk uploaded. Only one of memberUserId and memberGroupName can be specified. properties: memberUserId: - description: If the member is a user, then the email or datasource id for the user type: string + description: If the member is a user, then the email or datasource id for the user memberGroupName: - description: If the member is a group, then the name of the member group type: string + description: If the member is a group, then the name of the member group + description: describes the membership row of a group in the bulk uploaded. Only one of memberUserId and memberGroupName can be specified. DeleteUserRequest: type: object - description: Describes the request body of the /deleteuser API call properties: version: type: integer @@ -11273,14 +11126,14 @@ components: type: string description: The datasource for which the user is removed email: - description: The email of the user to be deleted type: string + description: The email of the user to be deleted required: - datasource - email + description: Describes the request body of the /deleteuser API call DeleteGroupRequest: type: object - description: Describes the request body of the /deletegroup API call properties: version: type: integer @@ -11290,14 +11143,14 @@ components: type: string description: The datasource for which the group is removed groupName: - description: the name of the group to be deleted type: string + description: the name of the group to be deleted required: - datasource - groupName + description: Describes the request body of the /deletegroup API call DeleteMembershipRequest: type: object - description: Describes the request body of the /deletemembership API call properties: version: type: integer @@ -11307,36 +11160,36 @@ components: type: string description: The datasource for which the membership is removed membership: + $ref: '#/components/schemas/DatasourceMembershipDefinition' description: the name of the membership to be deleted - $ref: "#/components/schemas/DatasourceMembershipDefinition" required: - datasource - membership + description: Describes the request body of the /deletemembership API call DeleteEmployeeRequest: type: object - description: Describes the request body of the /deleteemployee API call properties: version: type: integer format: int64 description: Version number for document for optimistic concurrency control. If absent or 0 then no version checks are done. employeeEmail: - description: The deleted employee's email type: string + description: The deleted employee's email required: - employeeEmail + description: Describes the request body of the /deleteemployee API call DeleteTeamRequest: type: object - description: Describes the request body of the /deleteteam API call properties: id: - description: The deleted team's id type: string + description: The deleted team's id required: - id + description: Describes the request body of the /deleteteam API call DocumentDefinition: type: object - description: Indexable document structure properties: title: type: string @@ -11367,16 +11220,16 @@ components: description: | The datasource specific id for the document. This field is case insensitive and should not be more than 200 characters in length. Note: id is a required field for datasources created after 1st March 2025 summary: - $ref: "#/components/schemas/ContentDefinition" + $ref: '#/components/schemas/ContentDefinition' body: - $ref: "#/components/schemas/ContentDefinition" + $ref: '#/components/schemas/ContentDefinition' author: - $ref: "#/components/schemas/UserReferenceDefinition" + $ref: '#/components/schemas/UserReferenceDefinition' owner: - $ref: "#/components/schemas/UserReferenceDefinition" + $ref: '#/components/schemas/UserReferenceDefinition' description: The current owner of the document, if not the author. permissions: - $ref: "#/components/schemas/DocumentPermissionsDefinition" + $ref: '#/components/schemas/DocumentPermissionsDefinition' description: The permissions that define who can view this document in the search results. Please refer to [this](https://developers.glean.com/indexing/documents/permissions) for more details. createdAt: type: integer @@ -11387,14 +11240,14 @@ components: format: int64 description: The last update time, in epoch seconds. updatedBy: - $ref: "#/components/schemas/UserReferenceDefinition" + $ref: '#/components/schemas/UserReferenceDefinition' tags: type: array items: type: string description: Labels associated with the document. interactions: - $ref: "#/components/schemas/DocumentInteractionsDefinition" + $ref: '#/components/schemas/DocumentInteractionsDefinition' status: type: string additionalUrls: @@ -11405,27 +11258,27 @@ components: comments: type: array items: - $ref: "#/components/schemas/CommentDefinition" + $ref: '#/components/schemas/CommentDefinition' description: Comments associated with the document. customProperties: type: array items: - $ref: "#/components/schemas/CustomProperty" + $ref: '#/components/schemas/CustomProperty' description: Additional metadata properties of the document. These can surface as [facets and operators](https://developers.glean.com/indexing/datasource/custom-properties/operators_and_facets). required: - datasource + description: Indexable document structure CommentDefinition: type: object - description: Describes a comment on a document properties: id: type: string description: The document specific id for the comment. This field is case insensitive and should not be more than 200 characters in length. author: - $ref: "#/components/schemas/UserReferenceDefinition" + $ref: '#/components/schemas/UserReferenceDefinition' description: The author of the comment. content: - $ref: "#/components/schemas/ContentDefinition" + $ref: '#/components/schemas/ContentDefinition' description: The content of the comment. createdAt: type: integer @@ -11436,13 +11289,13 @@ components: format: int64 description: The last updated time, in epoch seconds. updatedBy: - $ref: "#/components/schemas/UserReferenceDefinition" + $ref: '#/components/schemas/UserReferenceDefinition' description: The user who last updated the comment. required: - id + description: Describes a comment on a document ContentDefinition: type: object - description: Describes text content or base64 encoded binary content properties: mimeType: type: string @@ -11454,9 +11307,9 @@ components: description: base64 encoded binary content. Only one of textContent or binary content can be specified required: - mimeType + description: Describes text content or base64 encoded binary content UserReferenceDefinition: type: object - description: Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. properties: email: type: string @@ -11465,42 +11318,42 @@ components: description: some datasources refer to the user by the datasource user id in the document name: type: string + description: Describes how a user is referenced in a document. The user can be referenced by email or by a datasource specific id. PermissionsGroupIntersectionDefinition: type: object - description: describes a list of groups that are all required in a permissions constraint properties: requiredGroups: type: array items: type: string + description: describes a list of groups that are all required in a permissions constraint DocumentPermissionsDefinition: type: object - description: describes the access control details of the document properties: allowedUsers: - description: List of users who can view the document type: array items: - $ref: "#/components/schemas/UserReferenceDefinition" + $ref: '#/components/schemas/UserReferenceDefinition' + description: List of users who can view the document allowedGroups: - description: List of groups that can view the document type: array items: type: string + description: List of groups that can view the document allowedGroupIntersections: - description: List of allowed group intersections. This describes a permissions constraint of the form ((GroupA AND GroupB AND GroupC) OR (GroupX AND GroupY) OR ... type: array items: - $ref: "#/components/schemas/PermissionsGroupIntersectionDefinition" + $ref: '#/components/schemas/PermissionsGroupIntersectionDefinition' + description: List of allowed group intersections. This describes a permissions constraint of the form ((GroupA AND GroupB AND GroupC) OR (GroupX AND GroupY) OR ... allowAnonymousAccess: - description: If true, then any Glean user can view the document type: boolean + description: If true, then any Glean user can view the document allowAllDatasourceUsersAccess: - description: If true, then any user who has an account in the datasource can view the document. type: boolean + description: If true, then any user who has an account in the datasource can view the document. + description: describes the access control details of the document DocumentInteractionsDefinition: type: object - description: describes the interactions on the document properties: numViews: type: integer @@ -11508,9 +11361,9 @@ components: type: integer numComments: type: integer + description: describes the interactions on the document CheckDocumentAccessRequest: type: object - description: Describes the request body of the /checkdocumentaccess API call properties: datasource: type: string @@ -11529,44 +11382,44 @@ components: - objectType - docId - userEmail + description: Describes the request body of the /checkdocumentaccess API call CheckDocumentAccessResponse: type: object - description: Describes the response body of the /checkdocumentaccess API call properties: hasAccess: type: boolean description: If true, user has access to document for search + description: Describes the response body of the /checkdocumentaccess API call CustomProperty: type: object - description: Describes the custom properties of the object. properties: name: type: string value: description: 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. + description: Describes the custom properties of the object. DatasourceConfig: - $ref: "#/components/schemas/SharedDatasourceConfig" + $ref: '#/components/schemas/SharedDatasourceConfig' GetDatasourceConfigRequest: type: object - description: Describes the request body of the /getdatasourceconfig API call properties: datasource: type: string description: Datasource name for which config is needed. required: - datasource + description: Describes the request body of the /getdatasourceconfig API call DatasourceConfigList: - description: List of datasource configurations. - required: - - datasourceConfig properties: datasourceConfig: type: array - description: Datasource configuration. items: - $ref: "#/components/schemas/SharedDatasourceConfig" + $ref: '#/components/schemas/SharedDatasourceConfig' + description: Datasource configuration. + required: + - datasourceConfig + description: List of datasource configurations. RotateTokenResponse: - description: Describes the response body of the /rotatetoken API call properties: rawSecret: type: string @@ -11579,31 +11432,31 @@ components: type: integer format: int64 description: 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 + description: Describes the response body of the /rotatetoken API call IndexEmployeeRequest: type: object - description: Info about an employee and optional version for that info properties: employee: + $ref: '#/components/schemas/EmployeeInfoDefinition' description: Info about the employee - $ref: "#/components/schemas/EmployeeInfoDefinition" version: - description: Version number for the employee object. If absent or 0 then no version checks are done type: integer format: int64 + description: Version number for the employee object. If absent or 0 then no version checks are done required: - employee + description: Info about an employee and optional version for that info IndexEmployeeListRequest: type: object - description: Describes the request body of the /indexemployeelist API call properties: employees: - description: List of employee info and version. type: array items: - $ref: "#/components/schemas/IndexEmployeeRequest" + $ref: '#/components/schemas/IndexEmployeeRequest' + description: List of employee info and version. + description: Describes the request body of the /indexemployeelist API call SocialNetworkDefinition: type: object - description: Employee's social network profile properties: name: type: string @@ -11614,15 +11467,18 @@ components: profileUrl: type: string description: Link to profile. + description: Employee's social network profile AdditionalFieldDefinition: type: object - description: Additional information about the employee or team. properties: key: type: string description: 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. value: type: array + items: + type: object + description: Either a string or HypertextField. When OpenAPI Generator supports oneOf, we can semantically enforce this in the docs. description: | List of type string or HypertextField. @@ -11639,9 +11495,7 @@ components: **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. - items: - type: object - description: Either a string or HypertextField. When OpenAPI Generator supports oneOf, we can semantically enforce this in the docs. + description: Additional information about the employee or team. HypertextField: type: object properties: @@ -11653,7 +11507,6 @@ components: description: URL for the hypertext field. EmployeeInfoDefinition: type: object - description: Describes employee info properties: email: type: string @@ -11681,8 +11534,8 @@ components: description: The employee's location (city/office name etc). deprecated: true structuredLocation: + $ref: '#/components/schemas/StructuredLocation' description: Detailed location with information about country, state, city etc. - $ref: "#/components/schemas/StructuredLocation" title: type: string description: The employee's role title. @@ -11698,14 +11551,14 @@ components: description: An organizational unit where everyone has a similar task, e.g. `Engineering`. datasourceProfiles: type: array - description: The datasource profiles of the employee, e.g. `Slack`,`Github`. items: - $ref: "#/components/schemas/DatasourceProfile" + $ref: '#/components/schemas/DatasourceProfile' + description: The datasource profiles of the employee, e.g. `Slack`,`Github`. teams: type: array - description: Info about the employee's team(s) items: - $ref: "#/components/schemas/EmployeeTeamInfo" + $ref: '#/components/schemas/EmployeeTeamInfo' + description: Info about the employee's team(s) startDate: type: string format: date @@ -11722,17 +11575,17 @@ components: description: She/her, He/his or other pronoun. alsoKnownAs: type: array - description: Other names associated with the employee. items: type: string + description: Other names associated with the employee. profileUrl: type: string description: Link to internal company person profile. socialNetworks: type: array - description: List of social network profiles. items: - $ref: "#/components/schemas/SocialNetworkDefinition" + $ref: '#/components/schemas/SocialNetworkDefinition' + description: List of social network profiles. managerEmail: type: string description: The email of the employee's manager @@ -11746,37 +11599,37 @@ components: default: FULL_TIME relationships: type: array - description: 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. items: - $ref: "#/components/schemas/EntityRelationship" + $ref: '#/components/schemas/EntityRelationship' + description: 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. status: type: string description: The status of the employee, an enum of `CURRENT`, `FUTURE`, `EX` default: CURRENT additionalFields: type: array - description: List of additional fields with more information about the employee. items: - $ref: "#/components/schemas/AdditionalFieldDefinition" + $ref: '#/components/schemas/AdditionalFieldDefinition' + description: List of additional fields with more information about the employee. required: - department - email + description: Describes employee info EmployeeAndVersionDefinition: type: object - description: describes info about an employee and optional version for that info properties: employee: + $ref: '#/components/schemas/EmployeeInfoDefinition' description: Info about the employee - $ref: "#/components/schemas/EmployeeInfoDefinition" version: - description: Version number for the employee object. If absent or 0 then no version checks are done type: integer format: int64 + description: Version number for the employee object. If absent or 0 then no version checks are done required: - info + description: describes info about an employee and optional version for that info EmployeeTeamInfo: type: object - description: Information about which team an employee belongs to properties: id: type: string @@ -11788,12 +11641,9 @@ components: type: string format: uri description: Link to internal company team page + description: Information about which team an employee belongs to EntityRelationship: type: object - description: Describes a relationship edge between a source and destination entity - required: - - name - - email properties: name: type: string @@ -11801,14 +11651,17 @@ components: email: type: string description: Email of the person with whom the relationship exists. Per the example above, either `B` or `C`'s email depending on the relationship. + required: + - name + - email + description: Describes a relationship edge between a source and destination entity TeamMember: type: object - description: Information about a team's member properties: email: type: string - description: The member's email format: email + description: The member's email relationship: type: string description: The member's relationship to the team, an enum of `MEMBER`, `MANAGER`, `LEAD`, `POINT_OF_CONTACT`, `OTHER` @@ -11819,9 +11672,9 @@ components: description: The member's start date required: - email + description: Information about a team's member TeamInfoDefinition: type: object - description: Information about an employee's team properties: id: type: string @@ -11849,120 +11702,121 @@ components: A link to an external team page. If set, team results will link to it. emails: type: array - description: The emails of the team items: - $ref: "#/components/schemas/TeamEmail" + $ref: '#/components/schemas/TeamEmail' + description: The emails of the team datasourceProfiles: type: array - description: The datasource profiles of the team, e.g. `Slack`,`Github`. items: - $ref: "#/components/schemas/DatasourceProfile" + $ref: '#/components/schemas/DatasourceProfile' + description: The datasource profiles of the team, e.g. `Slack`,`Github`. members: type: array - description: The members of the team items: - $ref: "#/components/schemas/TeamMember" + $ref: '#/components/schemas/TeamMember' + description: The members of the team additionalFields: type: array - description: List of additional fields with more information about the team. items: - $ref: "#/components/schemas/AdditionalFieldDefinition" + $ref: '#/components/schemas/AdditionalFieldDefinition' + description: List of additional fields with more information about the team. required: - id - members - name + description: Information about an employee's team IndexTeamRequest: type: object - description: Info about a team and optional version for that info properties: team: + $ref: '#/components/schemas/TeamInfoDefinition' description: Info about the team - $ref: "#/components/schemas/TeamInfoDefinition" version: - description: Version number for the team object. If absent or 0 then no version checks are done type: integer format: int64 + description: Version number for the team object. If absent or 0 then no version checks are done required: - team + description: Info about a team and optional version for that info BulkIndexShortcutsRequest: type: object - description: Describes the request body of the /bulkindexshortcuts API call allOf: - - $ref: "#/components/schemas/BulkIndexRequest" + - $ref: '#/components/schemas/BulkIndexRequest' - type: object properties: shortcuts: - description: Batch of shortcuts information type: array items: - $ref: "#/components/schemas/ExternalShortcut" + $ref: '#/components/schemas/ExternalShortcut' + description: Batch of shortcuts information required: - shortcuts + description: Describes the request body of the /bulkindexshortcuts API call UploadShortcutsRequest: type: object - description: Describes the request body of the /uploadshortcuts API call allOf: - - $ref: "#/components/schemas/BulkIndexRequest" + - $ref: '#/components/schemas/BulkIndexRequest' - type: object properties: shortcuts: - description: Batch of shortcuts information type: array items: - $ref: "#/components/schemas/IndexingShortcut" + $ref: '#/components/schemas/IndexingShortcut' + description: Batch of shortcuts information required: - shortcuts + description: Describes the request body of the /uploadshortcuts API call DebugDatasourceStatusResponse: type: object - description: Describes the response body of the /debug/{datasource}/status API call properties: documents: type: object properties: bulkUploadHistory: + $ref: '#/components/schemas/BulkUploadHistoryEventList' type: object - $ref: "#/components/schemas/BulkUploadHistoryEventList" counts: type: object properties: uploaded: type: array items: - $ref: "#/components/schemas/DatasourceObjectTypeDocumentCountEntry" + $ref: '#/components/schemas/DatasourceObjectTypeDocumentCountEntry' description: | A list of object types and corresponding upload counts. Note: This data may be cached and could be up to 3 hours stale. indexed: type: array - description: The number of documents indexed, grouped by objectType items: - $ref: "#/components/schemas/DatasourceObjectTypeDocumentCountEntry" + $ref: '#/components/schemas/DatasourceObjectTypeDocumentCountEntry' + description: The number of documents indexed, grouped by objectType processingHistory: - $ref: "#/components/schemas/ProcessingHistoryEventList" + $ref: '#/components/schemas/ProcessingHistoryEventList' identity: type: object properties: processingHistory: - $ref: "#/components/schemas/ProcessingHistoryEventList" + $ref: '#/components/schemas/ProcessingHistoryEventList' users: - $ref: "#/components/schemas/DebugDatasourceStatusIdentityResponseComponent" + $ref: '#/components/schemas/DebugDatasourceStatusIdentityResponseComponent' groups: - $ref: "#/components/schemas/DebugDatasourceStatusIdentityResponseComponent" + $ref: '#/components/schemas/DebugDatasourceStatusIdentityResponseComponent' memberships: - $ref: "#/components/schemas/DebugDatasourceStatusIdentityResponseComponent" + $ref: '#/components/schemas/DebugDatasourceStatusIdentityResponseComponent' datasourceVisibility: type: string - description: The visibility of the datasource, an enum of VISIBLE_TO_ALL, VISIBLE_TO_TEST_GROUP, NOT_VISIBLE enum: - ENABLED_FOR_ALL - ENABLED_FOR_TEST_GROUP - NOT_ENABLED + description: The visibility of the datasource, an enum of VISIBLE_TO_ALL, VISIBLE_TO_TEST_GROUP, NOT_VISIBLE example: ENABLED_FOR_ALL + description: Describes the response body of the /debug/{datasource}/status API call DebugDatasourceStatusIdentityResponseComponent: type: object properties: bulkUploadHistory: + $ref: '#/components/schemas/BulkUploadHistoryEventList' type: object - $ref: "#/components/schemas/BulkUploadHistoryEventList" counts: type: object properties: @@ -11983,7 +11837,6 @@ components: example: 15 BulkUploadHistoryEvent: type: object - description: Information about a successful bulk upload properties: uploadId: type: string @@ -11999,14 +11852,13 @@ components: example: "2021-08-06T18:58:01.000Z" status: type: string - description: The status of the upload, an enum of ACTIVE, SUCCESSFUL enum: - ACTIVE - SUCCESSFUL + description: The status of the upload, an enum of ACTIVE, SUCCESSFUL example: SUCCESSFUL processingState: type: string - description: The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED enum: - UNAVAILABLE - UPLOAD STARTED @@ -12014,15 +11866,16 @@ components: - UPLOAD COMPLETED - DELETION PAUSED - INDEXING COMPLETED + description: The current state of the upload, an enum of UNAVAILABLE, UPLOAD STARTED, UPLOAD IN PROGRESS, UPLOAD COMPLETED, DELETION PAUSED, INDEXING COMPLETED example: UPLOAD COMPLETED + description: Information about a successful bulk upload BulkUploadHistoryEventList: - description: Information about active and recent successful uploads for the datasource type: array items: - $ref: "#/components/schemas/BulkUploadHistoryEvent" + $ref: '#/components/schemas/BulkUploadHistoryEvent' + description: Information about active and recent successful uploads for the datasource DebugDocumentRequest: type: object - description: Describes the request body of the /debug/{datasource}/document API call. properties: objectType: type: string @@ -12035,30 +11888,30 @@ components: required: - objectType - docId + description: Describes the request body of the /debug/{datasource}/document API call. DebugDocumentResponse: type: object - description: Describes the response body of the /debug/{datasource}/document API call properties: status: + $ref: '#/components/schemas/DocumentStatusResponse' type: object description: Upload and indexing status of the document - $ref: "#/components/schemas/DocumentStatusResponse" uploadedPermissions: - $ref: "#/components/schemas/DocumentPermissionsDefinition" + $ref: '#/components/schemas/DocumentPermissionsDefinition' + description: Describes the response body of the /debug/{datasource}/document API call DebugDocumentsRequest: type: object - description: Describes the request body of the /debug/{datasource}/documents API call. properties: debugDocuments: type: array - description: Documents to fetch debug information for items: - $ref: "#/components/schemas/DebugDocumentRequest" + $ref: '#/components/schemas/DebugDocumentRequest' + description: Documents to fetch debug information for required: - debugDocuments + description: Describes the request body of the /debug/{datasource}/documents API call. DebugDocumentsResponseItem: type: object - description: Describes the response body of a single document in the /debug/{datasource}/documents API call properties: docId: type: string @@ -12067,21 +11920,21 @@ components: type: string description: objectType of the document debugInfo: + $ref: '#/components/schemas/DebugDocumentResponse' type: object description: Debug information of the document - $ref: "#/components/schemas/DebugDocumentResponse" + description: Describes the response body of a single document in the /debug/{datasource}/documents API call DebugDocumentsResponse: type: object - description: Describes the response body of a single document in the /debug/{datasource}/documents API call properties: documentStatuses: type: array - description: List of document ids/urls and their debug information items: - $ref: "#/components/schemas/DebugDocumentsResponseItem" + $ref: '#/components/schemas/DebugDocumentsResponseItem' + description: List of document ids/urls and their debug information + description: Describes the response body of a single document in the /debug/{datasource}/documents API call DocumentStatusResponse: type: object - description: Describes the document status response body properties: uploadStatus: type: string @@ -12103,17 +11956,18 @@ components: type: string description: 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`. example: UPLOADED + description: Describes the document status response body LifeCycleEvent: type: object properties: event: type: string - description: Type of event enum: - UPLOADED - INDEXED - DELETION_REQUESTED - DELETED + description: Type of event example: INDEXED timestamp: type: string @@ -12121,7 +11975,6 @@ components: example: "2021-08-06T17:58:01.000Z" ProcessingHistoryEvent: type: object - description: Processing history event for a datasource properties: startTime: type: string @@ -12131,14 +11984,14 @@ components: type: string description: The end time of the processing in ISO 8601 format, 'NA' if still in progress example: "2021-08-06T18:58:01.000Z" + description: Processing history event for a datasource ProcessingHistoryEventList: - description: Information about processing history for the datasource type: array items: - $ref: "#/components/schemas/ProcessingHistoryEvent" + $ref: '#/components/schemas/ProcessingHistoryEvent' + description: Information about processing history for the datasource DebugUserRequest: type: object - description: Describes the request body of the /debug/{datasource}/user API call properties: email: type: string @@ -12146,44 +11999,44 @@ components: example: u1@foo.com required: - email + description: Describes the request body of the /debug/{datasource}/user API call DebugUserResponse: type: object - description: Describes the response body of the /debug/{datasource}/user API call properties: status: + $ref: '#/components/schemas/UserStatusResponse' type: object description: Upload and indexing status of the user - $ref: "#/components/schemas/UserStatusResponse" uploadedGroups: type: array - description: List of groups the user is a member of, as uploaded via permissions API. items: - $ref: "#/components/schemas/DatasourceGroupDefinition" + $ref: '#/components/schemas/DatasourceGroupDefinition' + description: List of groups the user is a member of, as uploaded via permissions API. + description: Describes the response body of the /debug/{datasource}/user API call UserStatusResponse: type: object - description: Describes the user status response body properties: isActiveUser: type: boolean description: Whether the user is active or not example: true uploadStatus: - $ref: "#/components/schemas/UploadStatusEnum" + $ref: '#/components/schemas/UploadStatusEnum' lastUploadedAt: type: string description: Time of last successful upload for the user, in ISO 8601 format example: "2021-08-06T17:58:01.000Z" + description: Describes the user status response body UploadStatusEnum: type: string - description: Upload status, enum of NOT_UPLOADED, UPLOADED, STATUS_UNKNOWN enum: - UPLOADED - NOT_UPLOADED - STATUS_UNKNOWN + description: Upload status, enum of NOT_UPLOADED, 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 @@ -12204,26 +12057,26 @@ components: required: - objectType - docId + description: Describes the request body of the /debug/{datasource}/document/events API call. 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" + $ref: '#/components/schemas/LifeCycleEvent' + description: List of lifecycle events corresponding to the document + description: Describes the response body of the /debug/{datasource}/document/events API call SuccessResponse: type: object - description: Success response for custom metadata operations properties: success: type: boolean description: Indicates if the operation was successful default: true + description: Success response for custom metadata operations ErrorInfoResponse: type: object - description: Error response for custom metadata operations properties: error: type: string @@ -12233,6 +12086,7 @@ components: description: Additional details about the error required: - error + description: Error response for custom metadata operations PropertyDefinition: properties: name: @@ -12274,7 +12128,6 @@ components: type: string description: The unique identifier of the `PropertyGroup` to which this property belongs. PropertyGroup: - description: A grouping for multiple PropertyDefinition. Grouped properties will be displayed together in the UI. properties: name: type: string @@ -12282,8 +12135,8 @@ components: displayLabel: type: string description: The user-friendly group label to display. + description: A grouping for multiple PropertyDefinition. Grouped properties will be displayed together in the UI. ObjectDefinition: - description: The definition for an `DocumentMetadata.objectType` within a datasource. properties: name: type: string @@ -12316,17 +12169,17 @@ components: propertyDefinitions: type: array items: - $ref: "#/components/schemas/PropertyDefinition" + $ref: '#/components/schemas/PropertyDefinition' propertyGroups: type: array - description: A list of `PropertyGroup`s belonging to this object type, which will group properties to be displayed together in the UI. items: - $ref: "#/components/schemas/PropertyGroup" + $ref: '#/components/schemas/PropertyGroup' + description: A list of `PropertyGroup`s belonging to this object type, which will group properties to be displayed together in the UI. summarizable: - description: Whether or not the object is summarizable type: boolean + description: Whether or not the object is summarizable + description: The definition for an `DocumentMetadata.objectType` within a datasource. CanonicalizingRegexType: - description: Regular expression to apply to an arbitrary string to transform it into a canonical string. properties: matchRegex: type: string @@ -12334,11 +12187,9 @@ components: rewriteRegex: type: string description: Regular expression to transform into a canonical string. + description: Regular expression to apply to an arbitrary string to transform it into a canonical string. SharedDatasourceConfigNoInstance: type: object - description: Structure describing shared config properties of a datasource with no multi-instance support. - required: - - name properties: name: type: string @@ -12367,20 +12218,20 @@ components: - ENTITY - CALENDAR - AGENTS - default: UNCATEGORIZED description: 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. + default: UNCATEGORIZED urlRegex: type: string - description: "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.**" + description: '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.**' example: https://example-company.datasource.com/.* iconUrl: type: string description: 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). objectDefinitions: type: array - description: The list of top-level `objectType`s for the datasource. items: - $ref: "#/components/schemas/ObjectDefinition" + $ref: '#/components/schemas/ObjectDefinition' + description: The list of top-level `objectType`s for the datasource. suggestionText: type: string description: Example text for what to search for in this datasource @@ -12389,15 +12240,14 @@ components: description: The URL of the landing page for this datasource instance. Should point to the most useful page for users, not the company marketing page. crawlerSeedUrls: type: array - description: This only applies to WEB_CRAWL and BROWSER_CRAWL datasources. Defines the seed URLs for crawling. items: type: string + description: This only applies to WEB_CRAWL and BROWSER_CRAWL datasources. Defines the seed URLs for crawling. iconDarkUrl: type: string description: 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). hideBuiltInFacets: type: array - description: List of built-in facet types that should be hidden for the datasource. items: type: string enum: @@ -12405,54 +12255,58 @@ components: - TAG - AUTHOR - OWNER + description: List of built-in facet types that should be hidden for the datasource. canonicalizingURLRegex: type: array - description: 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. items: - $ref: "#/components/schemas/CanonicalizingRegexType" + $ref: '#/components/schemas/CanonicalizingRegexType' + description: 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. canonicalizingTitleRegex: type: array - description: 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 items: - $ref: "#/components/schemas/CanonicalizingRegexType" + $ref: '#/components/schemas/CanonicalizingRegexType' + description: 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 redlistTitleRegex: type: string description: A regex that identifies titles that should not be indexed connectorType: - allOf: - - $ref: "#/components/schemas/ConnectorType" type: string + allOf: + - $ref: '#/components/schemas/ConnectorType' + deprecated: false quicklinks: type: array - description: List of actions for this datasource instance that will show up in autocomplete and app card, e.g. "Create new issue" for jira items: - $ref: "#/components/schemas/Quicklink" + $ref: '#/components/schemas/Quicklink' + description: List of actions for this datasource instance that will show up in autocomplete and app card, e.g. "Create new issue" for jira renderConfigPreset: type: string description: 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 aliases: type: array - description: Aliases that can be used as `app` operator-values. items: type: string + description: Aliases that can be used as `app` operator-values. isOnPrem: type: boolean description: Whether or not this datasource is hosted on-premise. trustUrlRegexForViewActivity: type: boolean - default: true description: 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. + default: true includeUtmSource: type: boolean description: If true, a utm_source query param will be added to outbound links to this datasource within Glean. stripFragmentInCanonicalUrl: type: boolean - default: true description: If true, the fragment part of the URL will be stripped when converting to a canonical url. + default: true + required: + - name + description: Structure describing shared config properties of a datasource with no multi-instance support. CustomDatasourceConfig: - description: Structure describing config properties of a custom datasource allOf: - - $ref: "#/components/schemas/SharedDatasourceConfigNoInstance" + - $ref: '#/components/schemas/SharedDatasourceConfigNoInstance' - type: object properties: identityDatasourceName: @@ -12466,12 +12320,13 @@ components: description: whether email is used to reference users in document ACLs and in group memberships. isEntityDatasource: type: boolean - default: false description: True if this datasource is used to push custom entities. + default: false isTestDatasource: type: boolean - default: false description: True if this datasource will be used for testing purpose only. Documents from such a datasource wouldn't have any effect on search rankings. + default: false + description: Structure describing config properties of a custom datasource ShortcutProperties: properties: inputAlias: @@ -12500,7 +12355,7 @@ components: description: The time the shortcut was updated in epoch seconds. ExternalShortcut: allOf: - - $ref: "#/components/schemas/ShortcutProperties" + - $ref: '#/components/schemas/ShortcutProperties' - type: object required: - destinationUrl @@ -12524,9 +12379,8 @@ components: format: url description: The URL using which the user can access the edit page of the shortcut. SharedDatasourceConfig: - description: Structure describing shared config properties of the datasource (including multi-instance support) allOf: - - $ref: "#/components/schemas/SharedDatasourceConfigNoInstance" + - $ref: '#/components/schemas/SharedDatasourceConfigNoInstance' - type: object properties: datasourceName: @@ -12538,9 +12392,10 @@ components: instanceDescription: type: string description: A human readable string identifying this instance as compared to its peers, e.g. "github.com/askscio" or "github.askscio.com" + description: Structure describing shared config properties of the datasource (including multi-instance support) IndexingShortcut: allOf: - - $ref: "#/components/schemas/ShortcutProperties" + - $ref: '#/components/schemas/ShortcutProperties' - type: object required: - destinationUrl @@ -12556,7 +12411,6 @@ components: SensitiveInfoType: properties: likelihoodThreshold: - deprecated: true type: string enum: - LIKELY @@ -12564,98 +12418,104 @@ components: - POSSIBLE - UNLIKELY - VERY_UNLIKELY + deprecated: true infoType: - description: Text representation of an info-type to scan for. type: string + description: Text representation of an info-type to scan for. TimeRange: properties: startTime: type: string - description: start time of the time range, applicable for the CUSTOM type. format: date-time + description: start time of the time range, applicable for the CUSTOM type. endTime: type: string - description: end time of the time range, applicable for the CUSTOM type. format: date-time + description: end time of the time range, applicable for the CUSTOM type. lastNDaysValue: type: integer - description: The number of days to look back from the current time, applicable for the LAST_N_DAYS type. format: int64 + description: The number of days to look back from the current time, applicable for the LAST_N_DAYS type. InputOptions: - description: Controls which data-sources and what time-range to include in scans. properties: urlGreenlist: - deprecated: true type: array - description: list of url regex matching documents excluded from report items: type: string + description: list of url regex matching documents excluded from report + deprecated: true datasourcesType: type: string - description: The types of datasource for which to run the report/policy. enum: - ALL - CUSTOM + description: The types of datasource for which to run the report/policy. datasources: - deprecated: true type: array - description: List of datasources to consider for report. DEPRECATED - use datasourceInstances instead. items: type: string + description: List of datasources to consider for report. DEPRECATED - use datasourceInstances instead. + deprecated: true datasourceInstances: type: array - description: List of datasource instances to consider for report/policy. items: type: string + description: List of datasource instances to consider for report/policy. timePeriodType: type: string - description: Type of time period for which to run the report/policy. PAST_DAY is deprecated. enum: - ALL_TIME - PAST_YEAR - PAST_DAY - CUSTOM - LAST_N_DAYS + description: Type of time period for which to run the report/policy. PAST_DAY is deprecated. customTimeRange: - $ref: "#/components/schemas/TimeRange" + $ref: '#/components/schemas/TimeRange' + subsetDocIdsToScan: + type: array + items: + type: string + description: Subset of document IDs to scan. If empty, all documents matching other scope criteria will be scanned. + description: Controls which data-sources and what time-range to include in scans. SharingOptions: - description: Controls how "shared" a document must be to get picked for scans. properties: enabled: - deprecated: true type: boolean + deprecated: true threshold: - description: The minimum number of users the document is shared with. type: integer + description: The minimum number of users the document is shared with. thresholdEnabled: - description: Documents will be filtered based on how many people have access to it. type: boolean + description: Documents will be filtered based on how many people have access to it. anyoneWithLinkEnabled: - deprecated: true type: boolean + deprecated: true anyoneInternalEnabled: - description: Only users within the organization can access the document. type: boolean + description: Only users within the organization can access the document. anonymousAccessEnabled: - description: Anyone on the internet can access the document. type: boolean + description: Anyone on the internet can access the document. userAccessEnabled: - description: Enable user access check type: boolean + description: Enable user access check userIds: type: array - description: Any one of the specified users can access the document. items: type: string + description: Any one of the specified users can access the document. + description: Controls how "shared" a document must be to get picked for scans. ExternalSharingOptions: - deprecated: true allOf: - description: DEPRECATED - use `broadSharingOptions` instead. - - $ref: "#/components/schemas/SharingOptions" + - $ref: '#/components/schemas/SharingOptions' - type: object properties: domainAccessEnabled: type: boolean + deprecated: true HotwordProximity: properties: windowBefore: @@ -12667,36 +12527,35 @@ components: regex: type: string proximity: - $ref: "#/components/schemas/HotwordProximity" + $ref: '#/components/schemas/HotwordProximity' SensitiveExpression: properties: expression: - description: Sensitive word, phrase, or regular expression. type: string + description: Sensitive word, phrase, or regular expression. hotwords: - description: Zero to three proximate regular expressions necessary to consider an expression as sensitive content. type: array items: - $ref: "#/components/schemas/Hotword" + $ref: '#/components/schemas/Hotword' + description: Zero to three proximate regular expressions necessary to consider an expression as sensitive content. CustomSensitiveRuleType: type: string - description: Type of the custom sensitive rule. enum: - REGEX - TERM - INFO_TYPE + description: Type of the custom sensitive rule. CustomSensitiveRule: properties: id: - description: Identifier for the custom sensitive expression. type: string + description: Identifier for the custom sensitive expression. value: type: string description: The value of the custom sensitive rule. For REGEX type, this is the regex pattern; for TERM type, it is the term to match; and for INFO_TYPE type, it refers to predefined categories of sensitive content. See https://cloud.google.com/dlp/docs/infotypes-reference for available options. type: - $ref: "#/components/schemas/CustomSensitiveRuleType" + $ref: '#/components/schemas/CustomSensitiveRuleType' likelihoodThreshold: - description: Likelihood threshold for BUILT_IN infotypes (e.g., LIKELY, VERY_LIKELY). Only applicable for BUILT_IN type. type: string enum: - LIKELY @@ -12704,43 +12563,44 @@ components: - POSSIBLE - UNLIKELY - VERY_UNLIKELY + description: Likelihood threshold for BUILT_IN infotypes (e.g., LIKELY, VERY_LIKELY). Only applicable for BUILT_IN type. CustomSensitiveExpression: properties: id: - description: Identifier for the custom sensitive expression. type: string + description: Identifier for the custom sensitive expression. keyword: + $ref: '#/components/schemas/CustomSensitiveRule' description: The keyword to match against. - $ref: "#/components/schemas/CustomSensitiveRule" evaluationExpression: - description: The expression to evaluate the keyword match. type: string + description: The expression to evaluate the keyword match. SensitiveContentOptions: - description: Options for defining sensitive content within scanned documents. properties: sensitiveInfoTypes: - deprecated: true - description: DEPRECATED - use 'customSensitiveExpressions' instead. type: array items: - $ref: "#/components/schemas/SensitiveInfoType" - sensitiveTerms: - deprecated: true + $ref: '#/components/schemas/SensitiveInfoType' description: DEPRECATED - use 'customSensitiveExpressions' instead. + deprecated: true + sensitiveTerms: type: array items: - $ref: "#/components/schemas/SensitiveExpression" - sensitiveRegexes: - deprecated: true + $ref: '#/components/schemas/SensitiveExpression' description: DEPRECATED - use 'customSensitiveExpressions' instead. + deprecated: true + sensitiveRegexes: type: array items: - $ref: "#/components/schemas/SensitiveExpression" + $ref: '#/components/schemas/SensitiveExpression' + description: DEPRECATED - use 'customSensitiveExpressions' instead. + deprecated: true customSensitiveExpressions: - description: list of custom sensitive expressions to consider as sensitive content type: array items: - $ref: "#/components/schemas/CustomSensitiveExpression" + $ref: '#/components/schemas/CustomSensitiveExpression' + description: list of custom sensitive expressions to consider as sensitive content + description: Options for defining sensitive content within scanned documents. DlpPersonMetadata: properties: firstName: @@ -12750,10 +12610,6 @@ components: type: string description: The user's primary email address DlpPerson: - description: Details about the person who created this report/policy. - required: - - name - - obfuscatedId properties: name: type: string @@ -12762,111 +12618,114 @@ components: type: string description: An opaque identifier that can be used to request metadata for a Person. metadata: - $ref: "#/components/schemas/DlpPersonMetadata" + $ref: '#/components/schemas/DlpPersonMetadata' + required: + - name + - obfuscatedId + description: Details about the person who created this report/policy. AllowlistOptions: - description: 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. properties: terms: type: array - description: list of words and phrases to consider as whitelisted content items: type: string + description: list of words and phrases to consider as whitelisted content + description: 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. DlpConfig: - description: Detailed configuration of what documents and sensitive content will be scanned. properties: version: - description: Synonymous with report/policy id. type: integer format: int64 + description: Synonymous with report/policy id. sensitiveInfoTypes: - deprecated: true - description: DEPRECATED - use `sensitiveContentOptions` instead. type: array items: - $ref: "#/components/schemas/SensitiveInfoType" + $ref: '#/components/schemas/SensitiveInfoType' + description: DEPRECATED - use `sensitiveContentOptions` instead. + deprecated: true inputOptions: + $ref: '#/components/schemas/InputOptions' description: Options for documents to include or exclude in a report - $ref: "#/components/schemas/InputOptions" externalSharingOptions: - deprecated: true + $ref: '#/components/schemas/ExternalSharingOptions' description: DEPRECATED - use `broadSharingOptions` instead. - $ref: "#/components/schemas/ExternalSharingOptions" + deprecated: true broadSharingOptions: + $ref: '#/components/schemas/SharingOptions' description: Options for defining documents to scan for sensitive content. - $ref: "#/components/schemas/SharingOptions" sensitiveContentOptions: + $ref: '#/components/schemas/SensitiveContentOptions' description: Options for defining sensitive content within scanned documents. - $ref: "#/components/schemas/SensitiveContentOptions" reportName: type: string frequency: - description: Interval between scans. type: string + description: Interval between scans. createdBy: + $ref: '#/components/schemas/DlpPerson' description: Person who created this report/policy. - $ref: "#/components/schemas/DlpPerson" createdAt: - description: Timestamp at which this configuration was created. type: string format: iso-date-time + description: Timestamp at which this configuration was created. redactQuote: - description: redact quote in findings of the report type: boolean + description: redact quote in findings of the report autoHideDocs: - description: auto hide documents with findings in the report type: boolean + description: auto hide documents with findings in the report allowlistOptions: + $ref: '#/components/schemas/AllowlistOptions' description: Options for defining whitelisting content within scanned documents - $ref: "#/components/schemas/AllowlistOptions" + description: Detailed configuration of what documents and sensitive content will be scanned. DlpFrequency: type: string - description: Interval between scans. DAILY is deprecated. - x-include-enum-class-prefix: true enum: - ONCE - DAILY - WEEKLY - CONTINUOUS - NONE + description: Interval between scans. DAILY is deprecated. + x-include-enum-class-prefix: true DlpReportStatus: type: string - description: The status of the policy/report. Only ACTIVE status will be picked for scans. - x-include-enum-class-prefix: true enum: - ACTIVE - INACTIVE - CANCELLED - NONE + description: The status of the policy/report. Only ACTIVE status will be picked for scans. + x-include-enum-class-prefix: true DlpReport: - description: Full policy information that will be used for scans. properties: id: type: string name: type: string config: + $ref: '#/components/schemas/DlpConfig' description: All details of the policy that is needed for a scan. - $ref: "#/components/schemas/DlpConfig" frequency: + $ref: '#/components/schemas/DlpFrequency' description: The interval between scans. - $ref: "#/components/schemas/DlpFrequency" status: + $ref: '#/components/schemas/DlpReportStatus' description: The status of the policy. - $ref: "#/components/schemas/DlpReportStatus" createdBy: + $ref: '#/components/schemas/DlpPerson' description: Person who created this report. - $ref: "#/components/schemas/DlpPerson" createdAt: - description: Timestamp at which the policy was created. type: string format: iso-date-time + description: Timestamp at which the policy was created. lastUpdatedAt: - description: Timestamp at which the policy was last updated. type: string format: iso-date-time + description: Timestamp at which the policy was last updated. autoHideDocs: - description: Auto hide documents with findings in the policy. type: boolean + description: Auto hide documents with findings in the policy. lastScanStatus: type: string enum: @@ -12877,33 +12736,34 @@ components: - CANCELLING - ACTIVE lastScanStartTime: - description: The timestamp at which the report's last run/scan began. type: string format: iso-date-time + description: The timestamp at which the report's last run/scan began. updatedBy: + $ref: '#/components/schemas/DlpPerson' description: Person who last updated this report. - $ref: "#/components/schemas/DlpPerson" + description: Full policy information that will be used for scans. GetDlpReportResponse: properties: report: - $ref: "#/components/schemas/DlpReport" + $ref: '#/components/schemas/DlpReport' UpdateDlpReportRequest: properties: config: + $ref: '#/components/schemas/DlpConfig' description: The new configuration the policy will follow if provided. - $ref: "#/components/schemas/DlpConfig" frequency: + $ref: '#/components/schemas/DlpFrequency' description: The new frequency the policy will follow if provided. - $ref: "#/components/schemas/DlpFrequency" status: + $ref: '#/components/schemas/DlpReportStatus' description: The new status the policy will be updated to if provided. - $ref: "#/components/schemas/DlpReportStatus" autoHideDocs: - description: The new autoHideDoc boolean the policy will be updated to if provided. type: boolean + description: The new autoHideDoc boolean the policy will be updated to if provided. reportName: - description: The new name of the policy if provided. type: string + description: The new name of the policy if provided. DlpSimpleResult: type: string enum: @@ -12912,45 +12772,45 @@ components: UpdateDlpReportResponse: properties: result: - $ref: "#/components/schemas/DlpSimpleResult" + $ref: '#/components/schemas/DlpSimpleResult' ListDlpReportsResponse: properties: reports: type: array items: - $ref: "#/components/schemas/DlpReport" + $ref: '#/components/schemas/DlpReport' CreateDlpReportRequest: properties: name: - description: Name of the policy being created. type: string + description: Name of the policy being created. config: + $ref: '#/components/schemas/DlpConfig' description: Details on the configuration used in the scans. - $ref: "#/components/schemas/DlpConfig" frequency: + $ref: '#/components/schemas/DlpFrequency' description: Interval between scans. - $ref: "#/components/schemas/DlpFrequency" autoHideDocs: - description: Controls whether the policy should hide documents with violations. type: boolean + description: Controls whether the policy should hide documents with violations. CreateDlpReportResponse: properties: report: - $ref: "#/components/schemas/DlpReport" + $ref: '#/components/schemas/DlpReport' UpdateDlpConfigRequest: properties: config: - $ref: "#/components/schemas/DlpConfig" + $ref: '#/components/schemas/DlpConfig' frequency: - description: Only "ONCE" is supported for reports. type: string + description: Only "ONCE" is supported for reports. UpdateDlpConfigResponse: properties: result: - $ref: "#/components/schemas/DlpSimpleResult" + $ref: '#/components/schemas/DlpSimpleResult' reportId: - description: The id of the report that was just created and run. type: string + description: The id of the report that was just created and run. ReportStatusResponse: properties: status: @@ -12963,70 +12823,70 @@ components: - CANCELLING - ACTIVE startTime: - description: The timestamp at which the report's run/scan began. type: string format: iso-date-time + description: The timestamp at which the report's run/scan began. DocumentVisibilityOverride: properties: docId: type: string override: - description: The visibility-override state of the document. type: string enum: - NONE - HIDE_FROM_ALL - HIDE_FROM_GROUPS - HIDE_FROM_ALL_EXCEPT_OWNER + description: The visibility-override state of the document. GetDocumentVisibilityOverridesResponse: properties: visibilityOverrides: type: array items: - $ref: "#/components/schemas/DocumentVisibilityOverride" + $ref: '#/components/schemas/DocumentVisibilityOverride' UpdateDocumentVisibilityOverridesRequest: properties: visibilityOverrides: type: array items: - $ref: "#/components/schemas/DocumentVisibilityOverride" + $ref: '#/components/schemas/DocumentVisibilityOverride' DocumentVisibilityUpdateResult: allOf: - - $ref: "#/components/schemas/DocumentVisibilityOverride" + - $ref: '#/components/schemas/DocumentVisibilityOverride' - type: object properties: success: - description: Whether this document was successfully set to its desired visibility state. type: boolean + description: Whether this document was successfully set to its desired visibility state. UpdateDocumentVisibilityOverridesResponse: properties: results: - description: The documents and whether their visibility was successfully updated. type: array items: - $ref: "#/components/schemas/DocumentVisibilityUpdateResult" + $ref: '#/components/schemas/DocumentVisibilityUpdateResult' + description: The documents and whether their visibility was successfully updated. DlpSeverity: type: string - description: Severity levels for DLP findings and analyses. - x-include-enum-class-prefix: true enum: - UNSPECIFIED - LOW - MEDIUM - HIGH + description: Severity levels for DLP findings and analyses. + x-include-enum-class-prefix: true TimeRangeFilter: properties: timePeriodType: type: string - description: The type of time period for which to filter findings. enum: - PAST_DAY - PAST_WEEK - PAST_MONTH - PAST_YEAR - CUSTOM + description: The type of time period for which to filter findings. customTimeRange: - $ref: "#/components/schemas/TimeRange" + $ref: '#/components/schemas/TimeRange' DlpFindingFilter: properties: infoType: @@ -13044,28 +12904,28 @@ components: items: type: string severity: - $ref: "#/components/schemas/DlpSeverity" + $ref: '#/components/schemas/DlpSeverity' documentSeverity: type: array items: - $ref: "#/components/schemas/DlpSeverity" + $ref: '#/components/schemas/DlpSeverity' timeRange: - $ref: "#/components/schemas/TimeRangeFilter" + $ref: '#/components/schemas/TimeRangeFilter' archived: type: boolean ExportInfo: properties: createdBy: + $ref: '#/components/schemas/DlpPerson' description: person who triggered this export - $ref: "#/components/schemas/DlpPerson" startTime: - description: Timestamp at which this export started. type: string format: iso-date-time + description: Timestamp at which this export started. endTime: - description: Timestamp at which this export completed. type: string format: iso-date-time + description: Timestamp at which this export completed. exportId: type: string description: The ID of the export @@ -13073,15 +12933,15 @@ components: type: string description: The name of the file to export the findings to filter: - $ref: "#/components/schemas/DlpFindingFilter" + $ref: '#/components/schemas/DlpFindingFilter' description: The filters used to export the findings status: type: string - description: The status of the export enum: - PENDING - COMPLETED - FAILED + description: The status of the export exportSize: type: integer format: int64 @@ -13091,27 +12951,27 @@ components: exports: type: array items: - $ref: "#/components/schemas/ExportInfo" + $ref: '#/components/schemas/ExportInfo' DlpExportFindingsRequest: properties: exportType: type: string - description: The type of export to perform enum: - FINDINGS - DOCUMENTS + description: The type of export to perform filter: - $ref: "#/components/schemas/DlpFindingFilter" + $ref: '#/components/schemas/DlpFindingFilter' fileName: type: string description: The name of the file to export the findings to fieldScope: type: string - description: Controls which fields to include in the export enum: - ALL - EXCLUDE_SENSITIVE - CUSTOM + description: Controls which fields to include in the export fieldsToExclude: type: array items: @@ -13161,6 +13021,13 @@ components: 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. default: true parameters: + locale: + name: locale + in: query + description: The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + required: false + schema: + type: string timezoneOffset: name: timezoneOffset in: query @@ -13173,37 +13040,37 @@ components: content: application/json: schema: - $ref: "#/components/schemas/SuccessResponse" + $ref: '#/components/schemas/SuccessResponse' BadRequestError: description: Bad Request content: application/json: schema: - $ref: "#/components/schemas/ErrorInfoResponse" + $ref: '#/components/schemas/ErrorInfoResponse' UnauthorizedError: description: Not Authorized content: application/json: schema: - $ref: "#/components/schemas/ErrorInfoResponse" + $ref: '#/components/schemas/ErrorInfoResponse' NotFoundError: description: Not Found content: application/json: schema: - $ref: "#/components/schemas/ErrorInfoResponse" + $ref: '#/components/schemas/ErrorInfoResponse' TooManyRequestsError: description: Too Many Requests content: application/json: schema: - $ref: "#/components/schemas/ErrorInfoResponse" + $ref: '#/components/schemas/ErrorInfoResponse' InternalServerError: description: Internal Server Error content: application/json: schema: - $ref: "#/components/schemas/ErrorInfoResponse" + $ref: '#/components/schemas/ErrorInfoResponse' x-tagGroups: - name: Search & Generative AI tags: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 9b59b767..9acf8e1c 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.686.0 +speakeasyVersion: 1.704.0 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:fcb56a3a1b355cdff7e63a0b76385f81472ce01a748f25a409b13b70d89436cc - sourceBlobDigest: sha256:01a8dbd2649712ab871b1799b6c76f92f4edb070c675738cac74685c81879a37 + sourceRevisionDigest: sha256:b988332780975433df0d1c744c0e541f9359315417dde49de6bd4d1712f83348 + sourceBlobDigest: sha256:7bf2a7d4b102a6ea2ab5b974bf00e14a0185895bf088f0a49cfb029b22272531 tags: - latest - - speakeasy-sdk-regen-1768443101 + - speakeasy-sdk-regen-1770164839 Glean-OAS: sourceNamespace: glean-oas sourceRevisionDigest: sha256:8841834dd58ddd4e2dcf98fc90fbd06fbf3626a29df941503cce55b9548a5317 @@ -18,10 +18,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:fcb56a3a1b355cdff7e63a0b76385f81472ce01a748f25a409b13b70d89436cc - sourceBlobDigest: sha256:01a8dbd2649712ab871b1799b6c76f92f4edb070c675738cac74685c81879a37 + sourceRevisionDigest: sha256:b988332780975433df0d1c744c0e541f9359315417dde49de6bd4d1712f83348 + sourceBlobDigest: sha256:7bf2a7d4b102a6ea2ab5b974bf00e14a0185895bf088f0a49cfb029b22272531 codeSamplesNamespace: glean-api-specs-java-code-samples - codeSamplesRevisionDigest: sha256:f3548c0cbdbf60c1da104570ab0bd3147d49bcd25c8381db63abae675b4c68bb + codeSamplesRevisionDigest: sha256:a03b36faf6c1924c8b1d8a4e008a0c47f758e0e2e030a05c99ac7f5d32182314 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index b2cc5a39..91cccc08 100644 --- a/README.md +++ b/README.md @@ -66,7 +66,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.glean.api-client:glean-api-client:0.12.14' +implementation 'com.glean.api-client:glean-api-client:0.12.15' ``` Maven: @@ -74,7 +74,7 @@ Maven: com.glean.api-client glean-api-client - 0.12.14 + 0.12.15 ``` @@ -639,607 +639,605 @@ public class Application { .build(); try { - CreateCollectionRequest req = CreateCollectionRequest.builder() - .name("") - .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(977077L) - .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(86650L) - .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())) + CreatecollectionResponse res = sdk.client().collections().create() + .createCollectionRequest(CreateCollectionRequest.builder() + .name("") + .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(977077L) + .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())) - .collections(List.of( - Collection.builder() - .name("") - .description("meaty dial elegantly while react") - .id(854591L) - .audienceFilters(List.of( - 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())) - .items(List.of( - CollectionItem.builder() - .collectionId(697663L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - CollectionItem.builder() - .collectionId(697663L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .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(), - CollectionItem.builder() - .collectionId(697663L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() + .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(86650L) + .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())) - .shares(List.of( - Share.builder() - .numDaysAgo(365776L) - .build(), - Share.builder() - .numDaysAgo(365776L) - .build(), - Share.builder() - .numDaysAgo(365776L) + .collections(List.of( + Collection.builder() + .name("") + .description("meaty dial elegantly while react") + .id(854591L) + .audienceFilters(List.of( + 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(697663L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(697663L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(697663L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(365776L) + .build(), + Share.builder() + .numDaysAgo(365776L) + .build(), + Share.builder() + .numDaysAgo(365776L) + .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(268615L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(268615L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(423482L) .build()) - .remindAt(423482L) .build()) .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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(977077L) - .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) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") .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) + Shortcut.builder() + .inputAlias("") .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + Shortcut.builder() + .inputAlias("") .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") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(86650L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") + .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") - .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())) + .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(977077L) + .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())) - .collections(List.of( - Collection.builder() - .name("") - .description("meaty dial elegantly while react") - .id(854591L) - .audienceFilters(List.of( - 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())) - .items(List.of( - CollectionItem.builder() - .collectionId(697663L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - CollectionItem.builder() - .collectionId(697663L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .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(), - CollectionItem.builder() - .collectionId(697663L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() + .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(86650L) + .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())) - .shares(List.of( - Share.builder() - .numDaysAgo(365776L) - .build(), - Share.builder() - .numDaysAgo(365776L) - .build(), - Share.builder() - .numDaysAgo(365776L) + .collections(List.of( + Collection.builder() + .name("") + .description("meaty dial elegantly while react") + .id(854591L) + .audienceFilters(List.of( + 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(697663L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(697663L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(697663L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(365776L) + .build(), + Share.builder() + .numDaysAgo(365776L) + .build(), + Share.builder() + .numDaysAgo(365776L) + .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(268615L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(268615L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(423482L) .build()) - .remindAt(423482L) .build()) .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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("") + .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())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + 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()) - .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( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - 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.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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .audienceFilters(List.of( - 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) + .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()) .call(); if (res.oneOf().isPresent()) { diff --git a/RELEASES.md b/RELEASES.md index 8825b2e2..399c2614 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -488,4 +488,14 @@ Based on: ### Generated - [java v0.12.14] . ### Releases -- [Maven Central v0.12.14] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.14 - . \ No newline at end of file +- [Maven Central v0.12.14] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.14 - . + +## 2026-02-05 02:42:03 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.704.0 (2.806.4) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.12.15] . +### Releases +- [Maven Central v0.12.15] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.12.15 - . \ No newline at end of file diff --git a/docs/models/components/AgentEnum.md b/docs/models/components/AgentEnum.md index b80a0fea..2d52ff02 100644 --- a/docs/models/components/AgentEnum.md +++ b/docs/models/components/AgentEnum.md @@ -11,4 +11,5 @@ Name of the agent. | `GPT` | GPT | | `UNIVERSAL` | UNIVERSAL | | `FAST` | FAST | -| `ADVANCED` | ADVANCED | \ No newline at end of file +| `ADVANCED` | ADVANCED | +| `AUTO` | AUTO | \ No newline at end of file diff --git a/docs/models/components/AiAppActionCounts.md b/docs/models/components/AiAppActionCounts.md deleted file mode 100644 index c248f979..00000000 --- a/docs/models/components/AiAppActionCounts.md +++ /dev/null @@ -1,16 +0,0 @@ -# AiAppActionCounts - -Map from action to frequency. - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `totalSlackbotResponses` | *Optional\* | :heavy_minus_sign: | Total number of Slackbot responses, both proactive and reactive. | -| `totalSlackbotResponsesShared` | *Optional\* | :heavy_minus_sign: | Total number of Slackbot responses shared publicly (upvoted). | -| `totalSlackbotResponsesNotHelpful` | *Optional\* | :heavy_minus_sign: | Total number of Slackbot responses rejected as not helpful (downvoted). | -| `totalChatMessages` | *Optional\* | :heavy_minus_sign: | Total number of Chat messages sent in requested period. | -| `totalUpvotes` | *Optional\* | :heavy_minus_sign: | Total number of Chat messages which received upvotes by the user. | -| `totalDownvotes` | *Optional\* | :heavy_minus_sign: | Total number of Chat messages which received downvotes by the user. | -| `additionalProperties` | Map\ | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/AiAppsInsightsResponse.md b/docs/models/components/AiAppsInsightsResponse.md deleted file mode 100644 index f5ec48a9..00000000 --- a/docs/models/components/AiAppsInsightsResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# AiAppsInsightsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `lastLogTimestamp` | *Optional\* | :heavy_minus_sign: | Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). | -| `aiAppInsights` | List\<[UserActivityInsight](../../models/components/UserActivityInsight.md)> | :heavy_minus_sign: | N/A | -| `totalActiveUsers` | *Optional\* | :heavy_minus_sign: | Total number of active users on the Ai App in the requested period. | -| `actionCounts` | [Optional\](../../models/components/AiAppActionCounts.md) | :heavy_minus_sign: | Map from action to frequency. | -| `departments` | List\<*String*> | :heavy_minus_sign: | list of departments applicable for users tab. | \ No newline at end of file diff --git a/docs/models/components/AiInsightsResponse.md b/docs/models/components/AiInsightsResponse.md deleted file mode 100644 index 0bf5ccf1..00000000 --- a/docs/models/components/AiInsightsResponse.md +++ /dev/null @@ -1,19 +0,0 @@ -# AiInsightsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `lastLogTimestamp` | *Optional\* | :heavy_minus_sign: | Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). | -| `assistantInsights` | List\<[UserActivityInsight](../../models/components/UserActivityInsight.md)> | :heavy_minus_sign: | N/A | -| `totalActiveAssistantUsers` | *Optional\* | :heavy_minus_sign: | Total number of Active Assistant users (chat, summary, AIA) in requested period. | -| `totalChatMessages` | *Optional\* | :heavy_minus_sign: | Total number of Chat messages sent in requested period. | -| `totalAiSummarizations` | *Optional\* | :heavy_minus_sign: | Total number of AI Document Summarizations invoked in the requested period. | -| `totalAiAnswers` | *Optional\* | :heavy_minus_sign: | Total number of AI Answers generated in the requested period. | -| `totalUpvotes` | *Optional\* | :heavy_minus_sign: | Total number of Chat messages which received upvotes by the user. | -| `totalDownvotes` | *Optional\* | :heavy_minus_sign: | Total number of Chat messages which received downvotes by the user. | -| `totalGleanbotResponses` | *Optional\* | :heavy_minus_sign: | Total number of Gleanbot responses, both proactive and reactive. | -| `totalGleanbotResponsesShared` | *Optional\* | :heavy_minus_sign: | Total number of Gleanbot responses shared publicly (upvoted). | -| `totalGleanbotResponsesNotHelpful` | *Optional\* | :heavy_minus_sign: | Total number of Glean responses rejected as not helpful (downvoted). | -| `departments` | List\<*String*> | :heavy_minus_sign: | list of departments applicable for users tab. | \ No newline at end of file diff --git a/docs/models/components/AssistantActivityType.md b/docs/models/components/AssistantActivityType.md deleted file mode 100644 index 9502cc83..00000000 --- a/docs/models/components/AssistantActivityType.md +++ /dev/null @@ -1,11 +0,0 @@ -# AssistantActivityType - - -## Values - -| Name | Value | -| ------------------- | ------------------- | -| `GLEAN_CHAT` | GLEAN_CHAT | -| `AI_SUMMARY` | AI_SUMMARY | -| `AI_ANSWER` | AI_ANSWER | -| `GLEANBOT_RESPONSE` | GLEANBOT_RESPONSE | \ No newline at end of file diff --git a/docs/models/components/ContentInsightsResponse.md b/docs/models/components/ContentInsightsResponse.md deleted file mode 100644 index 5bd03170..00000000 --- a/docs/models/components/ContentInsightsResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# ContentInsightsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `lastLogTimestamp` | *Optional\* | :heavy_minus_sign: | Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). | -| `documentInsights` | List\<[DocumentInsight](../../models/components/DocumentInsight.md)> | :heavy_minus_sign: | Insights for documents. | -| `departments` | List\<*String*> | :heavy_minus_sign: | list of departments applicable for contents tab. | -| `minDepartmentSizeThreshold` | *Optional\* | :heavy_minus_sign: | Min threshold in size of departments while populating results, otherwise 0. | -| `minVisitorThreshold` | *Optional\* | :heavy_minus_sign: | Minimum number of visitors to a document required to be included in insights. | \ No newline at end of file diff --git a/docs/models/components/DocumentInsight.md b/docs/models/components/DocumentInsight.md deleted file mode 100644 index 509ba8c4..00000000 --- a/docs/models/components/DocumentInsight.md +++ /dev/null @@ -1,10 +0,0 @@ -# DocumentInsight - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `document` | [Document](../../models/components/Document.md) | :heavy_check_mark: | N/A | -| `viewCount` | [Optional\](../../models/components/CountInfo.md) | :heavy_minus_sign: | N/A | -| `visitorCount` | [Optional\](../../models/components/CountInfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/GleanDataError.md b/docs/models/components/GleanDataError.md index 6de1ebcd..fa12f964 100644 --- a/docs/models/components/GleanDataError.md +++ b/docs/models/components/GleanDataError.md @@ -8,4 +8,5 @@ | `badGmailToken` | *Optional\* | :heavy_minus_sign: | Indicates the gmail results could not be fetched due to bad token. | | `badOutlookToken` | *Optional\* | :heavy_minus_sign: | Indicates the outlook results could not be fetched due to bad token. | | `invalidOperators` | List\<[InvalidOperatorValueError](../../models/components/InvalidOperatorValueError.md)> | :heavy_minus_sign: | Indicates results could not be fetched due to invalid operators in the query. | -| `errorMessages` | List\<[ErrorMessage](../../models/components/ErrorMessage.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file +| `errorMessages` | List\<[ErrorMessage](../../models/components/ErrorMessage.md)> | :heavy_minus_sign: | N/A | +| `federatedSearchRateLimitError` | *Optional\* | :heavy_minus_sign: | Indicates the federated search results could not be fetched due to rate limiting. | \ No newline at end of file diff --git a/docs/models/components/InputOptions.md b/docs/models/components/InputOptions.md index ec5ea989..32c0cb8b 100644 --- a/docs/models/components/InputOptions.md +++ b/docs/models/components/InputOptions.md @@ -12,4 +12,5 @@ Controls which data-sources and what time-range to include in scans. | ~~`datasources`~~ | List\<*String*> | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

List of datasources to consider for report. DEPRECATED - use datasourceInstances instead. | | `datasourceInstances` | List\<*String*> | :heavy_minus_sign: | List of datasource instances to consider for report/policy. | | `timePeriodType` | [Optional\](../../models/components/InputOptionsTimePeriodType.md) | :heavy_minus_sign: | Type of time period for which to run the report/policy. PAST_DAY is deprecated. | -| `customTimeRange` | [Optional\](../../models/components/TimeRange.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| `customTimeRange` | [Optional\](../../models/components/TimeRange.md) | :heavy_minus_sign: | N/A | +| `subsetDocIdsToScan` | List\<*String*> | :heavy_minus_sign: | Subset of document IDs to scan. If empty, all documents matching other scope criteria will be scanned. | \ No newline at end of file diff --git a/docs/models/components/InsightsAgentsRequestOptions.md b/docs/models/components/InsightsAgentsRequestOptions.md deleted file mode 100644 index 9f6df58c..00000000 --- a/docs/models/components/InsightsAgentsRequestOptions.md +++ /dev/null @@ -1,8 +0,0 @@ -# InsightsAgentsRequestOptions - - -## 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. | \ No newline at end of file diff --git a/docs/models/components/InsightsAiAppRequestOptions.md b/docs/models/components/InsightsAiAppRequestOptions.md deleted file mode 100644 index fd48f696..00000000 --- a/docs/models/components/InsightsAiAppRequestOptions.md +++ /dev/null @@ -1,8 +0,0 @@ -# InsightsAiAppRequestOptions - - -## Fields - -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `aiAppIds` | List\<*String*> | :heavy_minus_sign: | IDs of the AI Apps for which Insights should be returned. An empty array signifies all. | \ No newline at end of file diff --git a/docs/models/components/InsightsRequest.md b/docs/models/components/InsightsRequest.md index 3e66699d..775529b9 100644 --- a/docs/models/components/InsightsRequest.md +++ b/docs/models/components/InsightsRequest.md @@ -3,15 +3,9 @@ ## Fields -| 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 +| 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. | \ No newline at end of file diff --git a/docs/models/components/InsightsRequestCategory.md b/docs/models/components/InsightsRequestCategory.md deleted file mode 100644 index f5831a04..00000000 --- a/docs/models/components/InsightsRequestCategory.md +++ /dev/null @@ -1,21 +0,0 @@ -# InsightsRequestCategory - - -## Values - -| 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/models/components/InsightsResponse.md b/docs/models/components/InsightsResponse.md index 8991c086..2d17dfe6 100644 --- a/docs/models/components/InsightsResponse.md +++ b/docs/models/components/InsightsResponse.md @@ -3,21 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| ~~`timeseries`~~ | List\<[LabeledCountInfo](../../models/components/LabeledCountInfo.md)> | :heavy_minus_sign: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible.

List of timeseries to make charts (if applicable). | -| `users` | [Optional\](../../models/components/UserInsightsResponse.md) | :heavy_minus_sign: | N/A | -| `content` | [Optional\](../../models/components/ContentInsightsResponse.md) | :heavy_minus_sign: | N/A | -| `queries` | [Optional\](../../models/components/QueryInsightsResponse.md) | :heavy_minus_sign: | N/A | -| `collections` | [Optional\](../../models/components/ContentInsightsResponse.md) | :heavy_minus_sign: | N/A | -| `collectionsV2` | [Optional\](../../models/components/ContentInsightsResponse.md) | :heavy_minus_sign: | N/A | -| `shortcuts` | [Optional\](../../models/components/ShortcutInsightsResponse.md) | :heavy_minus_sign: | N/A | -| `announcements` | [Optional\](../../models/components/ContentInsightsResponse.md) | :heavy_minus_sign: | N/A | -| `answers` | [Optional\](../../models/components/ContentInsightsResponse.md) | :heavy_minus_sign: | N/A | -| `ai` | [Optional\](../../models/components/AiInsightsResponse.md) | :heavy_minus_sign: | N/A | -| `aiApps` | [Optional\](../../models/components/AiAppsInsightsResponse.md) | :heavy_minus_sign: | N/A | -| `gleanAssist` | [Optional\](../../models/components/GleanAssistInsightsResponse.md) | :heavy_minus_sign: | N/A | -| ~~`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.

list of all departments. | -| `overviewResponse` | [Optional\](../../models/components/InsightsOverviewResponse.md) | :heavy_minus_sign: | N/A | -| `assistantResponse` | [Optional\](../../models/components/AssistantInsightsResponse.md) | :heavy_minus_sign: | N/A | -| `agentsResponse` | [Optional\](../../models/components/AgentsInsightsV2Response.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | +| `gleanAssist` | [Optional\](../../models/components/GleanAssistInsightsResponse.md) | :heavy_minus_sign: | N/A | +| `overviewResponse` | [Optional\](../../models/components/InsightsOverviewResponse.md) | :heavy_minus_sign: | N/A | +| `assistantResponse` | [Optional\](../../models/components/AssistantInsightsResponse.md) | :heavy_minus_sign: | N/A | +| `agentsResponse` | [Optional\](../../models/components/AgentsInsightsV2Response.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/QueryInsight.md b/docs/models/components/QueryInsight.md deleted file mode 100644 index 097dcfbe..00000000 --- a/docs/models/components/QueryInsight.md +++ /dev/null @@ -1,13 +0,0 @@ -# QueryInsight - - -## Fields - -| Field | Type | Required | Description | -| -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -| `query` | *String* | :heavy_check_mark: | The query string the information is about. | -| `searchCount` | [Optional\](../../models/components/CountInfo.md) | :heavy_minus_sign: | N/A | -| `searchorCount` | [Optional\](../../models/components/CountInfo.md) | :heavy_minus_sign: | N/A | -| `searchWithClickCount` | [Optional\](../../models/components/CountInfo.md) | :heavy_minus_sign: | N/A | -| `clickCount` | [Optional\](../../models/components/CountInfo.md) | :heavy_minus_sign: | N/A | -| `similarQueries` | List\<[QueryInsight](../../models/components/QueryInsight.md)> | :heavy_minus_sign: | list of similar queries to current one. | \ No newline at end of file diff --git a/docs/models/components/QueryInsightsResponse.md b/docs/models/components/QueryInsightsResponse.md deleted file mode 100644 index 3c046817..00000000 --- a/docs/models/components/QueryInsightsResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# QueryInsightsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `lastLogTimestamp` | *Optional\* | :heavy_minus_sign: | Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). | -| `queryInsights` | List\<[QueryInsight](../../models/components/QueryInsight.md)> | :heavy_minus_sign: | Insights for queries. | -| `lowPerformingQueryInsights` | List\<[QueryInsight](../../models/components/QueryInsight.md)> | :heavy_minus_sign: | Insights for low performing queries without good results. | -| `departments` | List\<*String*> | :heavy_minus_sign: | list of departments applicable for queries tab. | -| `minVisitorThreshold` | *Optional\* | :heavy_minus_sign: | Min threshold in number of visitors while populating results, otherwise 0. | \ No newline at end of file diff --git a/docs/models/components/ShortcutInsight.md b/docs/models/components/ShortcutInsight.md deleted file mode 100644 index 281b103b..00000000 --- a/docs/models/components/ShortcutInsight.md +++ /dev/null @@ -1,10 +0,0 @@ -# ShortcutInsight - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | -| `shortcut` | [Shortcut](../../models/components/Shortcut.md) | :heavy_check_mark: | N/A | -| `visitCount` | [Optional\](../../models/components/CountInfo.md) | :heavy_minus_sign: | N/A | -| `visitorCount` | [Optional\](../../models/components/CountInfo.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/components/ShortcutInsightsResponse.md b/docs/models/components/ShortcutInsightsResponse.md deleted file mode 100644 index f3afcb62..00000000 --- a/docs/models/components/ShortcutInsightsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# ShortcutInsightsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -| `lastLogTimestamp` | *Optional\* | :heavy_minus_sign: | Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). | -| `shortcutInsights` | List\<[ShortcutInsight](../../models/components/ShortcutInsight.md)> | :heavy_minus_sign: | Insights for shortcuts. | -| `departments` | List\<*String*> | :heavy_minus_sign: | list of departments applicable for shortcuts tab. | -| `minVisitorThreshold` | *Optional\* | :heavy_minus_sign: | Min threshold in number of visitors while populating results, otherwise 0. | \ No newline at end of file diff --git a/docs/models/components/UgcType.md b/docs/models/components/UgcType.md index 252dc1e7..ffb3d59b 100644 --- a/docs/models/components/UgcType.md +++ b/docs/models/components/UgcType.md @@ -10,4 +10,5 @@ | `COLLECTIONS_TYPE` | COLLECTIONS_TYPE | | `SHORTCUTS_TYPE` | SHORTCUTS_TYPE | | `WORKFLOWS_TYPE` | WORKFLOWS_TYPE | -| `PROMPT_TEMPLATES_TYPE` | PROMPT_TEMPLATES_TYPE | \ No newline at end of file +| `PROMPT_TEMPLATES_TYPE` | PROMPT_TEMPLATES_TYPE | +| `PRISM_VIEWS_TYPE` | PRISM_VIEWS_TYPE | \ No newline at end of file diff --git a/docs/models/components/UserInsightsResponse.md b/docs/models/components/UserInsightsResponse.md deleted file mode 100644 index fac68b2a..00000000 --- a/docs/models/components/UserInsightsResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# UserInsightsResponse - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | -| `lastLogTimestamp` | *Optional\* | :heavy_minus_sign: | Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). | -| `activityInsights` | List\<[UserActivityInsight](../../models/components/UserActivityInsight.md)> | :heavy_minus_sign: | Insights for all active users with respect to set of actions. | -| `inactiveInsights` | List\<[UserActivityInsight](../../models/components/UserActivityInsight.md)> | :heavy_minus_sign: | Insights for all in inactive users with respect to set of actions and time period. Activity count will be set to 0. | -| `totalTeammates` | *Optional\* | :heavy_minus_sign: | Total number of teammates that have logged in to the product, that are still valid teammates. | -| `totalActiveUsers` | *Optional\* | :heavy_minus_sign: | Total number of active users in the requested period. | -| `departments` | List\<*String*> | :heavy_minus_sign: | list of departments applicable for users tab. | \ No newline at end of file diff --git a/docs/models/errors/GleanDataError.md b/docs/models/errors/GleanDataError.md index 6de1ebcd..fa12f964 100644 --- a/docs/models/errors/GleanDataError.md +++ b/docs/models/errors/GleanDataError.md @@ -8,4 +8,5 @@ | `badGmailToken` | *Optional\* | :heavy_minus_sign: | Indicates the gmail results could not be fetched due to bad token. | | `badOutlookToken` | *Optional\* | :heavy_minus_sign: | Indicates the outlook results could not be fetched due to bad token. | | `invalidOperators` | List\<[InvalidOperatorValueError](../../models/components/InvalidOperatorValueError.md)> | :heavy_minus_sign: | Indicates results could not be fetched due to invalid operators in the query. | -| `errorMessages` | List\<[ErrorMessage](../../models/components/ErrorMessage.md)> | :heavy_minus_sign: | N/A | \ No newline at end of file +| `errorMessages` | List\<[ErrorMessage](../../models/components/ErrorMessage.md)> | :heavy_minus_sign: | N/A | +| `federatedSearchRateLimitError` | *Optional\* | :heavy_minus_sign: | Indicates the federated search results could not be fetched due to rate limiting. | \ No newline at end of file diff --git a/docs/models/operations/AddcollectionitemsRequest.md b/docs/models/operations/AddcollectionitemsRequest.md new file mode 100644 index 00000000..61e48646 --- /dev/null +++ b/docs/models/operations/AddcollectionitemsRequest.md @@ -0,0 +1,9 @@ +# AddcollectionitemsRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `addCollectionItemsRequest` | [AddCollectionItemsRequest](../../models/components/AddCollectionItemsRequest.md) | :heavy_check_mark: | Data describing the add operation. | \ No newline at end of file diff --git a/docs/models/operations/AddverificationreminderRequest.md b/docs/models/operations/AddverificationreminderRequest.md new file mode 100644 index 00000000..e25955d4 --- /dev/null +++ b/docs/models/operations/AddverificationreminderRequest.md @@ -0,0 +1,9 @@ +# AddverificationreminderRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `reminderRequest` | [ReminderRequest](../../models/components/ReminderRequest.md) | :heavy_check_mark: | Details about the reminder. | \ No newline at end of file diff --git a/docs/models/operations/AdminsearchRequest.md b/docs/models/operations/AdminsearchRequest.md new file mode 100644 index 00000000..0c33742d --- /dev/null +++ b/docs/models/operations/AdminsearchRequest.md @@ -0,0 +1,9 @@ +# AdminsearchRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `searchRequest` | [SearchRequest](../../models/components/SearchRequest.md) | :heavy_check_mark: | Admin search request | {
"trackingToken": "trackingToken",
"query": "vacation policy",
"pageSize": 10,
"requestOptions": {
"facetFilters": [
{
"fieldName": "type",
"values": [
{
"value": "article",
"relationType": "EQUALS"
},
{
"value": "document",
"relationType": "EQUALS"
}
]
},
{
"fieldName": "department",
"values": [
{
"value": "engineering",
"relationType": "EQUALS"
}
]
}
]
}
} | \ No newline at end of file diff --git a/docs/models/operations/AutocompleteRequest.md b/docs/models/operations/AutocompleteRequest.md new file mode 100644 index 00000000..f9ffbf27 --- /dev/null +++ b/docs/models/operations/AutocompleteRequest.md @@ -0,0 +1,9 @@ +# AutocompleteRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `autocompleteRequest` | [AutocompleteRequest](../../models/components/AutocompleteRequest.md) | :heavy_check_mark: | Autocomplete request | {
"trackingToken": "trackingToken",
"query": "what is a que",
"datasource": "GDRIVE",
"resultSize": 10
} | \ No newline at end of file diff --git a/docs/models/operations/ChatRequest.md b/docs/models/operations/ChatRequest.md index 9b250a8a..8a636fe7 100644 --- a/docs/models/operations/ChatRequest.md +++ b/docs/models/operations/ChatRequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `chatRequest` | [ChatRequest](../../models/components/ChatRequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `chatRequest` | [ChatRequest](../../models/components/ChatRequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | \ No newline at end of file diff --git a/docs/models/operations/CreateannouncementRequest.md b/docs/models/operations/CreateannouncementRequest.md new file mode 100644 index 00000000..16269210 --- /dev/null +++ b/docs/models/operations/CreateannouncementRequest.md @@ -0,0 +1,9 @@ +# CreateannouncementRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `createAnnouncementRequest` | [CreateAnnouncementRequest](../../models/components/CreateAnnouncementRequest.md) | :heavy_check_mark: | Announcement content | \ No newline at end of file diff --git a/docs/models/operations/CreateanswerRequest.md b/docs/models/operations/CreateanswerRequest.md new file mode 100644 index 00000000..61028a6a --- /dev/null +++ b/docs/models/operations/CreateanswerRequest.md @@ -0,0 +1,9 @@ +# CreateanswerRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `createAnswerRequest` | [CreateAnswerRequest](../../models/components/CreateAnswerRequest.md) | :heavy_check_mark: | CreateAnswer request | \ No newline at end of file diff --git a/docs/models/operations/CreatecollectionRequest.md b/docs/models/operations/CreatecollectionRequest.md new file mode 100644 index 00000000..2736d030 --- /dev/null +++ b/docs/models/operations/CreatecollectionRequest.md @@ -0,0 +1,9 @@ +# CreatecollectionRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `createCollectionRequest` | [CreateCollectionRequest](../../models/components/CreateCollectionRequest.md) | :heavy_check_mark: | Collection content plus any additional metadata for the request. | \ No newline at end of file diff --git a/docs/models/operations/CreateshortcutRequest.md b/docs/models/operations/CreateshortcutRequest.md new file mode 100644 index 00000000..26a59f17 --- /dev/null +++ b/docs/models/operations/CreateshortcutRequest.md @@ -0,0 +1,9 @@ +# CreateshortcutRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `createShortcutRequest` | [CreateShortcutRequest](../../models/components/CreateShortcutRequest.md) | :heavy_check_mark: | CreateShortcut request | \ No newline at end of file diff --git a/docs/models/operations/DeleteallchatsRequest.md b/docs/models/operations/DeleteallchatsRequest.md index c39f89e7..b1c58106 100644 --- a/docs/models/operations/DeleteallchatsRequest.md +++ b/docs/models/operations/DeleteallchatsRequest.md @@ -3,6 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | \ No newline at end of file diff --git a/docs/models/operations/DeleteannouncementRequest.md b/docs/models/operations/DeleteannouncementRequest.md new file mode 100644 index 00000000..0e0e641d --- /dev/null +++ b/docs/models/operations/DeleteannouncementRequest.md @@ -0,0 +1,9 @@ +# DeleteannouncementRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `deleteAnnouncementRequest` | [DeleteAnnouncementRequest](../../models/components/DeleteAnnouncementRequest.md) | :heavy_check_mark: | Delete announcement request | \ No newline at end of file diff --git a/docs/models/operations/DeleteanswerRequest.md b/docs/models/operations/DeleteanswerRequest.md new file mode 100644 index 00000000..d52ebc1f --- /dev/null +++ b/docs/models/operations/DeleteanswerRequest.md @@ -0,0 +1,9 @@ +# DeleteanswerRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `deleteAnswerRequest` | [DeleteAnswerRequest](../../models/components/DeleteAnswerRequest.md) | :heavy_check_mark: | DeleteAnswer request | \ No newline at end of file diff --git a/docs/models/operations/DeletechatfilesRequest.md b/docs/models/operations/DeletechatfilesRequest.md index 46b490d3..ccf1acf8 100644 --- a/docs/models/operations/DeletechatfilesRequest.md +++ b/docs/models/operations/DeletechatfilesRequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `deleteChatFilesRequest` | [DeleteChatFilesRequest](../../models/components/DeleteChatFilesRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `deleteChatFilesRequest` | [DeleteChatFilesRequest](../../models/components/DeleteChatFilesRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/DeletechatsRequest.md b/docs/models/operations/DeletechatsRequest.md index 53f5c1e8..c5460291 100644 --- a/docs/models/operations/DeletechatsRequest.md +++ b/docs/models/operations/DeletechatsRequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `deleteChatsRequest` | [DeleteChatsRequest](../../models/components/DeleteChatsRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `deleteChatsRequest` | [DeleteChatsRequest](../../models/components/DeleteChatsRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/DeletecollectionRequest.md b/docs/models/operations/DeletecollectionRequest.md new file mode 100644 index 00000000..6a0e715a --- /dev/null +++ b/docs/models/operations/DeletecollectionRequest.md @@ -0,0 +1,9 @@ +# DeletecollectionRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `deleteCollectionRequest` | [DeleteCollectionRequest](../../models/components/DeleteCollectionRequest.md) | :heavy_check_mark: | DeleteCollection request | \ No newline at end of file diff --git a/docs/models/operations/DeletecollectionitemRequest.md b/docs/models/operations/DeletecollectionitemRequest.md new file mode 100644 index 00000000..c2ace3e9 --- /dev/null +++ b/docs/models/operations/DeletecollectionitemRequest.md @@ -0,0 +1,9 @@ +# DeletecollectionitemRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `deleteCollectionItemRequest` | [DeleteCollectionItemRequest](../../models/components/DeleteCollectionItemRequest.md) | :heavy_check_mark: | Data describing the delete operation. | \ No newline at end of file diff --git a/docs/models/operations/DeleteshortcutRequest.md b/docs/models/operations/DeleteshortcutRequest.md new file mode 100644 index 00000000..5f91581d --- /dev/null +++ b/docs/models/operations/DeleteshortcutRequest.md @@ -0,0 +1,9 @@ +# DeleteshortcutRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `deleteShortcutRequest` | [DeleteShortcutRequest](../../models/components/DeleteShortcutRequest.md) | :heavy_check_mark: | DeleteShortcut request | \ No newline at end of file diff --git a/docs/models/operations/EditanswerRequest.md b/docs/models/operations/EditanswerRequest.md new file mode 100644 index 00000000..a15a7687 --- /dev/null +++ b/docs/models/operations/EditanswerRequest.md @@ -0,0 +1,9 @@ +# EditanswerRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `editAnswerRequest` | [EditAnswerRequest](../../models/components/EditAnswerRequest.md) | :heavy_check_mark: | EditAnswer request | \ No newline at end of file diff --git a/docs/models/operations/EditcollectionRequest.md b/docs/models/operations/EditcollectionRequest.md new file mode 100644 index 00000000..79cff712 --- /dev/null +++ b/docs/models/operations/EditcollectionRequest.md @@ -0,0 +1,9 @@ +# EditcollectionRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `editCollectionRequest` | [EditCollectionRequest](../../models/components/EditCollectionRequest.md) | :heavy_check_mark: | Collection content plus any additional metadata for the request. | \ No newline at end of file diff --git a/docs/models/operations/EditcollectionitemRequest.md b/docs/models/operations/EditcollectionitemRequest.md new file mode 100644 index 00000000..bc650836 --- /dev/null +++ b/docs/models/operations/EditcollectionitemRequest.md @@ -0,0 +1,9 @@ +# EditcollectionitemRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `editCollectionItemRequest` | [EditCollectionItemRequest](../../models/components/EditCollectionItemRequest.md) | :heavy_check_mark: | Edit Collection Items request | \ No newline at end of file diff --git a/docs/models/operations/EditpinRequest.md b/docs/models/operations/EditpinRequest.md new file mode 100644 index 00000000..7f4140aa --- /dev/null +++ b/docs/models/operations/EditpinRequest.md @@ -0,0 +1,9 @@ +# EditpinRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `editPinRequest` | [EditPinRequest](../../models/components/EditPinRequest.md) | :heavy_check_mark: | Edit pins request | \ No newline at end of file diff --git a/docs/models/operations/FeedRequest.md b/docs/models/operations/FeedRequest.md new file mode 100644 index 00000000..97617653 --- /dev/null +++ b/docs/models/operations/FeedRequest.md @@ -0,0 +1,9 @@ +# FeedRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `feedRequest` | [FeedRequest](../../models/components/FeedRequest.md) | :heavy_check_mark: | Includes request params, client data and more for making user's feed. | \ No newline at end of file diff --git a/docs/models/operations/GetAgentRequest.md b/docs/models/operations/GetAgentRequest.md index 3619e76f..04239739 100644 --- a/docs/models/operations/GetAgentRequest.md +++ b/docs/models/operations/GetAgentRequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `agentId` | *String* | :heavy_check_mark: | The ID of the agent. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `agentId` | *String* | :heavy_check_mark: | The ID of the agent. | \ No newline at end of file diff --git a/docs/models/operations/GetAgentSchemasRequest.md b/docs/models/operations/GetAgentSchemasRequest.md index b803f130..c16ab0cb 100644 --- a/docs/models/operations/GetAgentSchemasRequest.md +++ b/docs/models/operations/GetAgentSchemasRequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `agentId` | *String* | :heavy_check_mark: | The ID of the agent. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `agentId` | *String* | :heavy_check_mark: | The ID of the agent. | \ No newline at end of file diff --git a/docs/models/operations/GetanswerRequest.md b/docs/models/operations/GetanswerRequest.md new file mode 100644 index 00000000..1106c6d6 --- /dev/null +++ b/docs/models/operations/GetanswerRequest.md @@ -0,0 +1,9 @@ +# GetanswerRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getAnswerRequest` | [GetAnswerRequest](../../models/components/GetAnswerRequest.md) | :heavy_check_mark: | GetAnswer request | \ No newline at end of file diff --git a/docs/models/operations/GetchatRequest.md b/docs/models/operations/GetchatRequest.md index b80f715d..fa8b7ecb 100644 --- a/docs/models/operations/GetchatRequest.md +++ b/docs/models/operations/GetchatRequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `getChatRequest` | [GetChatRequest](../../models/components/GetChatRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `getChatRequest` | [GetChatRequest](../../models/components/GetChatRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetchatapplicationRequest.md b/docs/models/operations/GetchatapplicationRequest.md index 28cea57f..71ee8142 100644 --- a/docs/models/operations/GetchatapplicationRequest.md +++ b/docs/models/operations/GetchatapplicationRequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `getChatApplicationRequest` | [GetChatApplicationRequest](../../models/components/GetChatApplicationRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `getChatApplicationRequest` | [GetChatApplicationRequest](../../models/components/GetChatApplicationRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetchatfilesRequest.md b/docs/models/operations/GetchatfilesRequest.md index 7d42dbb2..30cdf185 100644 --- a/docs/models/operations/GetchatfilesRequest.md +++ b/docs/models/operations/GetchatfilesRequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `getChatFilesRequest` | [GetChatFilesRequest](../../models/components/GetChatFilesRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `getChatFilesRequest` | [GetChatFilesRequest](../../models/components/GetChatFilesRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/GetcollectionRequest.md b/docs/models/operations/GetcollectionRequest.md new file mode 100644 index 00000000..142f9c26 --- /dev/null +++ b/docs/models/operations/GetcollectionRequest.md @@ -0,0 +1,9 @@ +# GetcollectionRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getCollectionRequest` | [GetCollectionRequest](../../models/components/GetCollectionRequest.md) | :heavy_check_mark: | GetCollection request | \ No newline at end of file diff --git a/docs/models/operations/GetdocpermissionsRequest.md b/docs/models/operations/GetdocpermissionsRequest.md new file mode 100644 index 00000000..847fbdd3 --- /dev/null +++ b/docs/models/operations/GetdocpermissionsRequest.md @@ -0,0 +1,9 @@ +# GetdocpermissionsRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getDocPermissionsRequest` | [GetDocPermissionsRequest](../../models/components/GetDocPermissionsRequest.md) | :heavy_check_mark: | Document permissions request | \ No newline at end of file diff --git a/docs/models/operations/GetdocumentsRequest.md b/docs/models/operations/GetdocumentsRequest.md new file mode 100644 index 00000000..dcb89bfb --- /dev/null +++ b/docs/models/operations/GetdocumentsRequest.md @@ -0,0 +1,9 @@ +# GetdocumentsRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getDocumentsRequest` | [Optional\](../../models/components/GetDocumentsRequest.md) | :heavy_minus_sign: | Information about documents requested. | \ No newline at end of file diff --git a/docs/models/operations/GetdocumentsbyfacetsRequest.md b/docs/models/operations/GetdocumentsbyfacetsRequest.md new file mode 100644 index 00000000..129d1f1b --- /dev/null +++ b/docs/models/operations/GetdocumentsbyfacetsRequest.md @@ -0,0 +1,9 @@ +# GetdocumentsbyfacetsRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getDocumentsByFacetsRequest` | [Optional\](../../models/components/GetDocumentsByFacetsRequest.md) | :heavy_minus_sign: | Information about facet conditions for documents to be retrieved. | \ No newline at end of file diff --git a/docs/models/operations/GetpinRequest.md b/docs/models/operations/GetpinRequest.md new file mode 100644 index 00000000..efdad834 --- /dev/null +++ b/docs/models/operations/GetpinRequest.md @@ -0,0 +1,9 @@ +# GetpinRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getPinRequest` | [GetPinRequest](../../models/components/GetPinRequest.md) | :heavy_check_mark: | Get pin request | \ No newline at end of file diff --git a/docs/models/operations/GetshortcutRequest.md b/docs/models/operations/GetshortcutRequest.md new file mode 100644 index 00000000..33a1e135 --- /dev/null +++ b/docs/models/operations/GetshortcutRequest.md @@ -0,0 +1,9 @@ +# GetshortcutRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getShortcutRequest` | [GetShortcutRequestUnion](../../models/components/GetShortcutRequestUnion.md) | :heavy_check_mark: | GetShortcut request | \ No newline at end of file diff --git a/docs/models/operations/InsightsRequest.md b/docs/models/operations/InsightsRequest.md new file mode 100644 index 00000000..56307509 --- /dev/null +++ b/docs/models/operations/InsightsRequest.md @@ -0,0 +1,9 @@ +# InsightsRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `insightsRequest` | [InsightsRequest](../../models/components/InsightsRequest.md) | :heavy_check_mark: | Includes request parameters for insights requests. | \ No newline at end of file diff --git a/docs/models/operations/ListanswersRequest.md b/docs/models/operations/ListanswersRequest.md new file mode 100644 index 00000000..6c8f79e1 --- /dev/null +++ b/docs/models/operations/ListanswersRequest.md @@ -0,0 +1,9 @@ +# ListanswersRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `listAnswersRequest` | [ListAnswersRequest](../../models/components/ListAnswersRequest.md) | :heavy_check_mark: | ListAnswers request | \ No newline at end of file diff --git a/docs/models/operations/ListchatsRequest.md b/docs/models/operations/ListchatsRequest.md index 5ce0aac8..c3b9bce7 100644 --- a/docs/models/operations/ListchatsRequest.md +++ b/docs/models/operations/ListchatsRequest.md @@ -3,6 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | \ No newline at end of file diff --git a/docs/models/operations/ListcollectionsRequest.md b/docs/models/operations/ListcollectionsRequest.md new file mode 100644 index 00000000..ad99b2f0 --- /dev/null +++ b/docs/models/operations/ListcollectionsRequest.md @@ -0,0 +1,9 @@ +# ListcollectionsRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `listCollectionsRequest` | [ListCollectionsRequest](../../models/components/ListCollectionsRequest.md) | :heavy_check_mark: | ListCollections request | \ No newline at end of file diff --git a/docs/models/operations/ListentitiesRequest.md b/docs/models/operations/ListentitiesRequest.md new file mode 100644 index 00000000..3d6e4960 --- /dev/null +++ b/docs/models/operations/ListentitiesRequest.md @@ -0,0 +1,9 @@ +# ListentitiesRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `listEntitiesRequest` | [ListEntitiesRequest](../../models/components/ListEntitiesRequest.md) | :heavy_check_mark: | List people request | \ No newline at end of file diff --git a/docs/models/operations/ListpinsRequest.md b/docs/models/operations/ListpinsRequest.md index 4c0c3889..84fff10c 100644 --- a/docs/models/operations/ListpinsRequest.md +++ b/docs/models/operations/ListpinsRequest.md @@ -1,9 +1,9 @@ # ListpinsRequest -List pins request - ## Fields -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `requestBody` | [ListpinsRequestBody](../../models/operations/ListpinsRequestBody.md) | :heavy_check_mark: | List pins request | \ No newline at end of file diff --git a/docs/models/operations/ListpinsRequestBody.md b/docs/models/operations/ListpinsRequestBody.md new file mode 100644 index 00000000..ad2e4cbd --- /dev/null +++ b/docs/models/operations/ListpinsRequestBody.md @@ -0,0 +1,9 @@ +# ListpinsRequestBody + +List pins request + + +## Fields + +| Field | Type | Required | Description | +| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/operations/ListshortcutsRequest.md b/docs/models/operations/ListshortcutsRequest.md new file mode 100644 index 00000000..c762456b --- /dev/null +++ b/docs/models/operations/ListshortcutsRequest.md @@ -0,0 +1,9 @@ +# ListshortcutsRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `listShortcutsPaginatedRequest` | [ListShortcutsPaginatedRequest](../../models/components/ListShortcutsPaginatedRequest.md) | :heavy_check_mark: | Filters, sorters, paging params required for pagination | \ No newline at end of file diff --git a/docs/models/operations/ListverificationsRequest.md b/docs/models/operations/ListverificationsRequest.md index 2fe7d1b9..55644bda 100644 --- a/docs/models/operations/ListverificationsRequest.md +++ b/docs/models/operations/ListverificationsRequest.md @@ -3,6 +3,7 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | -| `count` | *Optional\* | :heavy_minus_sign: | Maximum number of documents to return | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `count` | *Optional\* | :heavy_minus_sign: | Maximum number of documents to return | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | \ No newline at end of file diff --git a/docs/models/operations/MessagesRequest.md b/docs/models/operations/MessagesRequest.md new file mode 100644 index 00000000..92e65bd1 --- /dev/null +++ b/docs/models/operations/MessagesRequest.md @@ -0,0 +1,9 @@ +# MessagesRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `messagesRequest` | [MessagesRequest](../../models/components/MessagesRequest.md) | :heavy_check_mark: | Includes request params such as the id for channel/message and direction. | \ No newline at end of file diff --git a/docs/models/operations/PeopleRequest.md b/docs/models/operations/PeopleRequest.md new file mode 100644 index 00000000..1dc2e617 --- /dev/null +++ b/docs/models/operations/PeopleRequest.md @@ -0,0 +1,9 @@ +# PeopleRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `peopleRequest` | [PeopleRequest](../../models/components/PeopleRequest.md) | :heavy_check_mark: | People request | {
"obfuscatedIds": [
"abc123",
"abc456"
]
} | \ No newline at end of file diff --git a/docs/models/operations/PinRequest.md b/docs/models/operations/PinRequest.md new file mode 100644 index 00000000..3c50a0c2 --- /dev/null +++ b/docs/models/operations/PinRequest.md @@ -0,0 +1,9 @@ +# PinRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `pinRequest` | [PinRequest](../../models/components/PinRequest.md) | :heavy_check_mark: | Details about the document and query for the pin. | \ No newline at end of file diff --git a/docs/models/operations/RecommendationsRequest.md b/docs/models/operations/RecommendationsRequest.md new file mode 100644 index 00000000..5f856af8 --- /dev/null +++ b/docs/models/operations/RecommendationsRequest.md @@ -0,0 +1,9 @@ +# RecommendationsRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `recommendationsRequest` | [RecommendationsRequest](../../models/components/RecommendationsRequest.md) | :heavy_check_mark: | Recommendations request | \ No newline at end of file diff --git a/docs/models/operations/SearchRequest.md b/docs/models/operations/SearchRequest.md new file mode 100644 index 00000000..2fe307a5 --- /dev/null +++ b/docs/models/operations/SearchRequest.md @@ -0,0 +1,9 @@ +# SearchRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `searchRequest` | [SearchRequest](../../models/components/SearchRequest.md) | :heavy_check_mark: | Search request | {
"trackingToken": "trackingToken",
"query": "vacation policy",
"pageSize": 10,
"requestOptions": {
"facetFilters": [
{
"fieldName": "type",
"values": [
{
"value": "article",
"relationType": "EQUALS"
},
{
"value": "document",
"relationType": "EQUALS"
}
]
},
{
"fieldName": "department",
"values": [
{
"value": "engineering",
"relationType": "EQUALS"
}
]
}
]
}
} | \ No newline at end of file diff --git a/docs/models/operations/SummarizeRequest.md b/docs/models/operations/SummarizeRequest.md new file mode 100644 index 00000000..19a2e3c6 --- /dev/null +++ b/docs/models/operations/SummarizeRequest.md @@ -0,0 +1,9 @@ +# SummarizeRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `summarizeRequest` | [SummarizeRequest](../../models/components/SummarizeRequest.md) | :heavy_check_mark: | Includes request params such as the query and specs of the documents to summarize. | \ No newline at end of file diff --git a/docs/models/operations/UnpinRequest.md b/docs/models/operations/UnpinRequest.md new file mode 100644 index 00000000..db2817f2 --- /dev/null +++ b/docs/models/operations/UnpinRequest.md @@ -0,0 +1,9 @@ +# UnpinRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `unpin` | [Unpin](../../models/components/Unpin.md) | :heavy_check_mark: | Details about the pin being unpinned. | \ No newline at end of file diff --git a/docs/models/operations/UpdateannouncementRequest.md b/docs/models/operations/UpdateannouncementRequest.md new file mode 100644 index 00000000..a990f61c --- /dev/null +++ b/docs/models/operations/UpdateannouncementRequest.md @@ -0,0 +1,9 @@ +# UpdateannouncementRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `updateAnnouncementRequest` | [UpdateAnnouncementRequest](../../models/components/UpdateAnnouncementRequest.md) | :heavy_check_mark: | Announcement content. Id need to be specified for the announcement. | \ No newline at end of file diff --git a/docs/models/operations/UpdateshortcutRequest.md b/docs/models/operations/UpdateshortcutRequest.md new file mode 100644 index 00000000..cd99d30b --- /dev/null +++ b/docs/models/operations/UpdateshortcutRequest.md @@ -0,0 +1,9 @@ +# UpdateshortcutRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `updateShortcutRequest` | [UpdateShortcutRequest](../../models/components/UpdateShortcutRequest.md) | :heavy_check_mark: | Shortcut content. Id need to be specified for the shortcut. | \ No newline at end of file diff --git a/docs/models/operations/UploadchatfilesRequest.md b/docs/models/operations/UploadchatfilesRequest.md index 9a4ec76f..b536e546 100644 --- a/docs/models/operations/UploadchatfilesRequest.md +++ b/docs/models/operations/UploadchatfilesRequest.md @@ -3,7 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `uploadChatFilesRequest` | [UploadChatFilesRequest](../../models/components/UploadChatFilesRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `uploadChatFilesRequest` | [UploadChatFilesRequest](../../models/components/UploadChatFilesRequest.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/VerifyRequest.md b/docs/models/operations/VerifyRequest.md new file mode 100644 index 00000000..87346483 --- /dev/null +++ b/docs/models/operations/VerifyRequest.md @@ -0,0 +1,9 @@ +# VerifyRequest + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `verifyRequest` | [VerifyRequest](../../models/components/VerifyRequest.md) | :heavy_check_mark: | Details about the verification request. | \ No newline at end of file diff --git a/docs/sdks/agents/README.md b/docs/sdks/agents/README.md index f8f133d4..936ef14d 100644 --- a/docs/sdks/agents/README.md +++ b/docs/sdks/agents/README.md @@ -45,10 +45,11 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `agentId` | *String* | :heavy_check_mark: | The ID of the agent. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `agentId` | *String* | :heavy_check_mark: | The ID of the agent. | ### Response @@ -95,10 +96,11 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `agentId` | *String* | :heavy_check_mark: | The ID of the agent. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `agentId` | *String* | :heavy_check_mark: | The ID of the agent. | ### Response diff --git a/docs/sdks/announcements/README.md b/docs/sdks/announcements/README.md index 075c3c70..99856d3f 100644 --- a/docs/sdks/announcements/README.md +++ b/docs/sdks/announcements/README.md @@ -35,1215 +35,988 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - CreateAnnouncementRequest req = CreateAnnouncementRequest.builder() - .startTime(OffsetDateTime.parse("2023-05-01T12:02:10.816Z")) - .endTime(OffsetDateTime.parse("2024-03-17T14:19:30.278Z")) - .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(843281L) - .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())) + CreateannouncementResponse res = sdk.client().announcements().create() + .createAnnouncementRequest(CreateAnnouncementRequest.builder() + .startTime(OffsetDateTime.parse("2023-05-01T12:02:10.816Z")) + .endTime(OffsetDateTime.parse("2024-03-17T14:19:30.278Z")) + .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(843281L) + .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(925801L) .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") + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) + .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())) - .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(843281L) - .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(), + 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(843281L) + .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(925801L) .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") + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) + .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())) - .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(843281L) - .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(), + 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(843281L) + .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(925801L) .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") + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(925801L) + .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(), - TextRange.builder() - .startIndex(925801L) + ChannelInviteInfo.builder() .build(), - TextRange.builder() - .startIndex(925801L) + ChannelInviteInfo.builder() .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())) + .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( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build(), + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + CustomFieldValue.of(CustomFieldValueStr.builder() + .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") + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .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( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - 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()) - .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() - .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() + .mentionedPeople(List.of( + Person.builder() .name("George Clooney") .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .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())) + .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()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + .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()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .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())) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .collections(List.of( - Collection.builder() - .name("") - .description("perfectly flustered dimly") - .id(83242L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .collections(List.of( + Collection.builder() + .name("") + .description("perfectly flustered dimly") + .id(83242L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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.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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(420359L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.VERIFIER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -1298,7 +1071,123 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(420359L) + .itemType(CollectionItemItemType.COLLECTION) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -1315,6 +1204,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -1349,121 +1242,523 @@ public class Application { .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() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(420359L) - .itemType(CollectionItemItemType.COLLECTION) - .createdBy(Person.builder() + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(420359L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(582012L) + .sharer(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -1476,14 +1771,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -1518,9 +1805,61 @@ public class Application { .build())) .build()) .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() @@ -1575,7 +1914,8 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .remindAt(785622L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -1626,347 +1966,226 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .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() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(582012L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build())) .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .badges(List.of( + Badge.builder() + .key("deployment_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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .remindAt(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .remindAt(785622L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .remindAt(785622L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - Reminder.builder() + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -2022,7 +2241,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(785622L) + .remindAt(269943L) .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -2036,10 +2255,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -2074,118 +2289,18 @@ public class Application { .build())) .build()) .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() + .build()) + .candidateVerifiers(List.of( + Person.builder() .name("George Clooney") .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .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()) - .badges(List.of( - Badge.builder() - .key("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(785622L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() + .build())) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -2240,8 +2355,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(269943L) - .requestor(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -2254,6 +2368,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -2288,20 +2410,361 @@ public class Application { .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) .build()) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .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.") + .structuredResult(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(843281L) + .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(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .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(843281L) + .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(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .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(843281L) + .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(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .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") @@ -2341,6 +2804,31 @@ public class Application { 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( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build(), + 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") @@ -2354,7 +2842,7 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .owner(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -2409,1265 +2897,441 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .mentionedPeople(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .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.") - .structuredResult(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(843281L) - .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())) + .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(), - 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())) + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .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") + .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())) - .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(843281L) - .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())) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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()) + .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(), - 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())) + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .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(843281L) - .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())) + .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(), - 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())) + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .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") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .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(), - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - 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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .mentionedPeople(List.of( - Person.builder() + .updatedBy(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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .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") - .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()) - .badges(List.of( - Badge.builder() - .key("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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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() + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .collections(List.of( - Collection.builder() - .name("") - .description("perfectly flustered dimly") - .id(83242L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .collections(List.of( + Collection.builder() + .name("") + .description("perfectly flustered dimly") + .id(83242L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), - 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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(420359L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -3684,10 +3348,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -3722,7 +3382,10 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -3773,178 +3436,11 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(420359L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.VERIFIER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -3999,189 +3495,21 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(582012L) - .sharer(Person.builder() + .creator(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -4194,6 +3522,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -4228,335 +3560,629 @@ public class Application { .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.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()) - .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() + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("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(785622L) - .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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(420359L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.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()) - .remindAt(785622L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(420359L) + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .remindAt(785622L) - .requestor(Person.builder() + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(582012L) + .sharer(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -4569,10 +4195,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -4608,8 +4230,11 @@ public class Application { .build()) .build()) .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() + .build()) + .verification(Verification.builder() + .state(State.DEPRECATED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -4622,14 +4247,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -4664,300 +4281,564 @@ public class Application { .build())) .build()) .build()) - .remindAt(269943L) - .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() - .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())) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .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") + .remindAt(785622L) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) .build()) - .build())) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(269943L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .candidateVerifiers(List.of( - Person.builder() + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.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())) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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() - .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())) - .build()) - .badges(List.of( - Badge.builder() - .key("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() + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .contactPerson(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -4973,52 +4854,7 @@ public class Application { 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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .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( + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -5053,84 +4889,125 @@ public class Application { .build())) .build()) .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() + .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())) + .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()) + .badges(List.of( + Badge.builder() + .key("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") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .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") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .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())) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -5143,10 +5020,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -5182,8 +5055,8 @@ public class Application { .build()) .build()) .build(), - AnswerLike.builder() - .user(Person.builder() + PersonToTeamRelationship.builder() + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -5196,10 +5069,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -5235,180 +5104,34 @@ public class Application { .build()) .build()) .build())) - .likedByUser(false) - .numLikes(572532L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .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() - .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() + .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(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() + .build())) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -5425,14 +5148,27 @@ public class Application { .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -5446,7 +5182,9 @@ public class Application { .build())) .build()) .build()) - .owner(Person.builder() + .build(), + AnswerLike.builder() + .user(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -5467,169 +5205,6 @@ public class Application { .datasource("github") .handle("") .build())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_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() .suggestions(List.of( QuerySuggestion.builder() @@ -5660,169 +5235,704 @@ public class Application { .build())) .build()) .build()) - .remindAt(785622L) - .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() + .build())) + .likedByUser(false) + .numLikes(572532L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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())) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .badges(List.of( + Badge.builder() + .key("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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .remindAt(785622L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - Reminder.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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") @@ -5878,7 +5988,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(785622L) + .remindAt(269943L) .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -5892,10 +6002,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -5930,9 +6036,25 @@ public class Application { .build())) .build()) .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .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() @@ -5949,6 +6071,53 @@ public class Application { .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()) + .badges(List.of( + Badge.builder() + .key("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("") @@ -5987,8 +6156,11 @@ public class Application { .build())) .build()) .build()) - .remindAt(269943L) - .requestor(Person.builder() + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .assignedTo(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -6035,252 +6207,133 @@ public class Application { .build())) .build()) .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + DatasourceProfile.builder() .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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("") + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .shares(List.of( + Share.builder() + .numDaysAgo(582012L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(582012L) - .sharer(Person.builder() + .verification(Verification.builder() + .state(State.DEPRECATED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -6327,278 +6380,335 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .remindAt(785622L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .remindAt(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .remindAt(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .remindAt(785622L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .remindAt(785622L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - Reminder.builder() + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -6654,7 +6764,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(785622L) + .remindAt(269943L) .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -6668,10 +6778,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -6706,1342 +6812,846 @@ public class Application { .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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") + .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(843281L) + .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(925801L) .build(), - ChannelInviteInfo.builder() + TextRange.builder() + .startIndex(925801L) .build(), - ChannelInviteInfo.builder() + TextRange.builder() + .startIndex(925801L) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .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()) - .remindAt(269943L) - .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() - .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(), + 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(843281L) + .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(925801L) .build(), - ChannelInviteInfo.builder() + TextRange.builder() + .startIndex(925801L) .build(), - ChannelInviteInfo.builder() + TextRange.builder() + .startIndex(925801L) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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") - .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(843281L) - .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())) + 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(843281L) + .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(925801L) .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(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .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(843281L) - .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())) + TextRange.builder() + .startIndex(925801L) .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") + TextRange.builder() + .startIndex(925801L) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) + .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())) - .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(843281L) - .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(925801L) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - TextRange.builder() - .startIndex(925801L) + ChannelInviteInfo.builder() .build(), - TextRange.builder() - .startIndex(925801L) + ChannelInviteInfo.builder() .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() + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) .build(), - ChannelInviteInfo.builder() + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) .build(), - ChannelInviteInfo.builder() + 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()) - .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( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - 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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .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()) - .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() + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.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()) - .updatedBy(Person.builder() + .build()) + .mentionedPeople(List.of( + Person.builder() .name("George Clooney") .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .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())) + .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()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .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()) - .collections(List.of( - Collection.builder() - .name("") - .description("perfectly flustered dimly") - .id(83242L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), - 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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .build())) .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(420359L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("perfectly flustered dimly") + .id(83242L) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -8058,10 +7668,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -8096,7 +7702,10 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -8147,178 +7756,10 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(420359L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -8335,10 +7776,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -8373,7 +7810,11 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.VERIFIER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -8390,6 +7831,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -8424,138 +7869,21 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(582012L) - .sharer(Person.builder() + .creator(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -8568,6 +7896,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -8602,170 +7934,629 @@ public class Application { .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.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()) - .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() + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .badges(List.of( + Badge.builder() + .key("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(420359L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .remindAt(785622L) - .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("") + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .build(), + CollectionItem.builder() + .collectionId(420359L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) .build(), - Reminder.builder() - .assignee(Person.builder() + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(582012L) + .sharer(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -8778,14 +8569,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -8820,60 +8603,387 @@ public class Application { .build())) .build()) .build()) - .remindAt(785622L) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .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()) + .badges(List.of( + Badge.builder() + .key("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(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - Reminder.builder() + .remindAt(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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") @@ -8929,7 +9039,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(785622L) + .remindAt(269943L) .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -8943,10 +9053,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -8981,9 +9087,18 @@ public class Application { .build())) .build()) .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -9038,8 +9153,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(269943L) - .requestor(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -9052,6 +9166,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -9086,132 +9208,256 @@ public class Application { .build())) .build()) .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.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())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() + .build()) + .build()) + .build()) + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .snippet("snippet") + .mimeType("mimeType") + .build())) + .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(127205L) + .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(127205L) + .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())) + .allClusteredResults(List.of( + ClusterGroup.builder() + .visibleCountHint(156570L) + .build(), + ClusterGroup.builder() + .visibleCountHint(156570L) + .build())) + .mustIncludeSuggestions(QuerySuggestionList.builder() + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -9232,23 +9478,6 @@ public class Application { .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -9263,857 +9492,590 @@ public class Application { .build()) .build()) .build()) - .build()) - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .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(127205L) - .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(127205L) - .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()) + .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()) - .build())) - .allClusteredResults(List.of( - ClusterGroup.builder() - .visibleCountHint(156570L) - .build(), - ClusterGroup.builder() - .visibleCountHint(156570L) - .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("") + .label("Mortimer's PRs") + .datasource("github") + .requestOptions(SearchRequestOptions.builder() + .facetBucketSize(974103L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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()) - .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(974103L) - .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()) + .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())) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") .build())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .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) + ChannelInviteInfo.builder() .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + ChannelInviteInfo.builder() .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())) - .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("rubric sadly clueless whoever torn rim coaxingly") - .id(690639L) - .audienceFilters(List.of( - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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() + .collection(Collection.builder() + .name("") + .description("rubric sadly clueless whoever torn rim coaxingly") + .id(690639L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - ChannelInviteInfo.builder() + 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(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .code(Code.builder() - .repoName("scio") - .fileName("README.md") - .lines(List.of( - CodeLine.builder() - .build())) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .lines(List.of( + CodeLine.builder() + .build())) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .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()) - .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("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) + .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("George Clooney") + .obfuscatedId("abc123") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) .build()) - .lastReminder(Reminder.builder() - .assignee(Person.builder() + .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())) + .badges(List.of( + Badge.builder() + .key("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() @@ -10151,1435 +10113,1083 @@ public class Application { .build())) .build()) .build()) - .remindAt(716571L) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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())) + .badges(List.of( + Badge.builder() + .key("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(716571L) + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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()) - .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") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_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(), - 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(843281L) - .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(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .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(843281L) - .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())) + .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(), - 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())) + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .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(843281L) - .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())) + 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(), - 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())) + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .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()))) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - 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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .mentionedPeople(List.of( - Person.builder() + .build()) + .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") - .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() - .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() + .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(843281L) + .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(925801L) .build(), - ChannelInviteInfo.builder() + TextRange.builder() + .startIndex(925801L) .build(), - ChannelInviteInfo.builder() + TextRange.builder() + .startIndex(925801L) .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()) - .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("") + .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())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + .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(843281L) + .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(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.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())) + .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(843281L) + .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(925801L) .build(), - ChannelInviteInfo.builder() + TextRange.builder() + .startIndex(925801L) .build(), - ChannelInviteInfo.builder() + TextRange.builder() + .startIndex(925801L) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .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(), - 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) + .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())) - .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() + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .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") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(), + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build(), + 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()) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + .build()) + .badges(List.of( + Badge.builder() + .key("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()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .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())) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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("perfectly flustered dimly") - .id(83242L) - .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() + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .build()) + .build(), + PinDocument.builder() + .documentId("") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .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()) - .items(List.of( - CollectionItem.builder() - .collectionId(420359L) - .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() + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() + ChannelInviteInfo.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()) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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("perfectly flustered dimly") + .id(83242L) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -11596,10 +11206,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -11634,7 +11240,10 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -11685,178 +11294,10 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(420359L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -11873,10 +11314,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -11911,7 +11348,11 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.VERIFIER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -11928,6 +11369,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -11962,566 +11407,21 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(582012L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(785622L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(785622L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(785622L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() + .creator(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -12538,10 +11438,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -12576,8 +11472,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(269943L) - .requestor(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -12624,860 +11519,665 @@ public class Application { .build())) .build()) .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .items(List.of( + CollectionItem.builder() + .collectionId(420359L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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.") - .structuredResult(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(843281L) - .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) + .shortcut(Shortcut.builder() + .inputAlias("") + .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(), - 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())) + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") .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())) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .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(843281L) - .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()) + .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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .build())) - .facetFilterSets(List.of( - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) + 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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + DatasourceProfile.builder() + .datasource("github") + .handle("") .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(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .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") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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(843281L) - .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(), + CollectionItem.builder() + .collectionId(420359L) + .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() + .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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) + 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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .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())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(582012L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) + .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())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) .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()))) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - 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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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() + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .build())) .build()) .badges(List.of( @@ -13493,126 +12193,9 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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("perfectly flustered dimly") - .id(83242L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -13629,6 +12212,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -13663,10 +12250,8 @@ public class Application { .build())) .build()) .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() + .remindAt(785622L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -13718,9 +12303,8 @@ public class Application { .build()) .build()) .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() + Reminder.builder() + .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -13740,7 +12324,11 @@ public class Application { DatasourceProfile.builder() .datasource("github") .handle("") - .build())) + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) .querySuggestions(QuerySuggestionList.builder() .suggestions(List.of( QuerySuggestion.builder() @@ -13771,11 +12359,61 @@ public class Application { .build())) .build()) .build()) - .build())) - .removedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VERIFIER) - .person(Person.builder() + .remindAt(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() @@ -13830,21 +12468,175 @@ public class Application { .build())) .build()) .build()) + .remindAt(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(269943L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) - .creator(Person.builder() + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -13861,6 +12653,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -13908,6 +12704,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -13942,1010 +12746,574 @@ public class Application { .build())) .build()) .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(420359L) - .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())) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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.") + .structuredResult(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(843281L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .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()) - .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() - .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() + .label("Mortimer's PRs") + .datasource("github") + .requestOptions(SearchRequestOptions.builder() + .facetBucketSize(843281L) + .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(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .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() - .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())) + .facetFilterSets(List.of( + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - ChannelInviteInfo.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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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())) - .build()) - .build(), - CollectionItem.builder() - .collectionId(420359L) - .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())) .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .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()) - .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() - .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() + .label("Mortimer's PRs") + .datasource("github") + .requestOptions(SearchRequestOptions.builder() + .facetBucketSize(843281L) + .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(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .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() - .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())) + .facetFilterSets(List.of( + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - ChannelInviteInfo.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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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())) - .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() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(582012L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + .build())) .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .ranges(List.of( + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .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("") + .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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(785622L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(), + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build(), + 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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) - .build()) - .remindAt(785622L) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("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(785622L) - .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("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.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())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() + .build()) + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -15000,8 +13368,23 @@ public class Application { .build())) .build()) .build()) - .remindAt(269943L) - .requestor(Person.builder() + .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() @@ -15014,6 +13397,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -15048,252 +13439,63 @@ public class Application { .build())) .build()) .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .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()) - .badges(List.of( - Badge.builder() - .key("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() + .assignedTo(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -15309,52 +13511,11 @@ public class Application { 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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .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( + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -15389,9 +13550,7 @@ public class Application { .build())) .build()) .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -15404,6 +13563,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -15438,566 +13605,247 @@ public class Application { .build())) .build()) .build()) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .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())) - .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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .collections(List.of( + Collection.builder() + .name("") + .description("perfectly flustered dimly") + .id(83242L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) - .likedByUser(false) - .numLikes(572532L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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())) - .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()) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build())) .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .badges(List.of( + Badge.builder() + .key("deployment_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(), + 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()) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build())) .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() - .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .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())) + .audienceFilters(List.of( + 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()) - .remindAt(785622L) - .requestor(Person.builder() + .build())) + .creator(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -16048,9 +13896,7 @@ public class Application { .build())) .build()) .build()) - .build(), - Reminder.builder() - .assignee(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -16063,14 +13909,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -16105,570 +13943,634 @@ public class Application { .build())) .build()) .build()) - .remindAt(785622L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) + .items(List.of( + CollectionItem.builder() + .collectionId(420359L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - ChannelInviteInfo.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .build(), + CollectionItem.builder() + .collectionId(420359L) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) .build()) - .build())) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(582012L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(785622L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(269943L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(582012L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() + .build())) + .build()) + .verification(Verification.builder() + .state(State.DEPRECATED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -17155,41 +15057,159 @@ public class Application { .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() - .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() + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) .badges(List.of( @@ -17207,273 +15227,76 @@ public class Application { .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() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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") - .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(843281L) - .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(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .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(843281L) - .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(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .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(843281L) - .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(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build(), - TextRange.builder() - .startIndex(925801L) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) - .build())) .metadata(PersonMetadata.builder() .type(PersonMetadataType.FULL_TIME) .title("Actor") @@ -17484,14 +15307,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -17513,31 +15328,6 @@ public class Application { 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( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - 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") @@ -17551,7 +15341,9 @@ public class Application { .build())) .build()) .build()) - .owner(Person.builder() + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -17567,11 +15359,52 @@ public class Application { DatasourceProfile.builder() .datasource("github") .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .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("") @@ -17606,130 +15439,339 @@ public class Application { .build())) .build()) .build()) - .mentionedPeople(List.of( - Person.builder() + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .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())) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(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() + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .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") - .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()) - .badges(List.of( - Badge.builder() - .key("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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() + .build()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(572532L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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())) + .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()) + .badges(List.of( + Badge.builder() + .key("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())) + .badges(List.of( + Badge.builder() .key("deployment_name_new_hire") .displayName("New hire") .iconConfig(IconConfig.builder() @@ -17741,23 +15783,166 @@ public class Application { .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() + .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())) + .badges(List.of( + Badge.builder() + .key("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())) + .badges(List.of( + Badge.builder() + .key("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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_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() @@ -17812,7 +15997,61 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .remindAt(785622L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() @@ -17867,358 +16106,61 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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("perfectly flustered dimly") - .id(83242L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) + .remindAt(785622L) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .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(), - 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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) - .badges(List.of( - Badge.builder() - .key("deployment_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() + .build()) + .build()) + .build(), + Reminder.builder() + .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -18235,6 +16177,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -18269,7 +16215,8 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .remindAt(785622L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -18282,6 +16229,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -18316,288 +16267,458 @@ public class Application { .build())) .build()) .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(420359L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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()) + .remindAt(269943L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(582012L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .build())) .build()) - .build(), - CollectionItem.builder() - .collectionId(420359L) - .itemType(CollectionItemItemType.COLLECTION) - .createdBy(Person.builder() + .badges(List.of( + Badge.builder() + .key("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() @@ -18652,438 +16773,43 @@ public class Application { .build())) .build()) .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() + .remindAt(785622L) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(582012L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(785622L) - .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() - .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() + ChannelInviteInfo.builder() .build())) .build()) .badges(List.of( @@ -19430,120 +17156,6 @@ public class Application { .build())) .build()) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .build())) .customData(Map.ofEntries( Map.entry("someCustomField", CustomDataValue.builder() .build()))) @@ -19560,10 +17172,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -19600,821 +17208,668 @@ public class Application { .build()) .build()) .build()) - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .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(127205L) - .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()) + .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") + .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(843281L) + .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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + 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())) + .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(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) + .build()) .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) + 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(843281L) + .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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + 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())) + .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(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .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(127205L) - .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) + 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(843281L) + .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())) - .build())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) + .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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + 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())) - .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) + .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())) - .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(156570L) - .build(), - ClusterGroup.builder() - .visibleCountHint(156570L) - .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_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(974103L) - .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()) + .ranges(List.of( + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build(), + TextRange.builder() + .startIndex(925801L) + .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) + .build()) .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) + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .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())) - .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .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) + ChannelInviteInfo.builder() .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + ChannelInviteInfo.builder() .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())) - .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()) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) .build(), - ChannelInviteInfo.builder() + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) .build(), - ChannelInviteInfo.builder() + 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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("rubric sadly clueless whoever torn rim coaxingly") - .id(690639L) - .audienceFilters(List.of( - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .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("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + .mentionedPeople(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() + .assignedTo(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -20439,6 +17894,23 @@ public class Application { .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -20452,5776 +17924,69 @@ public class Application { .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() .build())) .build()) - .build()) - .remindAt(716571L) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .badges(List.of( - Badge.builder() - .key("deployment_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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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()) - .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") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_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()) - .audienceFilters(List.of( - 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(); - - if (res.announcement().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `request` | [CreateAnnouncementRequest](../../models/shared/CreateAnnouncementRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[CreateannouncementResponse](../../models/operations/CreateannouncementResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## delete - -Delete an existing user-generated announcement. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.DeleteAnnouncementRequest; -import com.glean.api_client.glean_api_client.models.operations.DeleteannouncementResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - DeleteAnnouncementRequest req = DeleteAnnouncementRequest.builder() - .id(458809L) - .build(); - - DeleteannouncementResponse res = sdk.client().announcements().delete() - .request(req) - .call(); - - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `request` | [DeleteAnnouncementRequest](../../models/shared/DeleteAnnouncementRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[DeleteannouncementResponse](../../models/operations/DeleteannouncementResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## update - -Update a textual announcement visible to some set of users based on department and location. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.UpdateannouncementResponse; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - UpdateAnnouncementRequest req = UpdateAnnouncementRequest.builder() - .startTime(OffsetDateTime.parse("2023-10-24T01:53:24.440Z")) - .endTime(OffsetDateTime.parse("2024-10-30T07:24:12.087Z")) - .title("") - .id(602589L) - .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(469542L) - .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(804377L) - .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(469542L) - .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(804377L) - .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(469542L) - .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(804377L) - .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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(650669L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(829579L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(530278L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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.") - .structuredResult(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(469542L) - .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(804377L) - .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(469542L) - .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(804377L) - .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(469542L) - .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(804377L) - .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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .roles(List.of( + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("perfectly flustered dimly") + .id(83242L) + .addedRoles(List.of( UserRoleSpecification.builder() - .role(UserRole.EDITOR) + .role(UserRole.ANSWER_MODERATOR) .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -26235,6 +18000,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -26271,7 +18040,7 @@ public class Application { .build()) .build(), UserRoleSpecification.builder() - .role(UserRole.EDITOR) + .role(UserRole.ANSWER_MODERATOR) .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -26285,6 +18054,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -26321,7 +18094,7 @@ public class Application { .build()) .build(), UserRoleSpecification.builder() - .role(UserRole.EDITOR) + .role(UserRole.ANSWER_MODERATOR) .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -26335,6 +18108,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -26370,173 +18147,9 @@ public class Application { .build()) .build()) .build())) - .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .roles(List.of( + .removedRoles(List.of( UserRoleSpecification.builder() - .role(UserRole.EDITOR) + .role(UserRole.VERIFIER) .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -26553,103 +18166,11 @@ public class Application { 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()) - .badges(List.of( - Badge.builder() - .key("deployment_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( + .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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( + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -26685,69 +18206,20 @@ public class Application { .build()) .build()) .build())) - .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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() - .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() + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build())) + .creator(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -26760,6 +18232,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -26807,14 +18283,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -26849,60 +18317,11 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() + .items(List.of( + CollectionItem.builder() + .collectionId(420359L) + .itemType(CollectionItemItemType.COLLECTION) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -26918,53 +18337,11 @@ public class Application { 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()) - .badges(List.of( - Badge.builder() - .key("deployment_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( + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -26999,568 +18376,575 @@ public class Application { .build())) .build()) .build()) - .build())) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) - .audienceFilters(List.of( - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - ChannelInviteInfo.builder() + CollectionItem.builder() + .collectionId(420359L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .badges(List.of( - Badge.builder() - .key("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(297273L) - .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())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(582012L) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .updatedBy(Person.builder() + .build())) + .build()) + .verification(Verification.builder() + .state(State.DEPRECATED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -27573,14 +18957,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -27615,10 +18991,65 @@ public class Application { .build())) .build()) .build()) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(785622L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -27631,6 +19062,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -27666,9 +19101,64 @@ public class Application { .build()) .build()) .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(785622L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -27681,6 +19171,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -27716,9 +19210,64 @@ public class Application { .build()) .build()) .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(785622L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -27733,100 +19282,157 @@ public class Application { .datasourceProfile(List.of( DatasourceProfile.builder() .datasource("github") - .handle("") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(269943L) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) .build()) - .shortcut(Shortcut.builder() + .build()) + .shortcuts(List.of( + Shortcut.builder() .inputAlias("") .createdBy(Person.builder() .name("George Clooney") @@ -27841,6 +19447,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -27930,163 +19544,878 @@ public class Application { .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())) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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") + .snippets(List.of( + SearchResultSnippet.builder() + .snippet("snippet") + .mimeType("mimeType") + .build())) + .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(127205L) + .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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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())) .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("") + 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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(127205L) + .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())) + .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())) + .allClusteredResults(List.of( + ClusterGroup.builder() + .visibleCountHint(156570L) + .build(), + ClusterGroup.builder() + .visibleCountHint(156570L) + .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(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("deployment_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(974103L) + .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())) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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("rubric sadly clueless whoever torn rim coaxingly") + .id(690639L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - CollectionItem.builder() - .collectionId(297273L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .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("George Clooney") + .obfuscatedId("abc123") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("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())) + .badges(List.of( + Badge.builder() + .key("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())) + .badges(List.of( + Badge.builder() + .key("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())) + .badges(List.of( + Badge.builder() + .key("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() @@ -28111,23 +20440,6 @@ public class Application { .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -28141,9 +20453,8 @@ public class Application { .build())) .build()) .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .lastReminder(Reminder.builder() + .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -28156,27 +20467,18 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -28190,7 +20492,8 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .remindAt(716571L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -28215,23 +20518,6 @@ public class Application { .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -28243,241 +20529,907 @@ public class Application { .name("user") .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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()) + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) + .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") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("deployment_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()) + .audienceFilters(List.of( + 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()) + .call(); + + if (res.announcement().isPresent()) { + // handle response + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `createAnnouncementRequest` | [CreateAnnouncementRequest](../../models/components/CreateAnnouncementRequest.md) | :heavy_check_mark: | Announcement content | + +### Response + +**[CreateannouncementResponse](../../models/operations/CreateannouncementResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## delete + +Delete an existing user-generated announcement. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.DeleteAnnouncementRequest; +import com.glean.api_client.glean_api_client.models.operations.DeleteannouncementResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + DeleteannouncementResponse res = sdk.client().announcements().delete() + .deleteAnnouncementRequest(DeleteAnnouncementRequest.builder() + .id(458809L) + .build()) + .call(); + + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `deleteAnnouncementRequest` | [DeleteAnnouncementRequest](../../models/components/DeleteAnnouncementRequest.md) | :heavy_check_mark: | Delete announcement request | + +### Response + +**[DeleteannouncementResponse](../../models/operations/DeleteannouncementResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## update + +Update a textual announcement visible to some set of users based on department and location. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.operations.UpdateannouncementResponse; +import java.lang.Exception; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + UpdateannouncementResponse res = sdk.client().announcements().update() + .updateAnnouncementRequest(UpdateAnnouncementRequest.builder() + .startTime(OffsetDateTime.parse("2023-10-24T01:53:24.440Z")) + .endTime(OffsetDateTime.parse("2024-10-30T07:24:12.087Z")) + .title("") + .id(602589L) + .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(469542L) + .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(804377L) + .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(469542L) + .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()) + .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("") + 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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(804377L) + .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(469542L) + .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()) + .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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())) + .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(804377L) + .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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(650669L) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() + .build()) + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -28524,9 +21476,118 @@ public class Application { .build())) .build()) .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -28543,6 +21604,56 @@ public class Application { .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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("") @@ -28581,8 +21692,10 @@ public class Application { .build())) .build()) .build()) - .remindAt(829579L) - .requestor(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -28634,130 +21747,195 @@ public class Application { .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .remindAt(530278L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") .build())) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .createdBy(Person.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())) + .creator(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -28817,10 +21995,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -28855,933 +22029,1309 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(), - 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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .items(List.of( + CollectionItem.builder() + .collectionId(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .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())) - .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())) - .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() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - ChannelInviteInfo.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - ChannelInviteInfo.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .build(), + CollectionItem.builder() + .collectionId(297273L) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .build())) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - ChannelInviteInfo.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - ChannelInviteInfo.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .build(), + CollectionItem.builder() + .collectionId(297273L) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) .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() - .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())) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) - .likedByUser(true) - .numLikes(612008L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) + .build())) + .build(), + Collection.builder() + .name("") + .description("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .remindAt(829579L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() + .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() @@ -29794,14 +23344,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -29836,8 +23378,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(530278L) - .requestor(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -29850,14 +23391,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -29892,255 +23425,326 @@ public class Application { .build())) .build()) .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .items(List.of( + CollectionItem.builder() + .collectionId(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .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()) + .badges(List.of( + Badge.builder() + .key("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") - .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(650669L) - .sharer(Person.builder() + CollectionItem.builder() + .collectionId(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -30153,6 +23757,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -30187,61 +23799,324 @@ public class Application { .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("") + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .build(), + CollectionItem.builder() + .collectionId(297273L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -30254,14 +24129,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -30296,8 +24163,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(829579L) - .requestor(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -30314,6 +24180,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -30348,494 +24218,239 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .remindAt(530278L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .candidateVerifiers(List.of( + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .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") - .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(469542L) - .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(804377L) - .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(469542L) - .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(804377L) - .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(469542L) - .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(804377L) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) - .build()) - .build()) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .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") + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(650669L) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .customFields(List.of( - 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() + .build())) + .build()) + .verification(Verification.builder() + .state(State.UNVERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -30848,14 +24463,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -30890,32 +24497,9 @@ public class Application { .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() + .reminders(List.of( + Reminder.builder() + .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -30928,6 +24512,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -30962,7 +24554,8 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .remindAt(829579L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -30975,6 +24568,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -31009,118 +24606,131 @@ public class Application { .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .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() + .build()) + .remindAt(530278L) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .build())) - .assignedTo(Person.builder() + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -31184,10 +24794,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -31222,1632 +24828,1295 @@ public class Application { .build())) .build()) .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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.") + .structuredResult(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(469542L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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()) - .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(), + 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(804377L) + .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(469542L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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()) - .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(), + 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(804377L) + .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(469542L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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()) - .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) + 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(804377L) + .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())) - .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() + .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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .build())) .build()) - .build()) - .items(List.of( - CollectionItem.builder() - .collectionId(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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()) + .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() + .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(), - CollectionItem.builder() - .collectionId(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .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(), - CollectionItem.builder() - .collectionId(297273L) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() .build())) .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), + 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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .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.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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) + DatasourceProfile.builder() + .datasource("github") + .handle("") .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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() + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(), + 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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") .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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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())) - .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() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(297273L) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.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(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -32860,14 +26129,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -32902,10 +26163,7 @@ public class Application { .build())) .build()) .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -32960,118 +26218,219 @@ public class Application { .build())) .build()) .build()) - .build())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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() - .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(), + CollectionItem.builder() + .collectionId(297273L) + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .items(List.of( - CollectionItem.builder() - .collectionId(297273L) - .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -33085,14 +26444,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -33127,267 +26478,7 @@ public class Application { .build())) .build()) .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(297273L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -33442,266 +26533,219 @@ public class Application { .build())) .build()) .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.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()) - .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() + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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())) + .build()) + .build(), + CollectionItem.builder() + .collectionId(297273L) + .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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) .build())) .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .itemType(CollectionItemItemType.TEXT) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -33715,14 +26759,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -33757,291 +26793,669 @@ public class Application { .build())) .build()) .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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())) + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(650669L) - .sharer(Person.builder() + .build()) + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -34054,6 +27468,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -34088,61 +27510,9 @@ public class Application { .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())) - .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()) - .badges(List.of( - Badge.builder() - .key("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() + .shortcut(Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -34155,14 +27525,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -34197,8 +27559,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(829579L) - .requestor(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -34215,6 +27576,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -34249,9 +27614,163 @@ public class Application { .build())) .build()) .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -34306,8 +27825,267 @@ public class Application { .build())) .build()) .build()) - .remindAt(530278L) - .requestor(Person.builder() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -34339,939 +28117,361 @@ public class Application { .label("Mortimer's PRs") .datasource("github") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.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()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .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(189287L) - .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(189287L) - .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()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .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(801275L) - .build(), - ClusterGroup.builder() - .visibleCountHint(801275L) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .build()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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(917105L) - .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() - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .build()) - .collection(Collection.builder() - .name("") - .description("event while eventually dutiful middle") - .id(56361L) - .audienceFilters(List.of( - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) - .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() + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) .build(), - ChannelInviteInfo.builder() + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) .build(), - ChannelInviteInfo.builder() + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) .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()) - .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("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .shares(List.of( + Share.builder() + .numDaysAgo(650669L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) .verification(Verification.builder() .state(State.UNVERIFIED) @@ -35293,6 +28493,23 @@ public class Application { .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -35306,6 +28523,116 @@ public class Application { .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(829579L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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") @@ -35332,6 +28659,23 @@ public class Application { .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -35345,7 +28689,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(735135L) + .remindAt(530278L) .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -35363,10 +28707,31 @@ public class Application { .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -35381,151 +28746,119 @@ public class Application { .build()) .build()) .build()) - .build()) - .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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())) - .badges(List.of( - Badge.builder() - .key("deployment_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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() @@ -35572,15 +28905,8 @@ public class Application { .build())) .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())) + .build()) + .build()) .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -35594,10 +28920,31 @@ public class Application { .photoUrl("https://example.com/george.jpg") .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -35611,742 +28958,829 @@ public class Application { .build())) .build()) .build()) - .build()) - .build()) - .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") - .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(469542L) - .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())) + .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(), - 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())) + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(804377L) - .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(469542L) - .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())) + 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(), - 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())) + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(804377L) - .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(469542L) - .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())) + 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(), - 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())) + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(804377L) - .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() + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .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(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of()) + .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())) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .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") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(612008L) .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .mentionedPeople(List.of( - Person.builder() + .updatedBy(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() + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .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") - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) + .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())) + .badges(List.of( + Badge.builder() + .key("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())) + .badges(List.of( + Badge.builder() + .key("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())) + .badges(List.of( + Badge.builder() + .key("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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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() - .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()) .build()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) + .remindAt(829579L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .badges(List.of( - Badge.builder() - .key("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("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() + .lastReminder(Reminder.builder() + .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -36363,6 +29797,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -36397,10 +29835,8 @@ public class Application { .build())) .build()) .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() + .remindAt(530278L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -36417,6 +29853,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -36451,183 +29891,892 @@ public class Application { .build())) .build()) .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() + .build()) + .candidateVerifiers(List.of( + Person.builder() .name("George Clooney") .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .badges(List.of( + Badge.builder() + .key("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() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(650669L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) .build()) - .build())) + .build()) + .remindAt(829579L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(530278L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - UserRoleSpecification.builder() - .role(UserRole.ANSWER_MODERATOR) - .person(Person.builder() + .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") + .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(469542L) + .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(804377L) + .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(469542L) + .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(804377L) + .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(469542L) + .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(804377L) + .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) + .build()) + .build())) .metadata(PersonMetadata.builder() .type(PersonMetadataType.FULL_TIME) .title("Actor") @@ -36642,10 +30791,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -36667,6 +30812,15 @@ public class Application { ChannelInviteInfo.builder() .build())) .build()) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of()) + .build(), + CustomFieldData.builder() + .label("") + .values(List.of()) + .build())) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -36680,119 +30834,7 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(297273L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() + .owner(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -36847,267 +30889,284 @@ public class Application { .build())) .build()) .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .mentionedPeople(List.of( + Person.builder() .name("George Clooney") .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .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())) + .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(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(297273L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -37162,1195 +31221,2826 @@ public class Application { .build())) .build()) .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .collections(List.of( + Collection.builder() + .name("") + .description("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .items(List.of( + CollectionItem.builder() + .collectionId(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .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") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build(), + CollectionItem.builder() + .collectionId(297273L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build(), + CollectionItem.builder() + .collectionId(297273L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .build(), + Collection.builder() + .name("") + .description("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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("") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) - .audienceFilters(List.of( - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(297273L) - .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("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .audienceFilters(List.of( + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) + .items(List.of( + CollectionItem.builder() + .collectionId(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .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(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .build())) - .build()) - .build()) - .roles(List.of( - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(650669L) + .sharer(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -38397,10 +34087,170 @@ public class Application { .build())) .build()) .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(829579L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() @@ -38413,6 +34263,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -38447,10 +34305,8 @@ public class Application { .build())) .build()) .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.EDITOR) - .person(Person.builder() + .remindAt(530278L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -38463,6 +34319,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -38474,36 +34338,451 @@ public class Application { .label("Mortimer's PRs") .datasource("github") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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") + .snippets(List.of( + SearchResultSnippet.builder() + .snippet("snippet") + .mimeType("mimeType") + .build())) + .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(189287L) + .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(189287L) + .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(), - ChannelInviteInfo.builder() + 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(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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())) + .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(801275L) + .build(), + ClusterGroup.builder() + .visibleCountHint(801275L) + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) .build())) .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() + .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(917105L) + .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() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -38558,371 +34837,445 @@ public class Application { .build())) .build()) .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.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())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("event while eventually dutiful middle") + .id(56361L) + .audienceFilters(List.of( + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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()) + .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("George Clooney") + .obfuscatedId("abc123") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) + DatasourceProfile.builder() + .datasource("github") + .handle("") .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) .build())) .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) - .badges(List.of( - Badge.builder() - .key("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() + .build())) + .build()) + .build()) + .verification(Verification.builder() + .state(State.UNVERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -38935,35 +35288,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -38977,187 +35305,126 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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())) + .badges(List.of( + Badge.builder() + .key("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(735135L) + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("deployment_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() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(650669L) - .sharer(Person.builder() + .build()) + .build()) + .build()) + .roles(List.of( + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -39204,170 +35471,10 @@ public class Application { .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())) - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(829579L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -39380,14 +35487,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -39422,8 +35521,10 @@ public class Application { .build())) .build()) .build()) - .remindAt(530278L) - .requestor(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.EDITOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -39436,14 +35537,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -39478,170 +35571,50 @@ public class Application { .build())) .build()) .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) + .build())) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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.") - .structuredResult(StructuredResult.builder() + .build(), + StructuredTextItem.builder() + .link("https://en.wikipedia.org/wiki/Diffuse_sky_radiation") .document(Document.builder() .metadata(DocumentMetadata.builder() .datasource("datasource") @@ -40798,23 +36771,338 @@ public class Application { .build(), ChannelInviteInfo.builder() .build(), - ChannelInviteInfo.builder() + ChannelInviteInfo.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()) + .items(List.of( + CollectionItem.builder() + .collectionId(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .badges(List.of( - Badge.builder() - .key("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( + .build(), CollectionItem.builder() .collectionId(297273L) .itemType(CollectionItemItemType.TEXT) @@ -41341,110 +37629,561 @@ public class Application { .build()) .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), + Collection.builder() + .name("") + .description("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) + ChannelInviteInfo.builder() .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) + ChannelInviteInfo.builder() .build())) .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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(297273L) .itemType(CollectionItemItemType.TEXT) @@ -41759,179 +38498,11 @@ public class Application { .build()) .build())) .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() + CollectionItem.builder() + .collectionId(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -41986,231 +38557,263 @@ public class Application { .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .shortcut(Shortcut.builder() + .inputAlias("") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .audienceFilters(List.of( - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - ChannelInviteInfo.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - ChannelInviteInfo.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .badges(List.of( - Badge.builder() - .key("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( + .build(), CollectionItem.builder() .collectionId(297273L) .itemType(CollectionItemItemType.TEXT) @@ -42525,11 +39128,192 @@ public class Application { .build()) .build())) .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(650669L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(829579L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -42546,10 +39330,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -42584,324 +39364,1014 @@ public class Application { .build())) .build()) .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) + .build())) + .build()) + .build()) + .remindAt(530278L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) - .badges(List.of( - Badge.builder() - .key("deployment_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()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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.") + .structuredResult(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()) - .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() - .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() + .label("Mortimer's PRs") + .datasource("github") + .requestOptions(SearchRequestOptions.builder() + .facetBucketSize(469542L) + .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(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .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() - .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())) + .facetFilterSets(List.of( + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - ChannelInviteInfo.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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - ChannelInviteInfo.builder() + 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(804377L) + .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(469542L) + .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(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + .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()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(804377L) + .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(469542L) + .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(), - ChannelInviteInfo.builder() + 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(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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())) + .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(804377L) + .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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) .build())) .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), + 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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .build())) .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -42914,6 +40384,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -42948,7 +40422,10 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -42965,6 +40442,56 @@ public class Application { .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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("") @@ -43003,397 +40530,196 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(650669L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .remindAt(829579L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() + .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() @@ -43409,11 +40735,50 @@ public class Application { DatasourceProfile.builder() .datasource("github") .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), + .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()) + .badges(List.of( + Badge.builder() + .key("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("") @@ -43445,883 +40810,1312 @@ public class Application { .iconType(IconType.GLYPH) .name("user") .build()) - .build())) - .build()) - .build()) - .remindAt(530278L) - .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() - .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()) + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - ChannelInviteInfo.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - ChannelInviteInfo.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .build(), + CollectionItem.builder() + .collectionId(297273L) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) .build()) - .build())) - .build()) - .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(), - 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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") .build()) - .build())) - .build()) - .build()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .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())) - .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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + Collection.builder() + .name("") + .description("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) - .likedByUser(true) - .numLikes(612008L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .assignedTo(Person.builder() + .build())) + .creator(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -44334,14 +42128,27 @@ public class Application { .photoUrl("https://example.com/george.jpg") .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -44372,6 +42179,23 @@ public class Application { .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -44385,493 +42209,953 @@ public class Application { .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .items(List.of( + CollectionItem.builder() + .collectionId(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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() - .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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - ChannelInviteInfo.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - ChannelInviteInfo.builder() + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .build(), + CollectionItem.builder() + .collectionId(297273L) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) .build()) - .build())) - .build()) - .build()) - .remindAt(829579L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(530278L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + CollectionItem.builder() + .collectionId(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) + .build())) .interactions(DocumentInteractions.builder() .reacts(List.of( Reaction.builder() @@ -45227,6 +43511,108 @@ public class Application { .build())) .build()) .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .build())) .customData(Map.ofEntries( Map.entry("someCustomField", CustomDataValue.builder() .build()))) @@ -45243,14 +43629,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -45287,255 +43665,133 @@ public class Application { .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() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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") - .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(469542L) - .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(804377L) - .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") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(469542L) - .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(804377L) - .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") + .handle("") + .build(), + DatasourceProfile.builder() .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(469542L) - .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(804377L) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), + PersonToTeamRelationship.builder() + .person(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .metadata(PersonMetadata.builder() .type(PersonMetadataType.FULL_TIME) .title("Actor") @@ -45571,15 +43827,6 @@ public class Application { ChannelInviteInfo.builder() .build())) .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of()) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .build())) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -45593,7 +43840,9 @@ public class Application { .build())) .build()) .build()) - .owner(Person.builder() + .build(), + PersonToTeamRelationship.builder() + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -45613,7 +43862,344 @@ public class Application { DatasourceProfile.builder() .datasource("github") .handle("") - .build(), + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .build())) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .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())) + .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())) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(612008L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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("") @@ -45626,54 +44212,115 @@ public class Application { .datasource("github") .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build())) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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())) + .badges(List.of( + Badge.builder() + .key("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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .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()) - .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() + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .assignedTo(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -45686,27 +44333,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -45737,23 +44371,6 @@ public class Application { .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -45767,23 +44384,52 @@ public class Application { .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() + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_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() @@ -45796,6 +44442,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -45830,7 +44484,8 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .remindAt(829579L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -45843,6 +44498,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -45878,7 +44537,137 @@ public class Application { .build()) .build()) .build())) - .assignedTo(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(530278L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) + .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() @@ -45925,7 +44714,62 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() @@ -45977,18 +44821,184 @@ public class Application { .iconType(IconType.GLYPH) .name("user") .build()) - .build())) - .build()) - .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(List.of( - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(650669L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) + .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()) + .badges(List.of( + Badge.builder() + .key("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() @@ -46005,6 +45015,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -46039,10 +45053,8 @@ public class Application { .build())) .build()) .build()) - .build(), - UserRoleSpecification.builder() - .role(UserRole.VIEWER) - .person(Person.builder() + .remindAt(829579L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -46093,767 +45105,889 @@ public class Application { .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .remindAt(530278L) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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") + .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(469542L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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(804377L) + .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(469542L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(804377L) + .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(469542L) + .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(804377L) + .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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") .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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .build()) + .build(), + PinDocument.builder() + .documentId("") + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.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()) - .items(List.of( - CollectionItem.builder() - .collectionId(297273L) - .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() + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() .build())) .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .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(), - CollectionItem.builder() - .collectionId(297273L) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() .build())) .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) - .updatedBy(Person.builder() + .build())) + .build()) + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -46870,10 +46004,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -46908,220 +46038,10 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -47134,6 +46054,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -47168,7 +46092,10 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -47185,10 +46112,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -47214,679 +46137,302 @@ public class Application { Badge.builder() .key("deployment_name_new_hire") .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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.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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() .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() - .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() + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.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()) - .items(List.of( - CollectionItem.builder() - .collectionId(297273L) - .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() + .querySuggestions(QuerySuggestionList.builder() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .shortcut(Shortcut.builder() - .inputAlias("") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(297273L) + .itemType(CollectionItemItemType.TEXT) .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -47900,6 +46446,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -47934,7 +46488,267 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -47989,220 +46803,866 @@ public class Application { .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() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build())) + .build()) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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("") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -48215,6 +47675,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -48249,7 +47717,119 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -48304,219 +47884,266 @@ public class Application { .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() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .shortcut(Shortcut.builder() - .inputAlias("") + .build(), + CollectionItem.builder() + .collectionId(297273L) + .itemType(CollectionItemItemType.TEXT) .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -48530,6 +48157,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -48564,7 +48199,267 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -48619,187 +48514,343 @@ public class Application { .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() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .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() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .build())) + .build()) .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(650669L) + .sharer(Person.builder() .name("George Clooney") .obfuscatedId("abc123") - .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(650669L) - .sharer(Person.builder() + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() @@ -48837,69 +48888,126 @@ public class Application { Badge.builder() .key("deployment_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())) - .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() + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .reminders(List.of( - Reminder.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(829579L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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") @@ -48955,7 +49063,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(829579L) + .remindAt(530278L) .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -48973,6 +49081,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -49007,9 +49119,18 @@ public class Application { .build())) .build()) .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -49022,14 +49143,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -49064,8 +49177,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(530278L) - .requestor(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -49082,10 +49194,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -49120,480 +49228,221 @@ public class Application { .build())) .build()) .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .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() - .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() + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .build()) - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .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(189287L) - .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(189287L) - .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(801275L) - .build(), - ClusterGroup.builder() - .visibleCountHint(801275L) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_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(917105L) - .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() - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .snippet("snippet") + .mimeType("mimeType") + .build())) + .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(189287L) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.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(), - ChannelInviteInfo.builder() + 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(189287L) + .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(), - ChannelInviteInfo.builder() + 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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) .build()) - .build()) - .build(), - CalendarAttendee.builder() + .build())) + .allClusteredResults(List.of( + ClusterGroup.builder() + .visibleCountHint(801275L) + .build(), + ClusterGroup.builder() + .visibleCountHint(801275L) + .build())) + .mustIncludeSuggestions(QuerySuggestionList.builder() .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -49607,35 +49456,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -49649,388 +49473,70 @@ public class Application { .build())) .build()) .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("event while eventually dutiful middle") - .id(56361L) - .audienceFilters(List.of( - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .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("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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()) - .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("") + .label("Mortimer's PRs") + .datasource("github") + .requestOptions(SearchRequestOptions.builder() + .facetBucketSize(917105L) + .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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()) - .verification(Verification.builder() - .state(State.UNVERIFIED) - .metadata(VerificationMetadata.builder() - .lastVerifier(Person.builder() + .build()) + .build()) + .meeting(Meeting.builder() + .attendees(CalendarAttendees.builder() + .people(List.of( + CalendarAttendee.builder() + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -50043,10 +49549,35 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -50060,2180 +49591,1515 @@ public class Application { .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") - .build())) - .badges(List.of( - Badge.builder() - .key("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(735135L) - .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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .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() + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("event while eventually dutiful middle") + .id(56361L) + .audienceFilters(List.of( + 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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .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() + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .lines(List.of( + CodeLine.builder() + .build(), + CodeLine.builder() + .build())) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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("George Clooney") + .obfuscatedId("abc123") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .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") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_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(), - 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(469542L) - .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())) + .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(), - 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())) + DatasourceProfile.builder() + .datasource("github") + .handle("") .build())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(804377L) - .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(469542L) - .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())) + .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())) - .authTokens(List.of( - AuthToken.builder() - .accessToken("123abc") - .datasource("gmail") - .scope("email profile https://www.googleapis.com/auth/gmail.readonly") - .tokenType("Bearer") - .authUser("1") + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(804377L) - .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(469542L) - .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())) + .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())) - .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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(804377L) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) + .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())) + .badges(List.of( + Badge.builder() + .key("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(735135L) + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .collections(List.of( - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) + .build()) + .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") + .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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .label("Mortimer's PRs") + .datasource("github") + .requestOptions(SearchRequestOptions.builder() + .facetBucketSize(469542L) + .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())) - .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("") + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(804377L) + .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(), - 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("") + 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(469542L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(804377L) + .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(), - 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("") + 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(469542L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(804377L) + .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())) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .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() + .build()) + .customFields(List.of( + 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(), + 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") - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .updatedBy(Person.builder() + .build()) + .mentionedPeople(List.of( + Person.builder() .name("George Clooney") .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .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())) + .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(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .items(List.of( - CollectionItem.builder() - .collectionId(297273L) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() .build())) .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .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(), - CollectionItem.builder() - .collectionId(297273L) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() .build())) .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") .build()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), + 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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .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(), - CollectionItem.builder() - .collectionId(297273L) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.builder() .build())) .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -52246,6 +51112,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -52280,7 +51150,10 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -52297,10 +51170,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -52335,670 +51204,347 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.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.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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + DatasourceProfile.builder() .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .audienceFilters(List.of( - 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() - .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())) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .items(List.of( - CollectionItem.builder() - .collectionId(297273L) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.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()) - .shortcut(Shortcut.builder() - .inputAlias("") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(297273L) + .itemType(CollectionItemItemType.TEXT) .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -53012,6 +51558,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -53024,29 +51578,289 @@ public class Application { .datasource("github") .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .updatedBy(Person.builder() + .build(), + CollectionItem.builder() + .collectionId(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -53101,267 +51915,267 @@ public class Application { .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() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .shortcut(Shortcut.builder() - .inputAlias("") + .build(), + CollectionItem.builder() + .collectionId(297273L) + .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() @@ -53416,220 +52230,380 @@ public class Application { .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() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -53642,6 +52616,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -53676,7 +52654,11 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -53731,397 +52713,137 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(650669L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .remindAt(829579L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() + .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() @@ -54134,14 +52856,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -54176,8 +52890,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(530278L) - .requestor(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -54190,14 +52903,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -54232,586 +52937,1032 @@ public class Application { .build())) .build()) .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .items(List.of( + CollectionItem.builder() + .collectionId(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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.") - .structuredResult(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(469542L) - .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) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") .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())) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .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) + 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())) - .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") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .ranges(List.of( - TextRange.builder() - .startIndex(804377L) - .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(), + CollectionItem.builder() + .collectionId(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(469542L) - .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) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") .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) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) - .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) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) .build())) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(804377L) - .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(), + CollectionItem.builder() + .collectionId(297273L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(469542L) - .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) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") .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())) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .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) + 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())) - .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(804377L) - .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()) - .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") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .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(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(650669L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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() + .verification(Verification.builder() + .state(State.UNVERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -54858,70 +54009,240 @@ public class Application { .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(829579L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .build()) + .remindAt(530278L) + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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())) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .build())) - .attribution(Person.builder() + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -54981,6 +54302,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -55016,54 +54341,10 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .contactPerson(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -55073,17 +54354,9 @@ public class Application { .email("george@example.com") .location("Hollywood, CA") .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( DatasourceProfile.builder() .datasource("github") .handle("") @@ -55118,518 +54391,849 @@ public class Application { .build())) .build()) .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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()) + .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.") + .structuredResult(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(469542L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(804377L) + .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(), - 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("") + 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(469542L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(804377L) + .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(), - 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("") + 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(469542L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(804377L) + .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())) - .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() + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() + ChannelInviteInfo.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()) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), + 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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") .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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.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())) - .audienceFilters(List.of( - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .items(List.of( - CollectionItem.builder() - .collectionId(297273L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -55642,6 +55246,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -55676,7 +55284,11 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -55731,220 +55343,10 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -55957,6 +55359,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -55991,7 +55401,10 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -56046,267 +55459,119 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() + ChannelInviteInfo.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()) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .shortcut(Shortcut.builder() - .inputAlias("") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(297273L) + .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() @@ -56361,671 +55626,1010 @@ public class Application { .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() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .build())) - .build(), - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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("") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .build(), + CollectionItem.builder() + .collectionId(297273L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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("") + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .build(), + CollectionItem.builder() + .collectionId(297273L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .audienceFilters(List.of( - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .items(List.of( - CollectionItem.builder() - .collectionId(297273L) - .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("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -57038,6 +56642,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -57072,7 +56680,11 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build())) + .removedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -57127,220 +56739,68 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(297273L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .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())) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) .build()) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -57353,6 +56813,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -57387,7 +56855,119 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -57442,219 +57022,266 @@ public class Application { .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() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .shortcut(Shortcut.builder() - .inputAlias("") + .build(), + CollectionItem.builder() + .collectionId(297273L) + .itemType(CollectionItemItemType.TEXT) .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -57668,6 +57295,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -57684,25 +57319,285 @@ public class Application { .invites(List.of( ChannelInviteInfo.builder() .build(), - ChannelInviteInfo.builder() + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .updatedBy(Person.builder() + .build(), + CollectionItem.builder() + .collectionId(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -57757,187 +57652,343 @@ public class Application { .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() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .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() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .build())) + .build()) .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(650669L) + .sharer(Person.builder() .name("George Clooney") .obfuscatedId("abc123") - .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(650669L) - .sharer(Person.builder() + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() @@ -57954,90 +58005,147 @@ public class Application { .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .reminders(List.of( - Reminder.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(829579L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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") @@ -58093,7 +58201,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(829579L) + .remindAt(530278L) .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -58111,6 +58219,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -58145,9 +58257,18 @@ public class Application { .build())) .build()) .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -58160,14 +58281,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -58202,8 +58315,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(530278L) - .requestor(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -58217,387 +58329,48 @@ public class Application { .startDate(LocalDate.parse("2000-01-23")) .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(), - 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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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()) - .build())) - .build()) - .build()) - .build(), - PersonToTeamRelationship.builder() - .person(Person.builder() + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .contactPerson(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -58610,10 +58383,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -58648,39 +58417,80 @@ public class Application { .build())) .build()) .build()) - .build())) - .datasourceProfiles(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .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()) + .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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) - .build())) - .likes(AnswerLikes.builder() - .likedBy(List.of( - AnswerLike.builder() - .user(Person.builder() + .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() @@ -58732,8 +58542,8 @@ public class Application { .build()) .build()) .build(), - AnswerLike.builder() - .user(Person.builder() + PersonToTeamRelationship.builder() + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -58785,8 +58595,8 @@ public class Application { .build()) .build()) .build(), - AnswerLike.builder() - .user(Person.builder() + PersonToTeamRelationship.builder() + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -58838,311 +58648,38 @@ public class Application { .build()) .build()) .build())) - .likedByUser(true) - .numLikes(612008L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) + .datasourceProfiles(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .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() - .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() + .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(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() + .build())) + .likes(AnswerLikes.builder() + .likedBy(List.of( + AnswerLike.builder() + .user(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -59159,14 +58696,27 @@ public class Application { .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -59180,11 +58730,9 @@ public class Application { .build())) .build()) .build()) - .build()) - .build()) - .reminders(List.of( - Reminder.builder() - .assignee(Person.builder() + .build(), + AnswerLike.builder() + .user(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -59201,10 +58749,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -59239,8 +58783,9 @@ public class Application { .build())) .build()) .build()) - .remindAt(829579L) - .requestor(Person.builder() + .build(), + AnswerLike.builder() + .user(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -59264,92 +58809,139 @@ public class Application { .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) + .likedByUser(true) + .numLikes(612008L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) .build()) - .remindAt(530278L) - .requestor(Person.builder() + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .verification(Verification.builder() + .state(State.UNVERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -59362,14 +58954,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -59404,255 +58988,160 @@ public class Application { .build())) .build()) .build()) - .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_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() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(650669L) - .sharer(Person.builder() + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .contactPerson(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -59665,27 +59154,18 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -59699,169 +59179,10 @@ public class Application { .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())) - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(829579L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() + .build()) + .reminders(List.of( + Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -59917,7 +59238,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(530278L) + .remindAt(829579L) .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -59935,10 +59256,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -59973,79 +59290,128 @@ public class Application { .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .remindAt(530278L) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") + .build())) .build()) - .build())) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) .build()) .build()) - .build()) - .build()) - .extractedQnA(ExtractedQnA.builder() - .questionResult(SearchResult.builder() - .url("https://example.com/foo/bar") - .document(Document.builder() + .sourceDocument(Document.builder() .metadata(DocumentMetadata.builder() .datasource("datasource") .objectType("Feature Request") @@ -60058,238 +59424,53 @@ public class Application { .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(469542L) - .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(804377L) - .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(469542L) - .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(804377L) - .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") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(469542L) - .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(804377L) - .build())) - .inputDetails(SearchRequestInputDetails.builder() - .hasCopyPaste(true) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) + .owner(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .metadata(PersonMetadata.builder() .type(PersonMetadataType.FULL_TIME) .title("Actor") @@ -60325,15 +59506,6 @@ public class Application { ChannelInviteInfo.builder() .build())) .build()) - .customFields(List.of( - CustomFieldData.builder() - .label("") - .values(List.of()) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of()) - .build())) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -60347,7 +59519,11 @@ public class Application { .build())) .build()) .build()) - .owner(Person.builder() + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .assignedTo(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -60402,79 +59578,132 @@ public class Application { .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .reacts(List.of( + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build(), + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(650669L) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .updatedBy(Person.builder() + .build())) + .build()) + .verification(Verification.builder() + .state(State.UNVERIFIED) + .metadata(VerificationMetadata.builder() + .lastVerifier(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -60521,165 +59750,240 @@ public class Application { .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") - .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .remindAt(829579L) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .remindAt(530278L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") .build())) .build()) .build()) - .updatedBy(Person.builder() + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .contactPerson(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -60734,518 +60038,931 @@ public class Application { .build())) .build()) .build()) - .collections(List.of( - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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()) + .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") + .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(469542L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(804377L) + .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .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("") + 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(469542L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(804377L) + .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .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("") + 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(469542L) + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + 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())) - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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(804377L) + .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .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() + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .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()) + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() + ChannelInviteInfo.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()) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), + 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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") .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("") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + ChannelInviteInfo.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())) - .audienceFilters(List.of( - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .items(List.of( - CollectionItem.builder() - .collectionId(297273L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .collections(List.of( + Collection.builder() + .name("") + .description("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -61258,6 +60975,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -61292,7 +61017,10 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -61347,219 +61075,118 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() + ChannelInviteInfo.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()) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .shortcut(Shortcut.builder() - .inputAlias("") + .build()) + .items(List.of( + CollectionItem.builder() + .collectionId(297273L) + .itemType(CollectionItemItemType.TEXT) .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -61573,6 +61200,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -61607,7 +61242,267 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -61662,220 +61557,587 @@ public class Application { .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() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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("") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) + .build()) + .build()) .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .build(), + CollectionItem.builder() + .collectionId(297273L) + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build())) + .build(), + Collection.builder() + .name("") + .description("scholarship ha wisely into wholly mortally backburn unabashedly") + .id(739594L) + .addedRoles(List.of( + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -61888,6 +62150,10 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -61922,7 +62188,10 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.VIEWER) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -61939,10 +62208,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -61977,671 +62242,181 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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(), - Collection.builder() - .name("") - .description("scholarship ha wisely into wholly mortally backburn unabashedly") - .id(739594L) - .addedRoles(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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.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())) - .audienceFilters(List.of( - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("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(297273L) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .build(), + UserRoleSpecification.builder() + .role(UserRole.ANSWER_MODERATOR) + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -62654,6 +62429,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -62688,7 +62471,119 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("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(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -62743,219 +62638,266 @@ public class Application { .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() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .build()) - .build(), - CollectionItem.builder() - .collectionId(297273L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + 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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .shortcut(Shortcut.builder() - .inputAlias("") + .build(), + CollectionItem.builder() + .collectionId(297273L) + .itemType(CollectionItemItemType.TEXT) .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -62969,6 +62911,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -63003,7 +62953,267 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(297273L) + .itemType(CollectionItemItemType.TEXT) + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -63058,163 +63268,291 @@ public class Application { .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() + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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(), - 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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .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() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) .build(), - CollectionItem.builder() - .collectionId(297273L) - .itemType(CollectionItemItemType.TEXT) - .createdBy(Person.builder() + Reaction.builder() + .reactors(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(650669L) + .sharer(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -63227,14 +63565,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -63269,9 +63599,61 @@ public class Application { .build())) .build()) .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .createdBy(Person.builder() + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("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() @@ -63284,6 +63666,14 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -63318,7 +63708,8 @@ public class Application { .build())) .build()) .build()) - .updatedBy(Person.builder() + .remindAt(829579L) + .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -63335,10 +63726,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -63373,287 +63760,8 @@ public class Application { .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) - .build(), - Reaction.builder() - .reactors(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") .build())) - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(650669L) - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .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()) - .badges(List.of( - Badge.builder() - .key("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() + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -63709,7 +63817,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(829579L) + .remindAt(530278L) .requestor(Person.builder() .name("George Clooney") .obfuscatedId("abc123") @@ -63727,6 +63835,10 @@ public class Application { .datasource("github") .handle("") .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -63761,9 +63873,18 @@ public class Application { .build())) .build()) .build()) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() + .build()) + .candidateVerifiers(List.of( + Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build())) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .createdBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -63776,14 +63897,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -63818,8 +63931,7 @@ public class Application { .build())) .build()) .build()) - .remindAt(530278L) - .requestor(Person.builder() + .updatedBy(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -63836,10 +63948,6 @@ public class Application { .datasource("github") .handle("") .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -63874,120 +63982,222 @@ public class Application { .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) .build()) - .candidateVerifiers(List.of( - Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build())) .build()) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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() - .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()) + .title("title") + .nativeAppUrl("slack://foo/bar") + .snippets(List.of( + SearchResultSnippet.builder() + .snippet("snippet") + .mimeType("mimeType") + .build())) + .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(189287L) + .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(), - ChannelInviteInfo.builder() + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .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())) + .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()) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") - .datasource("github") + .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(189287L) + .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()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .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()) - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .contactPerson(Person.builder() + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) + .build()) + .build())) + .allClusteredResults(List.of( + ClusterGroup.builder() + .visibleCountHint(801275L) + .build(), + ClusterGroup.builder() + .visibleCountHint(801275L) + .build())) + .mustIncludeSuggestions(QuerySuggestionList.builder() + .person(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -64000,27 +64210,18 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -64035,271 +64236,453 @@ public class Application { .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(917105L) + .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()) - .title("title") - .nativeAppUrl("slack://foo/bar") - .snippets(List.of( - SearchResultSnippet.builder() - .snippet("snippet") - .mimeType("mimeType") - .build())) - .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(189287L) - .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()) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") .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()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - 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(189287L) - .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(), + 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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") + .datasource("github") .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()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() .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()) + .badges(List.of( + Badge.builder() + .key("deployment_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())) - .allClusteredResults(List.of( - ClusterGroup.builder() - .visibleCountHint(801275L) - .build(), - ClusterGroup.builder() - .visibleCountHint(801275L) + .build())) + .build()) + .build()) + .collection(Collection.builder() + .name("") + .description("event while eventually dutiful middle") + .id(56361L) + .audienceFilters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) + .build(), + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) + .build())) .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() + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") + .build())) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() .build(), - DatasourceProfile.builder() + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) + .code(Code.builder() + .repoName("scio") + .fileName("README.md") + .lines(List.of( + CodeLine.builder() + .build(), + CodeLine.builder() + .build())) + .build()) + .shortcut(Shortcut.builder() + .inputAlias("") + .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() + .suggestions(List.of( + QuerySuggestion.builder() + .query("app:github type:pull author:mortimer") + .label("Mortimer's PRs") .datasource("github") - .handle("") .build())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) + .build()) + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.builder() + .build(), + ChannelInviteInfo.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()) - .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") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .build())) .build()) - .label("Mortimer's PRs") - .datasource("github") - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(917105L) - .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()) + .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("George Clooney") + .obfuscatedId("abc123") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .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() + .build()) + .build()) + .owner(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -64324,23 +64707,6 @@ public class Application { .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -64354,9 +64720,11 @@ public class Application { .build())) .build()) .build()) - .build(), - CalendarAttendee.builder() - .person(Person.builder() + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .assignedTo(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .metadata(PersonMetadata.builder() @@ -64373,31 +64741,10 @@ public class Application { .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()) .badges(List.of( Badge.builder() .key("deployment_name_new_hire") @@ -64411,458 +64758,40 @@ public class Application { .build())) .build()) .build()) - .build())) - .build()) - .build()) - .collection(Collection.builder() - .name("") - .description("event while eventually dutiful middle") - .id(56361L) - .audienceFilters(List.of( - 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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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())) - .build()) - .shortcut(Shortcut.builder() - .inputAlias("") - .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() - .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()) - .badges(List.of( - Badge.builder() - .key("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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .build()) - .build())) - .build()) - .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("George Clooney") - .obfuscatedId("abc123") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("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())) - .badges(List.of( - Badge.builder() - .key("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(735135L) - .requestor(Person.builder() + .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())) + .badges(List.of( + Badge.builder() + .key("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() @@ -64875,10 +64804,6 @@ public class Application { .photoUrl("https://example.com/george.jpg") .startDate(LocalDate.parse("2000-01-23")) .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), DatasourceProfile.builder() .datasource("github") .handle("") @@ -64896,266 +64821,337 @@ public class Application { .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())) + .badges(List.of( + Badge.builder() + .key("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(735135L) + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_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()) - .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())) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") - .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())) + .badges(List.of( + Badge.builder() + .key("deployment_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.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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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()) + .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") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) + .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") - .metadata(PersonMetadata.builder() - .type(PersonMetadataType.FULL_TIME) - .title("Actor") - .department("Movies") - .email("george@example.com") - .location("Hollywood, CA") - .phone("6505551234") - .photoUrl("https://example.com/george.jpg") - .startDate(LocalDate.parse("2000-01-23")) - .datasourceProfile(List.of( - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .badges(List.of( - Badge.builder() - .key("deployment_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()) + .audienceFilters(List.of( + 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()) - .audienceFilters(List.of( - 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(); if (res.announcement().isPresent()) { @@ -65167,9 +65163,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `request` | [UpdateAnnouncementRequest](../../models/shared/UpdateAnnouncementRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `updateAnnouncementRequest` | [UpdateAnnouncementRequest](../../models/components/UpdateAnnouncementRequest.md) | :heavy_check_mark: | Announcement content. Id need to be specified for the announcement. | ### Response diff --git a/docs/sdks/answers/README.md b/docs/sdks/answers/README.md index 17991f00..dac5103a 100644 --- a/docs/sdks/answers/README.md +++ b/docs/sdks/answers/README.md @@ -37,1254 +37,1252 @@ public class Application { .apiToken(System.getenv().getOrDefault("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.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(708564L) - .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(945729L) - .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("via vain astride question") - .id(51416L) - .audienceFilters(List.of( - 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(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("via vain astride question") - .id(51416L) - .audienceFilters(List.of( - 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(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(85387L) - .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(161639L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(613051L) - .build()) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(945729L) - .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("via vain astride question") - .id(51416L) - .audienceFilters(List.of( - 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(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("via vain astride question") - .id(51416L) - .audienceFilters(List.of( - 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(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(85387L) - .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(161639L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(613051L) - .build()) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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(708564L) - .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(945729L) - .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("via vain astride question") - .id(51416L) - .audienceFilters(List.of( - 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(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("via vain astride question") - .id(51416L) - .audienceFilters(List.of( - 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(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(85387L) - .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(161639L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(613051L) - .build()) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(945729L) - .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("via vain astride question") - .id(51416L) - .audienceFilters(List.of( - 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(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("via vain astride question") - .id(51416L) - .audienceFilters(List.of( - 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(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + CreateanswerResponse res = sdk.client().answers().create() + .createAnswerRequest(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.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(708564L) + .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(), - CollectionItem.builder() - .collectionId(33920L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() + .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(945729L) + .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(), - Reaction.builder() + 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("via vain astride question") + .id(51416L) + .audienceFilters(List.of( + 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(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .build(), - Reaction.builder() + Collection.builder() + .name("") + .description("via vain astride question") + .id(51416L) + .audienceFilters(List.of( + 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(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(85387L) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(85387L) + .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(161639L) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(613051L) + .build()) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) .build()) - .verification(Verification.builder() - .state(State.VERIFIED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() + .build()) + .build(), + TextRange.builder() + .startIndex(945729L) + .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("via vain astride question") + .id(51416L) + .audienceFilters(List.of( + 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(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("via vain astride question") + .id(51416L) + .audienceFilters(List.of( + 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(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(85387L) + .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(161639L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(161639L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(613051L) .build()) - .remindAt(613051L) .build()) .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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("") + .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") - .build())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() + 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") - .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( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - 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") + .requestOptions(SearchRequestOptions.builder() + .facetBucketSize(708564L) + .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(945729L) + .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("via vain astride question") + .id(51416L) + .audienceFilters(List.of( + 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(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("via vain astride question") + .id(51416L) + .audienceFilters(List.of( + 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(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(85387L) + .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(161639L) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(613051L) + .build()) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build(), + TextRange.builder() + .startIndex(945729L) + .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("via vain astride question") + .id(51416L) + .audienceFilters(List.of( + 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(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build(), + Collection.builder() + .name("") + .description("via vain astride question") + .id(51416L) + .audienceFilters(List.of( + 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(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(33920L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(85387L) + .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(161639L) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(613051L) + .build()) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .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())) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + 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( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + 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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .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())) + .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()) - .build(); - - CreateanswerResponse res = sdk.client().answers().create() - .request(req) .call(); if (res.answer().isPresent()) { @@ -1296,9 +1294,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `request` | [CreateAnswerRequest](../../models/shared/CreateAnswerRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `createAnswerRequest` | [CreateAnswerRequest](../../models/components/CreateAnswerRequest.md) | :heavy_check_mark: | CreateAnswer request | ### Response @@ -1333,13 +1332,11 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - DeleteAnswerRequest req = DeleteAnswerRequest.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .build(); - DeleteanswerResponse res = sdk.client().answers().delete() - .request(req) + .deleteAnswerRequest(DeleteAnswerRequest.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .build()) .call(); // handle response @@ -1349,9 +1346,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `request` | [DeleteAnswerRequest](../../models/shared/DeleteAnswerRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `deleteAnswerRequest` | [DeleteAnswerRequest](../../models/components/DeleteAnswerRequest.md) | :heavy_check_mark: | DeleteAnswer request | ### Response @@ -1390,846 +1388,844 @@ public class Application { .apiToken(System.getenv().getOrDefault("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.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(552856L) - .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) + EditanswerResponse res = sdk.client().answers().update() + .editAnswerRequest(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.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(552856L) + .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(23264L) + .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(), - 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) + 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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + 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())) - .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) + .collections(List.of( + Collection.builder() + .name("") + .description("boohoo hunger energetic who whoa grimy vibrant wisely") + .id(919335L) + .audienceFilters(List.of( + 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(972120L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(972120L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .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(23264L) - .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("boohoo hunger energetic who whoa grimy vibrant wisely") - .id(919335L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(972120L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .shares(List.of( + Share.builder() + .numDaysAgo(439797L) .build(), - CollectionItem.builder() - .collectionId(972120L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + Share.builder() + .numDaysAgo(439797L) .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(439797L) - .build(), - Share.builder() - .numDaysAgo(439797L) - .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(996442L) - .build(), - Reminder.builder() + .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(996442L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(996442L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(996442L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(886538L) .build()) - .remindAt(886538L) .build()) .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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("") + .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())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .customFields(List.of( - 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.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(552856L) - .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(23264L) - .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(), + 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(552856L) + .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(), - 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())) + 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())) - .collections(List.of( - Collection.builder() - .name("") - .description("boohoo hunger energetic who whoa grimy vibrant wisely") - .id(919335L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .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())) - .items(List.of( - CollectionItem.builder() - .collectionId(972120L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - CollectionItem.builder() - .collectionId(972120L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(439797L) + .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(23264L) + .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(), - Share.builder() - .numDaysAgo(439797L) + 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())) - .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(996442L) + .collections(List.of( + Collection.builder() + .name("") + .description("boohoo hunger energetic who whoa grimy vibrant wisely") + .id(919335L) + .audienceFilters(List.of( + 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(972120L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(972120L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(439797L) .build(), - Reminder.builder() + Share.builder() + .numDaysAgo(439797L) + .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(996442L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(996442L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(996442L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(886538L) .build()) - .remindAt(886538L) .build()) .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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())) - .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") + .inviteInfo(InviteInfo.builder() + .invites(List.of( + ChannelInviteInfo.builder() + .build())) + .build()) + .customFields(List.of( + CustomFieldData.builder() + .label("") + .values(List.of()) .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .customFields(List.of( - 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())) - .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())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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(), - 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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .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())) + .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(); - - EditanswerResponse res = sdk.client().answers().update() - .request(req) .call(); if (res.answer().isPresent()) { @@ -2241,9 +2237,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `request` | [EditAnswerRequest](../../models/shared/EditAnswerRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `editAnswerRequest` | [EditAnswerRequest](../../models/components/EditAnswerRequest.md) | :heavy_check_mark: | EditAnswer request | ### Response @@ -2278,13 +2275,11 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - GetAnswerRequest req = GetAnswerRequest.builder() - .id(3L) - .docId("ANSWERS_answer_3") - .build(); - GetanswerResponse res = sdk.client().answers().retrieve() - .request(req) + .getAnswerRequest(GetAnswerRequest.builder() + .id(3L) + .docId("ANSWERS_answer_3") + .build()) .call(); if (res.getAnswerResponse().isPresent()) { @@ -2296,9 +2291,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `request` | [GetAnswerRequest](../../models/shared/GetAnswerRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getAnswerRequest` | [GetAnswerRequest](../../models/components/GetAnswerRequest.md) | :heavy_check_mark: | GetAnswer request | ### Response @@ -2314,7 +2310,7 @@ public class Application { List Answers created by the current user. -> :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. +> :warning: **DEPRECATED**: Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose. ### Example Usage @@ -2335,11 +2331,9 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - ListAnswersRequest req = ListAnswersRequest.builder() - .build(); - ListanswersResponse res = sdk.client().answers().list() - .request(req) + .listAnswersRequest(ListAnswersRequest.builder() + .build()) .call(); if (res.listAnswersResponse().isPresent()) { @@ -2351,9 +2345,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `request` | [ListAnswersRequest](../../models/shared/ListAnswersRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `listAnswersRequest` | [ListAnswersRequest](../../models/components/ListAnswersRequest.md) | :heavy_check_mark: | ListAnswers request | ### Response diff --git a/docs/sdks/chat/README.md b/docs/sdks/chat/README.md index 00832ce5..c2256c6a 100644 --- a/docs/sdks/chat/README.md +++ b/docs/sdks/chat/README.md @@ -60,10 +60,11 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `chatRequest` | [ChatRequest](../../models/components/ChatRequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `chatRequest` | [ChatRequest](../../models/components/ChatRequest.md) | :heavy_check_mark: | Includes chat history for Glean AI to respond to. | ### Response @@ -107,9 +108,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | ### Response @@ -158,10 +160,11 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `deleteChatsRequest` | [DeleteChatsRequest](../../models/components/DeleteChatsRequest.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `deleteChatsRequest` | [DeleteChatsRequest](../../models/components/DeleteChatsRequest.md) | :heavy_check_mark: | N/A | ### Response @@ -211,10 +214,11 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `getChatRequest` | [GetChatRequest](../../models/components/GetChatRequest.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `getChatRequest` | [GetChatRequest](../../models/components/GetChatRequest.md) | :heavy_check_mark: | N/A | ### Response @@ -260,9 +264,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | ### Response @@ -312,10 +317,11 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `getChatApplicationRequest` | [GetChatApplicationRequest](../../models/components/GetChatApplicationRequest.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `getChatApplicationRequest` | [GetChatApplicationRequest](../../models/components/GetChatApplicationRequest.md) | :heavy_check_mark: | N/A | ### Response @@ -370,10 +376,11 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `uploadChatFilesRequest` | [UploadChatFilesRequest](../../models/components/UploadChatFilesRequest.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `uploadChatFilesRequest` | [UploadChatFilesRequest](../../models/components/UploadChatFilesRequest.md) | :heavy_check_mark: | N/A | ### Response @@ -425,10 +432,11 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `getChatFilesRequest` | [GetChatFilesRequest](../../models/components/GetChatFilesRequest.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `getChatFilesRequest` | [GetChatFilesRequest](../../models/components/GetChatFilesRequest.md) | :heavy_check_mark: | N/A | ### Response @@ -480,10 +488,11 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | -| `deleteChatFilesRequest` | [DeleteChatFilesRequest](../../models/components/DeleteChatFilesRequest.md) | :heavy_check_mark: | N/A | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `timezoneOffset` | *Optional\* | :heavy_minus_sign: | The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours behind UTC. | +| `deleteChatFilesRequest` | [DeleteChatFilesRequest](../../models/components/DeleteChatFilesRequest.md) | :heavy_check_mark: | N/A | ### Response diff --git a/docs/sdks/clientdocuments/README.md b/docs/sdks/clientdocuments/README.md index 278ae000..a2550eef 100644 --- a/docs/sdks/clientdocuments/README.md +++ b/docs/sdks/clientdocuments/README.md @@ -32,11 +32,9 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - GetDocPermissionsRequest req = GetDocPermissionsRequest.builder() - .build(); - GetdocpermissionsResponse res = sdk.client().documents().retrievePermissions() - .request(req) + .getDocPermissionsRequest(GetDocPermissionsRequest.builder() + .build()) .call(); if (res.getDocPermissionsResponse().isPresent()) { @@ -48,9 +46,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `request` | [GetDocPermissionsRequest](../../models/shared/GetDocPermissionsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getDocPermissionsRequest` | [GetDocPermissionsRequest](../../models/components/GetDocPermissionsRequest.md) | :heavy_check_mark: | Document permissions request | ### Response @@ -96,9 +95,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `request` | [GetDocumentsRequest](../../models/shared/GetDocumentsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getDocumentsRequest` | [Optional\](../../models/components/GetDocumentsRequest.md) | :heavy_minus_sign: | Information about documents requested. | ### Response @@ -134,42 +134,40 @@ public class Application { .apiToken(System.getenv().getOrDefault("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) + .getDocumentsByFacetsRequest(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()) .call(); if (res.getDocumentsByFacetsResponse().isPresent()) { @@ -181,9 +179,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `request` | [GetDocumentsByFacetsRequest](../../models/shared/GetDocumentsByFacetsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getDocumentsByFacetsRequest` | [Optional\](../../models/components/GetDocumentsByFacetsRequest.md) | :heavy_minus_sign: | Information about facet conditions for documents to be retrieved. | ### Response @@ -219,23 +218,21 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - SummarizeRequest req = SummarizeRequest.builder() - .documentSpecs(List.of( - DocumentSpecUnion.of(DocumentSpec4.builder() - .ugcType(DocumentSpecUgcType2.CHATS) - .ugcId("") - .build()), - DocumentSpecUnion.of(DocumentSpec4.builder() - .ugcType(DocumentSpecUgcType2.CHATS) - .ugcId("") - .build()), - DocumentSpecUnion.of(DocumentSpec2.builder() - .id("") - .build()))) - .build(); - SummarizeResponse res = sdk.client().documents().summarize() - .request(req) + .summarizeRequest(SummarizeRequest.builder() + .documentSpecs(List.of( + DocumentSpecUnion.of(DocumentSpec4.builder() + .ugcType(DocumentSpecUgcType2.CHATS) + .ugcId("") + .build()), + DocumentSpecUnion.of(DocumentSpec4.builder() + .ugcType(DocumentSpecUgcType2.CHATS) + .ugcId("") + .build()), + DocumentSpecUnion.of(DocumentSpec2.builder() + .id("") + .build()))) + .build()) .call(); if (res.summarizeResponse().isPresent()) { @@ -247,9 +244,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `request` | [SummarizeRequest](../../models/shared/SummarizeRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `summarizeRequest` | [SummarizeRequest](../../models/components/SummarizeRequest.md) | :heavy_check_mark: | Includes request params such as the query and specs of the documents to summarize. | ### Response diff --git a/docs/sdks/clientshortcuts/README.md b/docs/sdks/clientshortcuts/README.md index 488a4bba..c4cb0b2c 100644 --- a/docs/sdks/clientshortcuts/README.md +++ b/docs/sdks/clientshortcuts/README.md @@ -37,927 +37,1741 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - CreateShortcutRequest req = CreateShortcutRequest.builder() - .data(ShortcutMutableProperties.builder() - .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(523271L) - .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(365818L) - .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())) + CreateshortcutResponse res = sdk.client().shortcuts().create() + .createShortcutRequest(CreateShortcutRequest.builder() + .data(ShortcutMutableProperties.builder() + .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(523271L) + .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(), - 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())) + 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())) - .collections(List.of( - Collection.builder() - .name("") - .description("terribly before ferociously how preclude aw quarterly definite schlep") - .id(100369L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .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())) - .items(List.of( - CollectionItem.builder() - .collectionId(239768L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - CollectionItem.builder() - .collectionId(239768L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() + .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(365818L) + .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(), - Reaction.builder() + 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())) - .shares(List.of( - Share.builder() - .numDaysAgo(771560L) + .collections(List.of( + Collection.builder() + .name("") + .description("terribly before ferociously how preclude aw quarterly definite schlep") + .id(100369L) + .audienceFilters(List.of( + 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(239768L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(239768L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(771560L) + .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(919708L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(919708L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(919708L) + .remindAt(627228L) + .build()) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build(), + TextRange.builder() + .startIndex(365818L) + .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("terribly before ferociously how preclude aw quarterly definite schlep") + .id(100369L) + .audienceFilters(List.of( + 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(239768L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(239768L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() .build(), - Reminder.builder() + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(771560L) + .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(919708L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(919708L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(919708L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(627228L) .build()) - .remindAt(627228L) .build()) .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(365818L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") + .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") - .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())) + .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(), + 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(), + 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(523271L) + .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(), - 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())) + 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())) - .collections(List.of( - Collection.builder() - .name("") - .description("terribly before ferociously how preclude aw quarterly definite schlep") - .id(100369L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .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())) - .items(List.of( - CollectionItem.builder() - .collectionId(239768L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - CollectionItem.builder() - .collectionId(239768L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() + .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(365818L) + .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(), - Reaction.builder() + 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())) - .shares(List.of( - Share.builder() - .numDaysAgo(771560L) + .collections(List.of( + Collection.builder() + .name("") + .description("terribly before ferociously how preclude aw quarterly definite schlep") + .id(100369L) + .audienceFilters(List.of( + 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(239768L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(239768L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(771560L) + .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(919708L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(919708L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(919708L) + .remindAt(627228L) + .build()) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build(), + TextRange.builder() + .startIndex(365818L) + .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("terribly before ferociously how preclude aw quarterly definite schlep") + .id(100369L) + .audienceFilters(List.of( + 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(239768L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(239768L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() .build(), - Reminder.builder() + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(771560L) + .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(919708L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(919708L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(919708L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(627228L) .build()) - .remindAt(627228L) .build()) .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .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("") + .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())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() - .build(), - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + 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()) - .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( - 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(), - 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(523271L) - .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(365818L) - .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(), + 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(523271L) + .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(), - 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())) + 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())) - .collections(List.of( - Collection.builder() - .name("") - .description("terribly before ferociously how preclude aw quarterly definite schlep") - .id(100369L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .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())) - .items(List.of( - CollectionItem.builder() - .collectionId(239768L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - CollectionItem.builder() - .collectionId(239768L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() + .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(365818L) + .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(), - Reaction.builder() + 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())) - .shares(List.of( - Share.builder() - .numDaysAgo(771560L) + .collections(List.of( + Collection.builder() + .name("") + .description("terribly before ferociously how preclude aw quarterly definite schlep") + .id(100369L) + .audienceFilters(List.of( + 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(239768L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(239768L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(771560L) + .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(919708L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(919708L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(919708L) + .remindAt(627228L) + .build()) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build(), + TextRange.builder() + .startIndex(365818L) + .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("terribly before ferociously how preclude aw quarterly definite schlep") + .id(100369L) + .audienceFilters(List.of( + 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(239768L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(239768L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() .build(), - Reminder.builder() + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(771560L) + .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(919708L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(919708L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(919708L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(627228L) .build()) - .remindAt(627228L) .build()) .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(365818L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") + .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") - .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("terribly before ferociously how preclude aw quarterly definite schlep") - .id(100369L) - .audienceFilters(List.of( - 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(239768L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(239768L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(771560L) - .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(919708L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(919708L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(627228L) - .build()) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) + .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())) - .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())) + .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(), + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + CustomFieldValue.of(CustomFieldValueStr.builder() + .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") + .badges(List.of( + Badge.builder() + .key("deployment_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())) + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .build())) .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_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(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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( - 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(), - 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(523271L) - .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()) + .build()) + .call(); + + if (res.createShortcutResponse().isPresent()) { + // handle response + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `createShortcutRequest` | [CreateShortcutRequest](../../models/components/CreateShortcutRequest.md) | :heavy_check_mark: | CreateShortcut request | + +### Response + +**[CreateshortcutResponse](../../models/operations/CreateshortcutResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## delete + +Delete an existing user-generated shortcut. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.DeleteShortcutRequest; +import com.glean.api_client.glean_api_client.models.operations.DeleteshortcutResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + DeleteshortcutResponse res = sdk.client().shortcuts().delete() + .deleteShortcutRequest(DeleteShortcutRequest.builder() + .id(975862L) + .build()) + .call(); + + // handle response + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `deleteShortcutRequest` | [DeleteShortcutRequest](../../models/components/DeleteShortcutRequest.md) | :heavy_check_mark: | DeleteShortcut request | + +### Response + +**[DeleteshortcutResponse](../../models/operations/DeleteshortcutResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## retrieve + +Read a particular shortcut's details given its ID. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +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.operations.GetshortcutResponse; +import java.lang.Exception; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + GetshortcutResponse res = sdk.client().shortcuts().retrieve() + .getShortcutRequest(GetShortcutRequestUnion.of(GetShortcutRequest.builder() + .alias("") + .build())) + .call(); + + if (res.getShortcutResponse().isPresent()) { + // handle response + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getShortcutRequest` | [GetShortcutRequestUnion](../../models/components/GetShortcutRequestUnion.md) | :heavy_check_mark: | GetShortcut request | + +### Response + +**[GetshortcutResponse](../../models/operations/GetshortcutResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## list + +List shortcuts editable/owned by the currently authenticated user. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.operations.ListshortcutsResponse; +import java.lang.Exception; +import java.util.List; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + ListshortcutsResponse res = sdk.client().shortcuts().list() + .listShortcutsPaginatedRequest(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()) + .call(); + + if (res.listShortcutsPaginatedResponse().isPresent()) { + // handle response + } + } +} +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `listShortcutsPaginatedRequest` | [ListShortcutsPaginatedRequest](../../models/components/ListShortcutsPaginatedRequest.md) | :heavy_check_mark: | Filters, sorters, paging params required for pagination | + +### Response + +**[ListshortcutsResponse](../../models/operations/ListshortcutsResponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| models/errors/APIException | 4XX, 5XX | \*/\* | + +## update + +Updates the shortcut with the given ID. + +### Example Usage + + +```java +package hello.world; + +import com.glean.api_client.glean_api_client.Glean; +import com.glean.api_client.glean_api_client.models.components.*; +import com.glean.api_client.glean_api_client.models.operations.UpdateshortcutResponse; +import java.lang.Exception; +import java.time.LocalDate; +import java.time.OffsetDateTime; +import java.util.List; +import java.util.Map; + +public class Application { + + public static void main(String[] args) throws Exception { + + Glean sdk = Glean.builder() + .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) + .build(); + + UpdateshortcutResponse res = sdk.client().shortcuts().update() + .updateShortcutRequest(UpdateShortcutRequest.builder() + .id(268238L) + .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(801764L) + .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(), + .build())) + .facetFilterSets(List.of( FacetFilterSet.builder() .filters(List.of( FacetFilter.builder() @@ -999,7 +1813,7 @@ public class Application { .build()) .ranges(List.of( TextRange.builder() - .startIndex(365818L) + .startIndex(352334L) .document(Document.builder() .metadata(DocumentMetadata.builder() .datasource("datasource") @@ -1031,6 +1845,22 @@ public class Application { .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( @@ -1050,8 +1880,8 @@ public class Application { .collections(List.of( Collection.builder() .name("") - .description("terribly before ferociously how preclude aw quarterly definite schlep") - .id(100369L) + .description("scare following gadzooks woot translation") + .id(78594L) .audienceFilters(List.of( FacetFilter.builder() .fieldName("type") @@ -1067,35 +1897,44 @@ public class Application { .build())) .items(List.of( CollectionItem.builder() - .collectionId(239768L) - .itemType(CollectionItemItemType.TEXT) + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) .shortcut(Shortcut.builder() .inputAlias("") .build()) .build(), CollectionItem.builder() - .collectionId(239768L) - .itemType(CollectionItemItemType.TEXT) + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) .shortcut(Shortcut.builder() .inputAlias("") .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() - .build(), + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( Reaction.builder() .build())) .shares(List.of( Share.builder() - .numDaysAgo(771560L) + .numDaysAgo(776330L) + .build(), + Share.builder() + .numDaysAgo(776330L) + .build(), + Share.builder() + .numDaysAgo(776330L) .build())) .build()) .verification(Verification.builder() - .state(State.DEPRECATED) + .state(State.VERIFIED) .metadata(VerificationMetadata.builder() .reminders(List.of( Reminder.builder() @@ -1103,25 +1942,38 @@ public class Application { .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(919708L) + .remindAt(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) .build(), Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(919708L) + .remindAt(84322L) .build())) .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(627228L) + .remindAt(234150L) .build()) .build()) .build()) .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), Shortcut.builder() .inputAlias("") .build())) @@ -1132,7 +1984,7 @@ public class Application { .build()) .build(), TextRange.builder() - .startIndex(365818L) + .startIndex(352334L) .document(Document.builder() .metadata(DocumentMetadata.builder() .datasource("datasource") @@ -1164,6 +2016,22 @@ public class Application { .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( @@ -1183,8 +2051,8 @@ public class Application { .collections(List.of( Collection.builder() .name("") - .description("terribly before ferociously how preclude aw quarterly definite schlep") - .id(100369L) + .description("scare following gadzooks woot translation") + .id(78594L) .audienceFilters(List.of( FacetFilter.builder() .fieldName("type") @@ -1200,15 +2068,22 @@ public class Application { .build())) .items(List.of( CollectionItem.builder() - .collectionId(239768L) - .itemType(CollectionItemItemType.TEXT) + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) .shortcut(Shortcut.builder() .inputAlias("") .build()) .build(), CollectionItem.builder() - .collectionId(239768L) - .itemType(CollectionItemItemType.TEXT) + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) .shortcut(Shortcut.builder() .inputAlias("") .build()) @@ -1217,18 +2092,191 @@ public class Application { .interactions(DocumentInteractions.builder() .reacts(List.of( Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(776330L) .build(), - Reaction.builder() + Share.builder() + .numDaysAgo(776330L) .build(), + Share.builder() + .numDaysAgo(776330L) + .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(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(234150L) + .build()) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build(), + TextRange.builder() + .startIndex(352334L) + .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("scare following gadzooks woot translation") + .id(78594L) + .audienceFilters(List.of( + 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(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( Reaction.builder() .build())) .shares(List.of( Share.builder() - .numDaysAgo(771560L) + .numDaysAgo(776330L) + .build(), + Share.builder() + .numDaysAgo(776330L) + .build(), + Share.builder() + .numDaysAgo(776330L) .build())) .build()) .verification(Verification.builder() - .state(State.DEPRECATED) + .state(State.VERIFIED) .metadata(VerificationMetadata.builder() .reminders(List.of( Reminder.builder() @@ -1236,25 +2284,38 @@ public class Application { .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(919708L) + .remindAt(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) .build(), Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(919708L) + .remindAt(84322L) .build())) .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(627228L) + .remindAt(234150L) .build()) .build()) .build()) .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), Shortcut.builder() .inputAlias("") .build())) @@ -1279,3078 +2340,2011 @@ public class Application { .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() + .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") - .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(), - 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.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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .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()) - .badges(List.of( - Badge.builder() - .key("deployment_name_new_hire") - .displayName("New hire") - .iconConfig(IconConfig.builder() - .color("#343CED") - .key("person_icon") - .iconType(IconType.GLYPH) - .name("user") + .requestOptions(SearchRequestOptions.builder() + .facetBucketSize(801764L) + .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()) - .build())) - .build()) - .build()) - .build())) - .build()) - .build(); - - CreateshortcutResponse res = sdk.client().shortcuts().create() - .request(req) - .call(); - - if (res.createShortcutResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [CreateShortcutRequest](../../models/shared/CreateShortcutRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[CreateshortcutResponse](../../models/operations/CreateshortcutResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## delete - -Delete an existing user-generated shortcut. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.DeleteShortcutRequest; -import com.glean.api_client.glean_api_client.models.operations.DeleteshortcutResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - DeleteShortcutRequest req = DeleteShortcutRequest.builder() - .id(975862L) - .build(); - - DeleteshortcutResponse res = sdk.client().shortcuts().delete() - .request(req) - .call(); - - // handle response - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [DeleteShortcutRequest](../../models/shared/DeleteShortcutRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[DeleteshortcutResponse](../../models/operations/DeleteshortcutResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## retrieve - -Read a particular shortcut's details given its ID. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -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.operations.GetshortcutResponse; -import java.lang.Exception; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - GetShortcutRequestUnion req = GetShortcutRequestUnion.of(GetShortcutRequest.builder() - .alias("") - .build()); - - GetshortcutResponse res = sdk.client().shortcuts().retrieve() - .request(req) - .call(); - - if (res.getShortcutResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `request` | [GetShortcutRequestUnion](../../models/shared/GetShortcutRequestUnion.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[GetshortcutResponse](../../models/operations/GetshortcutResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## list - -List shortcuts editable/owned by the currently authenticated user. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.ListshortcutsResponse; -import java.lang.Exception; -import java.util.List; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("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(); - - if (res.listShortcutsPaginatedResponse().isPresent()) { - // handle response - } - } -} -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | -| `request` | [ListShortcutsPaginatedRequest](../../models/shared/ListShortcutsPaginatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - -### Response - -**[ListshortcutsResponse](../../models/operations/ListshortcutsResponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| models/errors/APIException | 4XX, 5XX | \*/\* | - -## update - -Updates the shortcut with the given ID. - -### Example Usage - - -```java -package hello.world; - -import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.components.*; -import com.glean.api_client.glean_api_client.models.operations.UpdateshortcutResponse; -import java.lang.Exception; -import java.time.LocalDate; -import java.time.OffsetDateTime; -import java.util.List; -import java.util.Map; - -public class Application { - - public static void main(String[] args) throws Exception { - - Glean sdk = Glean.builder() - .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) - .build(); - - UpdateShortcutRequest req = UpdateShortcutRequest.builder() - .id(268238L) - .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(801764L) - .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) + .ranges(List.of( + TextRange.builder() + .startIndex(352334L) + .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("scare following gadzooks woot translation") + .id(78594L) + .audienceFilters(List.of( + 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(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(776330L) + .build(), + Share.builder() + .numDaysAgo(776330L) + .build(), + Share.builder() + .numDaysAgo(776330L) + .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(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(234150L) + .build()) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build(), + TextRange.builder() + .startIndex(352334L) + .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("scare following gadzooks woot translation") + .id(78594L) + .audienceFilters(List.of( + 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(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(776330L) + .build(), + Share.builder() + .numDaysAgo(776330L) + .build(), + Share.builder() + .numDaysAgo(776330L) + .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(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(234150L) + .build()) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") .build())) - .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) .build(), - FacetFilterSet.builder() - .filters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) + TextRange.builder() + .startIndex(352334L) + .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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + 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())) - .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") + .collections(List.of( + Collection.builder() + .name("") + .description("scare following gadzooks woot translation") + .id(78594L) + .audienceFilters(List.of( + 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(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(776330L) + .build(), + Share.builder() + .numDaysAgo(776330L) + .build(), + Share.builder() + .numDaysAgo(776330L) + .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(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build())) + .lastReminder(Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(234150L) + .build()) + .build()) + .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(352334L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") + .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") - .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())) + .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()))) + .build(), + 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( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + 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(), + 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(801764L) + .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(), - 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("scare following gadzooks woot translation") - .id(78594L) - .audienceFilters(List.of( - 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(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(776330L) - .build(), - Share.builder() - .numDaysAgo(776330L) - .build(), - Share.builder() - .numDaysAgo(776330L) - .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(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) + .build())) + .facetFilterSets(List.of( + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(234150L) - .build()) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(352334L) - .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())) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("scare following gadzooks woot translation") - .id(78594L) - .audienceFilters(List.of( - 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(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(776330L) + .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(352334L) + .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(), - Share.builder() - .numDaysAgo(776330L) + 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(), - Share.builder() - .numDaysAgo(776330L) + 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("scare following gadzooks woot translation") + .id(78594L) + .audienceFilters(List.of( + 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(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .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(84322L) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(776330L) .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) + Share.builder() + .numDaysAgo(776330L) .build(), - Reminder.builder() + Share.builder() + .numDaysAgo(776330L) + .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(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(84322L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(234150L) .build()) - .remindAt(234150L) .build()) .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(352334L) - .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("scare following gadzooks woot translation") - .id(78594L) - .audienceFilters(List.of( - 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(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(776330L) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") .build(), - Share.builder() - .numDaysAgo(776330L) + Shortcut.builder() + .inputAlias("") .build(), - Share.builder() - .numDaysAgo(776330L) + Shortcut.builder() + .inputAlias("") .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .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(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(234150L) - .build()) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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(801764L) - .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(352334L) - .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("scare following gadzooks woot translation") - .id(78594L) - .audienceFilters(List.of( - 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(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(776330L) + TextRange.builder() + .startIndex(352334L) + .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(), - Share.builder() - .numDaysAgo(776330L) + 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(), - Share.builder() - .numDaysAgo(776330L) + 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("scare following gadzooks woot translation") + .id(78594L) + .audienceFilters(List.of( + 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(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .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(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(234150L) - .build()) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(352334L) - .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("scare following gadzooks woot translation") - .id(78594L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .shares(List.of( + Share.builder() + .numDaysAgo(776330L) .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + Share.builder() + .numDaysAgo(776330L) .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + Share.builder() + .numDaysAgo(776330L) .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(776330L) - .build(), - Share.builder() - .numDaysAgo(776330L) - .build(), - Share.builder() - .numDaysAgo(776330L) - .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(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build(), - Reminder.builder() + .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(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(84322L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(234150L) .build()) - .remindAt(234150L) .build()) .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(352334L) - .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("scare following gadzooks woot translation") - .id(78594L) - .audienceFilters(List.of( - 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(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(776330L) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") .build(), - Share.builder() - .numDaysAgo(776330L) + Shortcut.builder() + .inputAlias("") .build(), - Share.builder() - .numDaysAgo(776330L) + Shortcut.builder() + .inputAlias("") .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .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(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(234150L) - .build()) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - 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( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - 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(), - 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(801764L) - .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(), + TextRange.builder() + .startIndex(352334L) + .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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + 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())) - .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) + .collections(List.of( + Collection.builder() + .name("") + .description("scare following gadzooks woot translation") + .id(78594L) + .audienceFilters(List.of( + 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(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .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(352334L) - .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("scare following gadzooks woot translation") - .id(78594L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .shares(List.of( + Share.builder() + .numDaysAgo(776330L) .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + Share.builder() + .numDaysAgo(776330L) .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + Share.builder() + .numDaysAgo(776330L) .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(776330L) - .build(), - Share.builder() - .numDaysAgo(776330L) - .build(), - Share.builder() - .numDaysAgo(776330L) - .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(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build(), - Reminder.builder() + .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(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(84322L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(234150L) .build()) - .remindAt(234150L) .build()) .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(352334L) - .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("scare following gadzooks woot translation") - .id(78594L) - .audienceFilters(List.of( - 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(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(776330L) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") .build(), - Share.builder() - .numDaysAgo(776330L) + Shortcut.builder() + .inputAlias("") .build(), - Share.builder() - .numDaysAgo(776330L) + Shortcut.builder() + .inputAlias("") .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .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(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(234150L) - .build()) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(352334L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") + .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") - .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())) + .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(801764L) + .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(), - 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())) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("scare following gadzooks woot translation") - .id(78594L) - .audienceFilters(List.of( - 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(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .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(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .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(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(776330L) + .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(352334L) + .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(), - Share.builder() - .numDaysAgo(776330L) + 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(), - Share.builder() - .numDaysAgo(776330L) + 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())) - .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(84322L) + .collections(List.of( + Collection.builder() + .name("") + .description("scare following gadzooks woot translation") + .id(78594L) + .audienceFilters(List.of( + 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(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(776330L) .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) + Share.builder() + .numDaysAgo(776330L) .build(), - Reminder.builder() + Share.builder() + .numDaysAgo(776330L) + .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(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(84322L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(234150L) .build()) - .remindAt(234150L) .build()) .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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(801764L) - .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(), + TextRange.builder() + .startIndex(352334L) + .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(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + 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())) - .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) + .collections(List.of( + Collection.builder() + .name("") + .description("scare following gadzooks woot translation") + .id(78594L) + .audienceFilters(List.of( + 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(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .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(352334L) - .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("scare following gadzooks woot translation") - .id(78594L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .shares(List.of( + Share.builder() + .numDaysAgo(776330L) .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + Share.builder() + .numDaysAgo(776330L) .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + Share.builder() + .numDaysAgo(776330L) .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(776330L) - .build(), - Share.builder() - .numDaysAgo(776330L) - .build(), - Share.builder() - .numDaysAgo(776330L) - .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(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build(), - Reminder.builder() + .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(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(84322L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(234150L) .build()) - .remindAt(234150L) .build()) .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(352334L) - .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("scare following gadzooks woot translation") - .id(78594L) - .audienceFilters(List.of( - 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(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(776330L) + .build(), + TextRange.builder() + .startIndex(352334L) + .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(), - Share.builder() - .numDaysAgo(776330L) + 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(), - Share.builder() - .numDaysAgo(776330L) + 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())) - .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(84322L) + .collections(List.of( + Collection.builder() + .name("") + .description("scare following gadzooks woot translation") + .id(78594L) + .audienceFilters(List.of( + 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(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(56865L) + .itemType(CollectionItemItemType.URL) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) + .build())) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(776330L) .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) + Share.builder() + .numDaysAgo(776330L) .build(), - Reminder.builder() + Share.builder() + .numDaysAgo(776330L) + .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(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(84322L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(84322L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(234150L) .build()) - .remindAt(234150L) .build()) .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build())) - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .build()))) - .build()) - .build()) - .build(), - TextRange.builder() - .startIndex(352334L) - .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("scare following gadzooks woot translation") - .id(78594L) - .audienceFilters(List.of( - 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(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(56865L) - .itemType(CollectionItemItemType.URL) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build())) - .shares(List.of( - Share.builder() - .numDaysAgo(776330L) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") .build(), - Share.builder() - .numDaysAgo(776330L) + Shortcut.builder() + .inputAlias("") .build(), - Share.builder() - .numDaysAgo(776330L) + Shortcut.builder() + .inputAlias("") .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .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(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build(), - Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(84322L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") - .build()) - .remindAt(234150L) - .build()) - .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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("") + .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())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()))) + .build(), + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + 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()) - .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( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()))) - .build(), - CustomFieldData.builder() - .label("") - .values(List.of( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - 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())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .build(); - - UpdateshortcutResponse res = sdk.client().shortcuts().update() - .request(req) + .build())) + .build()) .call(); if (res.updateShortcutResponse().isPresent()) { @@ -4362,9 +4356,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [UpdateShortcutRequest](../../models/shared/UpdateShortcutRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `updateShortcutRequest` | [UpdateShortcutRequest](../../models/components/UpdateShortcutRequest.md) | :heavy_check_mark: | Shortcut content. Id need to be specified for the shortcut. | ### Response diff --git a/docs/sdks/collections/README.md b/docs/sdks/collections/README.md index 5923c35a..a3bd7ebb 100644 --- a/docs/sdks/collections/README.md +++ b/docs/sdks/collections/README.md @@ -36,12 +36,10 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - AddCollectionItemsRequest req = AddCollectionItemsRequest.builder() - .collectionId(7742.68) - .build(); - AddcollectionitemsResponse res = sdk.client().collections().addItems() - .request(req) + .addCollectionItemsRequest(AddCollectionItemsRequest.builder() + .collectionId(7742.68) + .build()) .call(); if (res.addCollectionItemsResponse().isPresent()) { @@ -53,9 +51,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `request` | [AddCollectionItemsRequest](../../models/shared/AddCollectionItemsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `addCollectionItemsRequest` | [AddCollectionItemsRequest](../../models/components/AddCollectionItemsRequest.md) | :heavy_check_mark: | Data describing the add operation. | ### Response @@ -95,607 +94,605 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - CreateCollectionRequest req = CreateCollectionRequest.builder() - .name("") - .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(977077L) - .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(86650L) - .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())) + CreatecollectionResponse res = sdk.client().collections().create() + .createCollectionRequest(CreateCollectionRequest.builder() + .name("") + .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(977077L) + .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())) - .collections(List.of( - Collection.builder() - .name("") - .description("meaty dial elegantly while react") - .id(854591L) - .audienceFilters(List.of( - 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())) - .items(List.of( - CollectionItem.builder() - .collectionId(697663L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - CollectionItem.builder() - .collectionId(697663L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .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(), - CollectionItem.builder() - .collectionId(697663L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() + .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(86650L) + .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())) - .shares(List.of( - Share.builder() - .numDaysAgo(365776L) - .build(), - Share.builder() - .numDaysAgo(365776L) - .build(), - Share.builder() - .numDaysAgo(365776L) + .collections(List.of( + Collection.builder() + .name("") + .description("meaty dial elegantly while react") + .id(854591L) + .audienceFilters(List.of( + 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(697663L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(697663L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(697663L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(365776L) + .build(), + Share.builder() + .numDaysAgo(365776L) + .build(), + Share.builder() + .numDaysAgo(365776L) + .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(268615L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(268615L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(423482L) .build()) - .remindAt(423482L) .build()) .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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(977077L) - .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) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") .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) + Shortcut.builder() + .inputAlias("") .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + Shortcut.builder() + .inputAlias("") .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") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(86650L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") + .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") - .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())) + .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(977077L) + .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())) - .collections(List.of( - Collection.builder() - .name("") - .description("meaty dial elegantly while react") - .id(854591L) - .audienceFilters(List.of( - 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())) - .items(List.of( - CollectionItem.builder() - .collectionId(697663L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - CollectionItem.builder() - .collectionId(697663L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .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(), - CollectionItem.builder() - .collectionId(697663L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() + .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(86650L) + .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())) - .shares(List.of( - Share.builder() - .numDaysAgo(365776L) - .build(), - Share.builder() - .numDaysAgo(365776L) - .build(), - Share.builder() - .numDaysAgo(365776L) + .collections(List.of( + Collection.builder() + .name("") + .description("meaty dial elegantly while react") + .id(854591L) + .audienceFilters(List.of( + 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(697663L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(697663L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(697663L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .build())) - .build()) - .verification(Verification.builder() - .state(State.DEPRECATED) - .metadata(VerificationMetadata.builder() - .reminders(List.of( - Reminder.builder() + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(365776L) + .build(), + Share.builder() + .numDaysAgo(365776L) + .build(), + Share.builder() + .numDaysAgo(365776L) + .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(268615L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(268615L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(423482L) .build()) - .remindAt(423482L) .build()) .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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("") + .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())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() + .datasource("github") + .handle("") + .build(), + DatasourceProfile.builder() .datasource("github") + .handle("") .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .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(), - ChannelInviteInfo.builder() + CustomFieldData.builder() + .label("") + .values(List.of( + CustomFieldValue.of(CustomFieldValueStr.builder() + .build()), + 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()) - .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( - CustomFieldValue.of(CustomFieldValueStr.builder() - .build()), - 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.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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .audienceFilters(List.of( - 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) + .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()) .call(); if (res.oneOf().isPresent()) { @@ -707,9 +704,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `request` | [CreateCollectionRequest](../../models/shared/CreateCollectionRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `createCollectionRequest` | [CreateCollectionRequest](../../models/components/CreateCollectionRequest.md) | :heavy_check_mark: | Collection content plus any additional metadata for the request. | ### Response @@ -747,15 +745,13 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - DeleteCollectionRequest req = DeleteCollectionRequest.builder() - .ids(List.of( - 930352L, - 156719L, - 25102L)) - .build(); - DeletecollectionResponse res = sdk.client().collections().delete() - .request(req) + .deleteCollectionRequest(DeleteCollectionRequest.builder() + .ids(List.of( + 930352L, + 156719L, + 25102L)) + .build()) .call(); // handle response @@ -765,9 +761,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `request` | [DeleteCollectionRequest](../../models/shared/DeleteCollectionRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `deleteCollectionRequest` | [DeleteCollectionRequest](../../models/components/DeleteCollectionRequest.md) | :heavy_check_mark: | DeleteCollection request | ### Response @@ -803,13 +800,11 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - DeleteCollectionItemRequest req = DeleteCollectionItemRequest.builder() - .collectionId(6980.49) - .itemId("") - .build(); - DeletecollectionitemResponse res = sdk.client().collections().deleteItem() - .request(req) + .deleteCollectionItemRequest(DeleteCollectionItemRequest.builder() + .collectionId(6980.49) + .itemId("") + .build()) .call(); if (res.deleteCollectionItemResponse().isPresent()) { @@ -821,9 +816,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `request` | [DeleteCollectionItemRequest](../../models/shared/DeleteCollectionItemRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `deleteCollectionItemRequest` | [DeleteCollectionItemRequest](../../models/components/DeleteCollectionItemRequest.md) | :heavy_check_mark: | Data describing the delete operation. | ### Response @@ -863,978 +859,976 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - EditCollectionRequest req = EditCollectionRequest.builder() - .name("") - .id(671264L) - .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(797260L) - .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(932928L) - .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())) + EditcollectionResponse res = sdk.client().collections().update() + .editCollectionRequest(EditCollectionRequest.builder() + .name("") + .id(671264L) + .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(797260L) + .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(), - 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())) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("how by extroverted excess kissingly scruple yearningly") - .id(416110L) - .audienceFilters(List.of( - 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(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .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(), - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("how by extroverted excess kissingly scruple yearningly") - .id(416110L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() + .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(932928L) + .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(), - Reaction.builder() + 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())) - .shares(List.of( - Share.builder() - .numDaysAgo(927933L) - .build(), - Share.builder() - .numDaysAgo(927933L) + .collections(List.of( + Collection.builder() + .name("") + .description("how by extroverted excess kissingly scruple yearningly") + .id(416110L) + .audienceFilters(List.of( + 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(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .build(), - Share.builder() - .numDaysAgo(927933L) + Collection.builder() + .name("") + .description("how by extroverted excess kissingly scruple yearningly") + .id(416110L) + .audienceFilters(List.of( + 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(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .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(353914L) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(927933L) .build(), - Reminder.builder() + Share.builder() + .numDaysAgo(927933L) + .build(), + Share.builder() + .numDaysAgo(927933L) + .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(353914L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(353914L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(353914L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(314497L) .build()) - .remindAt(314497L) .build()) .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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(797260L) - .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) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + Shortcut.builder() + .inputAlias("") .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") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(932928L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") + .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") - .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())) + .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(797260L) + .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(), - 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())) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("how by extroverted excess kissingly scruple yearningly") - .id(416110L) - .audienceFilters(List.of( - 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(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .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(), - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build())) - .build(), - Collection.builder() - .name("") - .description("how by extroverted excess kissingly scruple yearningly") - .id(416110L) - .audienceFilters(List.of( - FacetFilter.builder() - .fieldName("type") - .values(List.of( - FacetFilterValue.builder() - .value("Spreadsheet") - .relationType(RelationType.EQUALS) - .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) - .build())) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .items(List.of( - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() + .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(932928L) + .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(), - Reaction.builder() - .build(), - Reaction.builder() + 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())) - .shares(List.of( - Share.builder() - .numDaysAgo(927933L) - .build(), - Share.builder() - .numDaysAgo(927933L) + .collections(List.of( + Collection.builder() + .name("") + .description("how by extroverted excess kissingly scruple yearningly") + .id(416110L) + .audienceFilters(List.of( + 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(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .build(), - Share.builder() - .numDaysAgo(927933L) + Collection.builder() + .name("") + .description("how by extroverted excess kissingly scruple yearningly") + .id(416110L) + .audienceFilters(List.of( + 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(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .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(353914L) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(927933L) .build(), - Reminder.builder() + Share.builder() + .numDaysAgo(927933L) + .build(), + Share.builder() + .numDaysAgo(927933L) + .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(353914L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(353914L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(353914L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(314497L) .build()) - .remindAt(314497L) .build()) .build()) - .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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(797260L) - .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) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") .build(), - FacetFilterValue.builder() - .value("Presentation") - .relationType(RelationType.EQUALS) + Shortcut.builder() + .inputAlias("") .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") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) .build())) + .inputDetails(SearchRequestInputDetails.builder() + .hasCopyPaste(true) + .build()) .build()) - .ranges(List.of( - TextRange.builder() - .startIndex(932928L) - .document(Document.builder() - .metadata(DocumentMetadata.builder() - .datasource("datasource") - .objectType("Feature Request") - .container("container") - .parentId("JIRA_EN-1337") + .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") - .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())) + .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(797260L) + .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(), - 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())) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .collections(List.of( - Collection.builder() - .name("") - .description("how by extroverted excess kissingly scruple yearningly") - .id(416110L) - .audienceFilters(List.of( - 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(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .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(), - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) - .build(), - Collection.builder() - .name("") - .description("how by extroverted excess kissingly scruple yearningly") - .id(416110L) - .audienceFilters(List.of( - 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(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) - .build(), - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + .build())) + .build(), + FacetFilterSet.builder() + .filters(List.of( + FacetFilter.builder() + .fieldName("type") + .values(List.of( + FacetFilterValue.builder() + .value("Spreadsheet") + .relationType(RelationType.EQUALS) .build(), - CollectionItem.builder() - .collectionId(959645L) - .itemType(CollectionItemItemType.TEXT) - .shortcut(Shortcut.builder() - .inputAlias("") - .build()) + FacetFilterValue.builder() + .value("Presentation") + .relationType(RelationType.EQUALS) .build())) .build())) - .interactions(DocumentInteractions.builder() - .reacts(List.of( - Reaction.builder() - .build(), - Reaction.builder() + .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(932928L) + .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(), - Reaction.builder() + 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())) - .shares(List.of( - Share.builder() - .numDaysAgo(927933L) + .collections(List.of( + Collection.builder() + .name("") + .description("how by extroverted excess kissingly scruple yearningly") + .id(416110L) + .audienceFilters(List.of( + 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(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .build(), - Share.builder() - .numDaysAgo(927933L) - .build(), - Share.builder() - .numDaysAgo(927933L) + Collection.builder() + .name("") + .description("how by extroverted excess kissingly scruple yearningly") + .id(416110L) + .audienceFilters(List.of( + 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(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build(), + CollectionItem.builder() + .collectionId(959645L) + .itemType(CollectionItemItemType.TEXT) + .shortcut(Shortcut.builder() + .inputAlias("") + .build()) + .build())) .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(353914L) + .interactions(DocumentInteractions.builder() + .reacts(List.of( + Reaction.builder() + .build(), + Reaction.builder() + .build(), + Reaction.builder() + .build())) + .shares(List.of( + Share.builder() + .numDaysAgo(927933L) + .build(), + Share.builder() + .numDaysAgo(927933L) .build(), - Reminder.builder() + Share.builder() + .numDaysAgo(927933L) + .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(353914L) + .build(), + Reminder.builder() + .assignee(Person.builder() + .name("George Clooney") + .obfuscatedId("abc123") + .build()) + .remindAt(353914L) + .build())) + .lastReminder(Reminder.builder() .assignee(Person.builder() .name("George Clooney") .obfuscatedId("abc123") .build()) - .remindAt(353914L) - .build())) - .lastReminder(Reminder.builder() - .assignee(Person.builder() - .name("George Clooney") - .obfuscatedId("abc123") + .remindAt(314497L) .build()) - .remindAt(314497L) .build()) .build()) + .shortcuts(List.of( + Shortcut.builder() + .inputAlias("") + .build(), + Shortcut.builder() + .inputAlias("") + .build())) + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) .build()) - .shortcuts(List.of( - Shortcut.builder() - .inputAlias("") - .build(), - Shortcut.builder() - .inputAlias("") - .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(), - DatasourceProfile.builder() - .datasource("github") - .handle("") + .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())) - .querySuggestions(QuerySuggestionList.builder() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .metadata(PersonMetadata.builder() + .type(PersonMetadataType.FULL_TIME) + .title("Actor") + .department("Movies") + .email("george@example.com") + .location("Hollywood, CA") + .phone("6505551234") + .photoUrl("https://example.com/george.jpg") + .startDate(LocalDate.parse("2000-01-23")) + .datasourceProfile(List.of( + DatasourceProfile.builder() .datasource("github") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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())) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .badges(List.of( - Badge.builder() - .key("deployment_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() - .suggestions(List.of( - QuerySuggestion.builder() - .query("app:github type:pull author:mortimer") - .label("Mortimer's PRs") + .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") - .build())) - .build()) - .inviteInfo(InviteInfo.builder() - .invites(List.of( - ChannelInviteInfo.builder() + .handle("") .build(), - ChannelInviteInfo.builder() + DatasourceProfile.builder() + .datasource("github") + .handle("") .build(), - ChannelInviteInfo.builder() + 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()) + .badges(List.of( + Badge.builder() + .key("deployment_name_new_hire") + .displayName("New hire") + .iconConfig(IconConfig.builder() + .color("#343CED") + .key("person_icon") + .iconType(IconType.GLYPH) + .name("user") + .build()) .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())) - .audienceFilters(List.of( - 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) + .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()) .call(); if (res.editCollectionResponse().isPresent()) { @@ -1846,9 +1840,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [EditCollectionRequest](../../models/shared/EditCollectionRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `editCollectionRequest` | [EditCollectionRequest](../../models/components/EditCollectionRequest.md) | :heavy_check_mark: | Collection content plus any additional metadata for the request. | ### Response @@ -1884,13 +1879,11 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - EditCollectionItemRequest req = EditCollectionItemRequest.builder() - .collectionId(142375L) - .itemId("") - .build(); - EditcollectionitemResponse res = sdk.client().collections().updateItem() - .request(req) + .editCollectionItemRequest(EditCollectionItemRequest.builder() + .collectionId(142375L) + .itemId("") + .build()) .call(); if (res.editCollectionItemResponse().isPresent()) { @@ -1902,9 +1895,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | -| `request` | [EditCollectionItemRequest](../../models/shared/EditCollectionItemRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `editCollectionItemRequest` | [EditCollectionItemRequest](../../models/components/EditCollectionItemRequest.md) | :heavy_check_mark: | Edit Collection Items request | ### Response @@ -1939,12 +1933,10 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - GetCollectionRequest req = GetCollectionRequest.builder() - .id(425335L) - .build(); - GetcollectionResponse res = sdk.client().collections().retrieve() - .request(req) + .getCollectionRequest(GetCollectionRequest.builder() + .id(425335L) + .build()) .call(); if (res.getCollectionResponse().isPresent()) { @@ -1956,9 +1948,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `request` | [GetCollectionRequest](../../models/shared/GetCollectionRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getCollectionRequest` | [GetCollectionRequest](../../models/components/GetCollectionRequest.md) | :heavy_check_mark: | GetCollection request | ### Response @@ -1993,11 +1986,9 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - ListCollectionsRequest req = ListCollectionsRequest.builder() - .build(); - ListcollectionsResponse res = sdk.client().collections().list() - .request(req) + .listCollectionsRequest(ListCollectionsRequest.builder() + .build()) .call(); if (res.listCollectionsResponse().isPresent()) { @@ -2009,9 +2000,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `request` | [ListCollectionsRequest](../../models/shared/ListCollectionsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `listCollectionsRequest` | [ListCollectionsRequest](../../models/components/ListCollectionsRequest.md) | :heavy_check_mark: | ListCollections request | ### Response diff --git a/docs/sdks/entities/README.md b/docs/sdks/entities/README.md index e1dfa491..a06919a5 100644 --- a/docs/sdks/entities/README.md +++ b/docs/sdks/entities/README.md @@ -31,25 +31,23 @@ public class Application { .apiToken(System.getenv().getOrDefault("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) + .listEntitiesRequest(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()) .call(); if (res.listEntitiesResponse().isPresent()) { @@ -61,9 +59,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `request` | [ListEntitiesRequest](../../models/shared/ListEntitiesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `listEntitiesRequest` | [ListEntitiesRequest](../../models/components/ListEntitiesRequest.md) | :heavy_check_mark: | List people request | ### Response @@ -99,14 +98,12 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - PeopleRequest req = PeopleRequest.builder() - .obfuscatedIds(List.of( - "abc123", - "abc456")) - .build(); - PeopleResponse res = sdk.client().entities().readPeople() - .request(req) + .peopleRequest(PeopleRequest.builder() + .obfuscatedIds(List.of( + "abc123", + "abc456")) + .build()) .call(); if (res.peopleResponse().isPresent()) { @@ -118,9 +115,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `request` | [PeopleRequest](../../models/shared/PeopleRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `peopleRequest` | [PeopleRequest](../../models/components/PeopleRequest.md) | :heavy_check_mark: | People request | {
"obfuscatedIds": [
"abc123",
"abc456"
]
} | ### Response diff --git a/docs/sdks/insights/README.md b/docs/sdks/insights/README.md index 5bc8a59c..ff2afa40 100644 --- a/docs/sdks/insights/README.md +++ b/docs/sdks/insights/README.md @@ -29,11 +29,9 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - InsightsRequest req = InsightsRequest.builder() - .build(); - InsightsResponse res = sdk.client().insights().retrieve() - .request(req) + .insightsRequest(InsightsRequest.builder() + .build()) .call(); if (res.insightsResponse().isPresent()) { @@ -45,9 +43,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `request` | [InsightsRequest](../../models/shared/InsightsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `insightsRequest` | [InsightsRequest](../../models/components/InsightsRequest.md) | :heavy_check_mark: | Includes request parameters for insights requests. | ### Response diff --git a/docs/sdks/messages/README.md b/docs/sdks/messages/README.md index 974b07ba..aa17ed65 100644 --- a/docs/sdks/messages/README.md +++ b/docs/sdks/messages/README.md @@ -29,14 +29,12 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - MessagesRequest req = MessagesRequest.builder() - .idType(IdType.CONVERSATION_ID) - .id("") - .datasource(Datasource.GCHAT) - .build(); - MessagesResponse res = sdk.client().messages().retrieve() - .request(req) + .messagesRequest(MessagesRequest.builder() + .idType(IdType.CONVERSATION_ID) + .id("") + .datasource(Datasource.GCHAT) + .build()) .call(); if (res.messagesResponse().isPresent()) { @@ -48,9 +46,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `request` | [MessagesRequest](../../models/shared/MessagesRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `messagesRequest` | [MessagesRequest](../../models/components/MessagesRequest.md) | :heavy_check_mark: | Includes request params such as the id for channel/message and direction. | ### Response diff --git a/docs/sdks/pins/README.md b/docs/sdks/pins/README.md index 39fa371e..620ef6e1 100644 --- a/docs/sdks/pins/README.md +++ b/docs/sdks/pins/README.md @@ -34,24 +34,22 @@ public class Application { .apiToken(System.getenv().getOrDefault("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) + .editPinRequest(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()) .call(); if (res.pinDocument().isPresent()) { @@ -63,9 +61,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `request` | [EditPinRequest](../../models/shared/EditPinRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `editPinRequest` | [EditPinRequest](../../models/components/EditPinRequest.md) | :heavy_check_mark: | Edit pins request | ### Response @@ -100,11 +99,9 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - GetPinRequest req = GetPinRequest.builder() - .build(); - GetpinResponse res = sdk.client().pins().retrieve() - .request(req) + .getPinRequest(GetPinRequest.builder() + .build()) .call(); if (res.getPinResponse().isPresent()) { @@ -116,9 +113,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `request` | [GetPinRequest](../../models/shared/GetPinRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `getPinRequest` | [GetPinRequest](../../models/components/GetPinRequest.md) | :heavy_check_mark: | Get pin request | ### Response @@ -141,7 +139,7 @@ Lists all pins. package hello.world; import com.glean.api_client.glean_api_client.Glean; -import com.glean.api_client.glean_api_client.models.operations.ListpinsRequest; +import com.glean.api_client.glean_api_client.models.operations.ListpinsRequestBody; import com.glean.api_client.glean_api_client.models.operations.ListpinsResponse; import java.lang.Exception; @@ -153,11 +151,9 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - ListpinsRequest req = ListpinsRequest.builder() - .build(); - ListpinsResponse res = sdk.client().pins().list() - .request(req) + .requestBody(ListpinsRequestBody.builder() + .build()) .call(); if (res.listPinsResponse().isPresent()) { @@ -169,9 +165,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `request` | [ListpinsRequest](../../models/operations/ListpinsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `requestBody` | [ListpinsRequestBody](../../models/operations/ListpinsRequestBody.md) | :heavy_check_mark: | List pins request | ### Response @@ -207,24 +204,22 @@ public class Application { .apiToken(System.getenv().getOrDefault("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) + .pinRequest(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()) .call(); if (res.pinDocument().isPresent()) { @@ -236,9 +231,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | -| `request` | [PinRequest](../../models/shared/PinRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `pinRequest` | [PinRequest](../../models/components/PinRequest.md) | :heavy_check_mark: | Details about the document and query for the pin. | ### Response @@ -273,11 +269,9 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - Unpin req = Unpin.builder() - .build(); - UnpinResponse res = sdk.client().pins().remove() - .request(req) + .unpin(Unpin.builder() + .build()) .call(); // handle response @@ -287,9 +281,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | ------------------------------------------ | -| `request` | [Unpin](../../models/shared/Unpin.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `unpin` | [Unpin](../../models/components/Unpin.md) | :heavy_check_mark: | Details about the pin being unpinned. | ### Response diff --git a/docs/sdks/search/README.md b/docs/sdks/search/README.md index 07334ecb..ea7bc796 100644 --- a/docs/sdks/search/README.md +++ b/docs/sdks/search/README.md @@ -35,38 +35,36 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - SearchRequest req = SearchRequest.builder() - .query("vacation policy") - .trackingToken("trackingToken") - .pageSize(10L) - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(421489L) - .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) + .searchRequest(SearchRequest.builder() + .query("vacation policy") + .trackingToken("trackingToken") + .pageSize(10L) + .requestOptions(SearchRequestOptions.builder() + .facetBucketSize(421489L) + .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()) .call(); if (res.searchResponse().isPresent()) { @@ -78,9 +76,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `request` | [SearchRequest](../../models/shared/SearchRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `searchRequest` | [SearchRequest](../../models/components/SearchRequest.md) | :heavy_check_mark: | Admin search request | {
"trackingToken": "trackingToken",
"query": "vacation policy",
"pageSize": 10,
"requestOptions": {
"facetFilters": [
{
"fieldName": "type",
"values": [
{
"value": "article",
"relationType": "EQUALS"
},
{
"value": "document",
"relationType": "EQUALS"
}
]
},
{
"fieldName": "department",
"values": [
{
"value": "engineering",
"relationType": "EQUALS"
}
]
}
]
}
} | ### Response @@ -116,15 +115,13 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - AutocompleteRequest req = AutocompleteRequest.builder() - .trackingToken("trackingToken") - .query("what is a que") - .datasource("GDRIVE") - .resultSize(10L) - .build(); - AutocompleteResponse res = sdk.client().search().autocomplete() - .request(req) + .autocompleteRequest(AutocompleteRequest.builder() + .trackingToken("trackingToken") + .query("what is a que") + .datasource("GDRIVE") + .resultSize(10L) + .build()) .call(); if (res.autocompleteResponse().isPresent()) { @@ -136,9 +133,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `request` | [AutocompleteRequest](../../models/shared/AutocompleteRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `autocompleteRequest` | [AutocompleteRequest](../../models/components/AutocompleteRequest.md) | :heavy_check_mark: | Autocomplete request | {
"trackingToken": "trackingToken",
"query": "what is a que",
"datasource": "GDRIVE",
"resultSize": 10
} | ### Response @@ -173,12 +171,10 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - FeedRequest req = FeedRequest.builder() - .timeoutMillis(5000L) - .build(); - FeedResponse res = sdk.client().search().retrieveFeed() - .request(req) + .feedRequest(FeedRequest.builder() + .timeoutMillis(5000L) + .build()) .call(); if (res.feedResponse().isPresent()) { @@ -190,9 +186,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | -| `request` | [FeedRequest](../../models/shared/FeedRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `feedRequest` | [FeedRequest](../../models/components/FeedRequest.md) | :heavy_check_mark: | Includes request params, client data and more for making user's feed. | ### Response @@ -230,126 +227,9 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - RecommendationsRequest req = RecommendationsRequest.builder() - .sourceDocument(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("abc123") - .build()) - .components(List.of( - "Backend", - "Networking")) - .status("[\"Done\"]") - .customData(Map.ofEntries( - Map.entry("someCustomField", CustomDataValue.builder() - .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(), - 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())) - .context(Document.builder() + RecommendationsResponse res = sdk.client().search().recommendations() + .recommendationsRequest(RecommendationsRequest.builder() + .sourceDocument(Document.builder() .containerDocument(Document.builder() .metadata(DocumentMetadata.builder() .datasource("datasource") @@ -418,11 +298,126 @@ public class Application { .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(), + 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())) + .context(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("abc123") + .build()) + .components(List.of( + "Backend", + "Networking")) + .status("[\"Done\"]") + .customData(Map.ofEntries( + Map.entry("someCustomField", CustomDataValue.builder() + .build()))) + .build()) + .build()) + .build()) .build()) - .build(); - - RecommendationsResponse res = sdk.client().search().recommendations() - .request(req) .call(); if (res.resultsResponse().isPresent()) { @@ -434,9 +429,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `request` | [RecommendationsRequest](../../models/shared/RecommendationsRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `recommendationsRequest` | [RecommendationsRequest](../../models/components/RecommendationsRequest.md) | :heavy_check_mark: | Recommendations request | ### Response @@ -473,38 +469,36 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - SearchRequest req = SearchRequest.builder() - .query("vacation policy") - .trackingToken("trackingToken") - .pageSize(10L) - .requestOptions(SearchRequestOptions.builder() - .facetBucketSize(400611L) - .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(); - SearchResponse res = sdk.client().search().query() - .request(req) + .searchRequest(SearchRequest.builder() + .query("vacation policy") + .trackingToken("trackingToken") + .pageSize(10L) + .requestOptions(SearchRequestOptions.builder() + .facetBucketSize(400611L) + .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()) .call(); if (res.searchResponse().isPresent()) { @@ -516,9 +510,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `request` | [SearchRequest](../../models/shared/SearchRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | | +| `searchRequest` | [SearchRequest](../../models/components/SearchRequest.md) | :heavy_check_mark: | Search request | {
"trackingToken": "trackingToken",
"query": "vacation policy",
"pageSize": 10,
"requestOptions": {
"facetFilters": [
{
"fieldName": "type",
"values": [
{
"value": "article",
"relationType": "EQUALS"
},
{
"value": "document",
"relationType": "EQUALS"
}
]
},
{
"fieldName": "department",
"values": [
{
"value": "engineering",
"relationType": "EQUALS"
}
]
}
]
}
} | ### Response diff --git a/docs/sdks/verification/README.md b/docs/sdks/verification/README.md index d4a6ac62..c688da66 100644 --- a/docs/sdks/verification/README.md +++ b/docs/sdks/verification/README.md @@ -31,12 +31,10 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - ReminderRequest req = ReminderRequest.builder() - .documentId("") - .build(); - AddverificationreminderResponse res = sdk.client().verification().addReminder() - .request(req) + .reminderRequest(ReminderRequest.builder() + .documentId("") + .build()) .call(); if (res.verification().isPresent()) { @@ -48,9 +46,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | -| `request` | [ReminderRequest](../../models/shared/ReminderRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `reminderRequest` | [ReminderRequest](../../models/components/ReminderRequest.md) | :heavy_check_mark: | Details about the reminder. | ### Response @@ -96,9 +95,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------- | ------------------------------------- | ------------------------------------- | ------------------------------------- | -| `count` | *Optional\* | :heavy_minus_sign: | Maximum number of documents to return | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `count` | *Optional\* | :heavy_minus_sign: | Maximum number of documents to return | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | ### Response @@ -133,12 +133,10 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - VerifyRequest req = VerifyRequest.builder() - .documentId("") - .build(); - VerifyResponse res = sdk.client().verification().verify() - .request(req) + .verifyRequest(VerifyRequest.builder() + .documentId("") + .build()) .call(); if (res.verification().isPresent()) { @@ -150,9 +148,10 @@ public class Application { ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------- | -| `request` | [VerifyRequest](../../models/shared/VerifyRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `locale` | *Optional\* | :heavy_minus_sign: | The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. | +| `verifyRequest` | [VerifyRequest](../../models/components/VerifyRequest.md) | :heavy_check_mark: | Details about the verification request. | ### Response diff --git a/gradle.properties b/gradle.properties index 83eebbcd..95fe7a04 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.glean.api-client artifactId=glean-api-client -version=0.12.14 +version=0.12.15 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g 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 2fe1844c..99f66226 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 @@ -72,7 +72,7 @@ public GetAgentRequestBuilder retrieve() { * @throws RuntimeException subclass if the API call fails */ public GetAgentResponse retrieve(String agentId) { - return retrieve(Optional.empty(), agentId); + return retrieve(Optional.empty(), Optional.empty(), agentId); } /** @@ -81,15 +81,19 @@ public GetAgentResponse retrieve(String agentId) { *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent * Builder. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetAgentResponse retrieve(Optional timezoneOffset, String agentId) { + public GetAgentResponse retrieve( + Optional locale, Optional timezoneOffset, + String agentId) { GetAgentRequest request = GetAgentRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .agentId(agentId) .build(); @@ -121,7 +125,7 @@ public GetAgentSchemasRequestBuilder retrieveSchemas() { * @throws RuntimeException subclass if the API call fails */ public GetAgentSchemasResponse retrieveSchemas(String agentId) { - return retrieveSchemas(Optional.empty(), agentId); + return retrieveSchemas(Optional.empty(), Optional.empty(), agentId); } /** @@ -130,15 +134,19 @@ public GetAgentSchemasResponse retrieveSchemas(String agentId) { *

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 locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetAgentSchemasResponse retrieveSchemas(Optional timezoneOffset, String agentId) { + public GetAgentSchemasResponse retrieveSchemas( + Optional locale, Optional timezoneOffset, + String agentId) { GetAgentSchemasRequest request = GetAgentSchemasRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .agentId(agentId) .build(); diff --git a/src/main/java/com/glean/api_client/glean_api_client/Announcements.java b/src/main/java/com/glean/api_client/glean_api_client/Announcements.java index 0e6fdd78..bcff2798 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Announcements.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Announcements.java @@ -8,16 +8,21 @@ import com.glean.api_client.glean_api_client.models.components.CreateAnnouncementRequest; import com.glean.api_client.glean_api_client.models.components.DeleteAnnouncementRequest; import com.glean.api_client.glean_api_client.models.components.UpdateAnnouncementRequest; +import com.glean.api_client.glean_api_client.models.operations.CreateannouncementRequest; import com.glean.api_client.glean_api_client.models.operations.CreateannouncementRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.CreateannouncementResponse; +import com.glean.api_client.glean_api_client.models.operations.DeleteannouncementRequest; import com.glean.api_client.glean_api_client.models.operations.DeleteannouncementRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.DeleteannouncementResponse; +import com.glean.api_client.glean_api_client.models.operations.UpdateannouncementRequest; import com.glean.api_client.glean_api_client.models.operations.UpdateannouncementRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.UpdateannouncementResponse; import com.glean.api_client.glean_api_client.operations.Createannouncement; import com.glean.api_client.glean_api_client.operations.Deleteannouncement; import com.glean.api_client.glean_api_client.operations.Updateannouncement; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; public class Announcements { @@ -55,12 +60,32 @@ 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. + * @param createAnnouncementRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public CreateannouncementResponse create(CreateAnnouncementRequest request) { - RequestOperation operation + public CreateannouncementResponse create(CreateAnnouncementRequest createAnnouncementRequest) { + return create(Optional.empty(), createAnnouncementRequest); + } + + /** + * Create Announcement + * + *

Create a textual announcement visible to some set of users based on department and location. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param createAnnouncementRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateannouncementResponse create(Optional locale, CreateAnnouncementRequest createAnnouncementRequest) { + CreateannouncementRequest request = + CreateannouncementRequest + .builder() + .locale(locale) + .createAnnouncementRequest(createAnnouncementRequest) + .build(); + RequestOperation operation = new Createannouncement.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -81,12 +106,32 @@ public DeleteannouncementRequestBuilder delete() { * *

Delete an existing user-generated announcement. * - * @param request The request object containing all the parameters for the API call. + * @param deleteAnnouncementRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteannouncementResponse delete(DeleteAnnouncementRequest deleteAnnouncementRequest) { + return delete(Optional.empty(), deleteAnnouncementRequest); + } + + /** + * Delete Announcement + * + *

Delete an existing user-generated announcement. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param deleteAnnouncementRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public DeleteannouncementResponse delete(DeleteAnnouncementRequest request) { - RequestOperation operation + public DeleteannouncementResponse delete(Optional locale, DeleteAnnouncementRequest deleteAnnouncementRequest) { + DeleteannouncementRequest request = + DeleteannouncementRequest + .builder() + .locale(locale) + .deleteAnnouncementRequest(deleteAnnouncementRequest) + .build(); + RequestOperation operation = new Deleteannouncement.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -107,12 +152,32 @@ 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. + * @param updateAnnouncementRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateannouncementResponse update(UpdateAnnouncementRequest updateAnnouncementRequest) { + return update(Optional.empty(), updateAnnouncementRequest); + } + + /** + * Update Announcement + * + *

Update a textual announcement visible to some set of users based on department and location. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param updateAnnouncementRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public UpdateannouncementResponse update(UpdateAnnouncementRequest request) { - RequestOperation operation + public UpdateannouncementResponse update(Optional locale, UpdateAnnouncementRequest updateAnnouncementRequest) { + UpdateannouncementRequest request = + UpdateannouncementRequest + .builder() + .locale(locale) + .updateAnnouncementRequest(updateAnnouncementRequest) + .build(); + RequestOperation operation = new Updateannouncement.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/Answers.java b/src/main/java/com/glean/api_client/glean_api_client/Answers.java index 755a5079..c890f202 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Answers.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Answers.java @@ -10,14 +10,19 @@ import com.glean.api_client.glean_api_client.models.components.EditAnswerRequest; import com.glean.api_client.glean_api_client.models.components.GetAnswerRequest; import com.glean.api_client.glean_api_client.models.components.ListAnswersRequest; +import com.glean.api_client.glean_api_client.models.operations.CreateanswerRequest; import com.glean.api_client.glean_api_client.models.operations.CreateanswerRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.CreateanswerResponse; +import com.glean.api_client.glean_api_client.models.operations.DeleteanswerRequest; import com.glean.api_client.glean_api_client.models.operations.DeleteanswerRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.DeleteanswerResponse; +import com.glean.api_client.glean_api_client.models.operations.EditanswerRequest; import com.glean.api_client.glean_api_client.models.operations.EditanswerRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.EditanswerResponse; +import com.glean.api_client.glean_api_client.models.operations.GetanswerRequest; import com.glean.api_client.glean_api_client.models.operations.GetanswerRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.GetanswerResponse; +import com.glean.api_client.glean_api_client.models.operations.ListanswersRequest; import com.glean.api_client.glean_api_client.models.operations.ListanswersRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.ListanswersResponse; import com.glean.api_client.glean_api_client.operations.Createanswer; @@ -27,6 +32,8 @@ import com.glean.api_client.glean_api_client.operations.Listanswers; import com.glean.api_client.glean_api_client.utils.Headers; import java.lang.Deprecated; +import java.lang.String; +import java.util.Optional; public class Answers { @@ -64,12 +71,32 @@ 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. + * @param createAnswerRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public CreateanswerResponse create(CreateAnswerRequest request) { - RequestOperation operation + public CreateanswerResponse create(CreateAnswerRequest createAnswerRequest) { + return create(Optional.empty(), createAnswerRequest); + } + + /** + * Create Answer + * + *

Create a user-generated Answer that contains a question and answer. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param createAnswerRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateanswerResponse create(Optional locale, CreateAnswerRequest createAnswerRequest) { + CreateanswerRequest request = + CreateanswerRequest + .builder() + .locale(locale) + .createAnswerRequest(createAnswerRequest) + .build(); + RequestOperation operation = new Createanswer.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -90,12 +117,32 @@ public DeleteanswerRequestBuilder delete() { * *

Delete an existing user-generated Answer. * - * @param request The request object containing all the parameters for the API call. + * @param deleteAnswerRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteanswerResponse delete(DeleteAnswerRequest deleteAnswerRequest) { + return delete(Optional.empty(), deleteAnswerRequest); + } + + /** + * Delete Answer + * + *

Delete an existing user-generated Answer. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param deleteAnswerRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public DeleteanswerResponse delete(DeleteAnswerRequest request) { - RequestOperation operation + public DeleteanswerResponse delete(Optional locale, DeleteAnswerRequest deleteAnswerRequest) { + DeleteanswerRequest request = + DeleteanswerRequest + .builder() + .locale(locale) + .deleteAnswerRequest(deleteAnswerRequest) + .build(); + RequestOperation operation = new Deleteanswer.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -116,12 +163,32 @@ public EditanswerRequestBuilder update() { * *

Update an existing user-generated Answer. * - * @param request The request object containing all the parameters for the API call. + * @param editAnswerRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public EditanswerResponse update(EditAnswerRequest request) { - RequestOperation operation + public EditanswerResponse update(EditAnswerRequest editAnswerRequest) { + return update(Optional.empty(), editAnswerRequest); + } + + /** + * Update Answer + * + *

Update an existing user-generated Answer. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param editAnswerRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public EditanswerResponse update(Optional locale, EditAnswerRequest editAnswerRequest) { + EditanswerRequest request = + EditanswerRequest + .builder() + .locale(locale) + .editAnswerRequest(editAnswerRequest) + .build(); + RequestOperation operation = new Editanswer.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -142,12 +209,32 @@ 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. + * @param getAnswerRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetanswerResponse retrieve(GetAnswerRequest request) { - RequestOperation operation + public GetanswerResponse retrieve(GetAnswerRequest getAnswerRequest) { + return retrieve(Optional.empty(), getAnswerRequest); + } + + /** + * Read Answer + * + *

Read the details of a particular Answer given its ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getAnswerRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetanswerResponse retrieve(Optional locale, GetAnswerRequest getAnswerRequest) { + GetanswerRequest request = + GetanswerRequest + .builder() + .locale(locale) + .getAnswerRequest(getAnswerRequest) + .build(); + RequestOperation operation = new Getanswer.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -158,7 +245,7 @@ public GetanswerResponse retrieve(GetAnswerRequest request) { *

List Answers created by the current user. * * @return The call builder - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. + * @deprecated method: Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose. */ @Deprecated public ListanswersRequestBuilder list() { @@ -170,14 +257,36 @@ public ListanswersRequestBuilder list() { * *

List Answers created by the current user. * - * @param request The request object containing all the parameters for the API call. + * @param listAnswersRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + * @deprecated method: Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose. + */ + @Deprecated + public ListanswersResponse list(ListAnswersRequest listAnswersRequest) { + return list(Optional.empty(), listAnswersRequest); + } + + /** + * List Answers + * + *

List Answers created by the current user. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param listAnswersRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. + * @deprecated method: Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose. */ @Deprecated - public ListanswersResponse list(ListAnswersRequest request) { - RequestOperation operation + public ListanswersResponse list(Optional locale, ListAnswersRequest listAnswersRequest) { + ListanswersRequest request = + ListanswersRequest + .builder() + .locale(locale) + .listAnswersRequest(listAnswersRequest) + .build(); + RequestOperation operation = new Listanswers.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(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 aec4a48c..4f7b7c52 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 @@ -73,7 +73,7 @@ public GetAgentRequestBuilder retrieve() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(String agentId) { - return retrieve(Optional.empty(), agentId); + return retrieve(Optional.empty(), Optional.empty(), agentId); } /** @@ -82,14 +82,18 @@ public CompletableFuture retrieve(String agentId) { *

Returns details of an [agent](https://developers.glean.com/agents/agents-api) created in the Agent * Builder. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 {@code CompletableFuture} - The async response */ - public CompletableFuture retrieve(Optional timezoneOffset, String agentId) { + public CompletableFuture retrieve( + Optional locale, Optional timezoneOffset, + String agentId) { GetAgentRequest request = GetAgentRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .agentId(agentId) .build(); @@ -122,7 +126,7 @@ public GetAgentSchemasRequestBuilder retrieveSchemas() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveSchemas(String agentId) { - return retrieveSchemas(Optional.empty(), agentId); + return retrieveSchemas(Optional.empty(), Optional.empty(), agentId); } /** @@ -131,14 +135,18 @@ public CompletableFuture retrieveSchemas(String agentId *

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 locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 {@code CompletableFuture} - The async response */ - public CompletableFuture retrieveSchemas(Optional timezoneOffset, String agentId) { + public CompletableFuture retrieveSchemas( + Optional locale, Optional timezoneOffset, + String agentId) { GetAgentSchemasRequest request = GetAgentSchemasRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .agentId(agentId) .build(); 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 116efdde..ea1c162d 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 @@ -8,6 +8,9 @@ import com.glean.api_client.glean_api_client.models.components.CreateAnnouncementRequest; import com.glean.api_client.glean_api_client.models.components.DeleteAnnouncementRequest; import com.glean.api_client.glean_api_client.models.components.UpdateAnnouncementRequest; +import com.glean.api_client.glean_api_client.models.operations.CreateannouncementRequest; +import com.glean.api_client.glean_api_client.models.operations.DeleteannouncementRequest; +import com.glean.api_client.glean_api_client.models.operations.UpdateannouncementRequest; import com.glean.api_client.glean_api_client.models.operations.async.CreateannouncementRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.CreateannouncementResponse; import com.glean.api_client.glean_api_client.models.operations.async.DeleteannouncementRequestBuilder; @@ -18,6 +21,8 @@ import com.glean.api_client.glean_api_client.operations.Deleteannouncement; import com.glean.api_client.glean_api_client.operations.Updateannouncement; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -57,11 +62,30 @@ 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. + * @param createAnnouncementRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture create(CreateAnnouncementRequest request) { - AsyncRequestOperation operation + public CompletableFuture create(CreateAnnouncementRequest createAnnouncementRequest) { + return create(Optional.empty(), createAnnouncementRequest); + } + + /** + * Create Announcement + * + *

Create a textual announcement visible to some set of users based on department and location. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param createAnnouncementRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture create(Optional locale, CreateAnnouncementRequest createAnnouncementRequest) { + CreateannouncementRequest request = + CreateannouncementRequest + .builder() + .locale(locale) + .createAnnouncementRequest(createAnnouncementRequest) + .build(); + AsyncRequestOperation operation = new Createannouncement.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -84,11 +108,30 @@ public DeleteannouncementRequestBuilder delete() { * *

Delete an existing user-generated announcement. * - * @param request The request object containing all the parameters for the API call. + * @param deleteAnnouncementRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture delete(DeleteAnnouncementRequest request) { - AsyncRequestOperation operation + public CompletableFuture delete(DeleteAnnouncementRequest deleteAnnouncementRequest) { + return delete(Optional.empty(), deleteAnnouncementRequest); + } + + /** + * Delete Announcement + * + *

Delete an existing user-generated announcement. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param deleteAnnouncementRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture delete(Optional locale, DeleteAnnouncementRequest deleteAnnouncementRequest) { + DeleteannouncementRequest request = + DeleteannouncementRequest + .builder() + .locale(locale) + .deleteAnnouncementRequest(deleteAnnouncementRequest) + .build(); + AsyncRequestOperation operation = new Deleteannouncement.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -111,11 +154,30 @@ 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. + * @param updateAnnouncementRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture update(UpdateAnnouncementRequest updateAnnouncementRequest) { + return update(Optional.empty(), updateAnnouncementRequest); + } + + /** + * Update Announcement + * + *

Update a textual announcement visible to some set of users based on department and location. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param updateAnnouncementRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture update(UpdateAnnouncementRequest request) { - AsyncRequestOperation operation + public CompletableFuture update(Optional locale, UpdateAnnouncementRequest updateAnnouncementRequest) { + UpdateannouncementRequest request = + UpdateannouncementRequest + .builder() + .locale(locale) + .updateAnnouncementRequest(updateAnnouncementRequest) + .build(); + AsyncRequestOperation operation = new Updateannouncement.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); 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 7a134d2f..f1991e17 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 @@ -10,6 +10,11 @@ import com.glean.api_client.glean_api_client.models.components.EditAnswerRequest; import com.glean.api_client.glean_api_client.models.components.GetAnswerRequest; import com.glean.api_client.glean_api_client.models.components.ListAnswersRequest; +import com.glean.api_client.glean_api_client.models.operations.CreateanswerRequest; +import com.glean.api_client.glean_api_client.models.operations.DeleteanswerRequest; +import com.glean.api_client.glean_api_client.models.operations.EditanswerRequest; +import com.glean.api_client.glean_api_client.models.operations.GetanswerRequest; +import com.glean.api_client.glean_api_client.models.operations.ListanswersRequest; import com.glean.api_client.glean_api_client.models.operations.async.CreateanswerRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.CreateanswerResponse; import com.glean.api_client.glean_api_client.models.operations.async.DeleteanswerRequestBuilder; @@ -27,6 +32,8 @@ import com.glean.api_client.glean_api_client.operations.Listanswers; import com.glean.api_client.glean_api_client.utils.Headers; import java.lang.Deprecated; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -66,11 +73,30 @@ 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. + * @param createAnswerRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture create(CreateAnswerRequest request) { - AsyncRequestOperation operation + public CompletableFuture create(CreateAnswerRequest createAnswerRequest) { + return create(Optional.empty(), createAnswerRequest); + } + + /** + * Create Answer + * + *

Create a user-generated Answer that contains a question and answer. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param createAnswerRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture create(Optional locale, CreateAnswerRequest createAnswerRequest) { + CreateanswerRequest request = + CreateanswerRequest + .builder() + .locale(locale) + .createAnswerRequest(createAnswerRequest) + .build(); + AsyncRequestOperation operation = new Createanswer.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -93,11 +119,30 @@ public DeleteanswerRequestBuilder delete() { * *

Delete an existing user-generated Answer. * - * @param request The request object containing all the parameters for the API call. + * @param deleteAnswerRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture delete(DeleteAnswerRequest request) { - AsyncRequestOperation operation + public CompletableFuture delete(DeleteAnswerRequest deleteAnswerRequest) { + return delete(Optional.empty(), deleteAnswerRequest); + } + + /** + * Delete Answer + * + *

Delete an existing user-generated Answer. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param deleteAnswerRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture delete(Optional locale, DeleteAnswerRequest deleteAnswerRequest) { + DeleteanswerRequest request = + DeleteanswerRequest + .builder() + .locale(locale) + .deleteAnswerRequest(deleteAnswerRequest) + .build(); + AsyncRequestOperation operation = new Deleteanswer.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -120,11 +165,30 @@ public EditanswerRequestBuilder update() { * *

Update an existing user-generated Answer. * - * @param request The request object containing all the parameters for the API call. + * @param editAnswerRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture update(EditAnswerRequest editAnswerRequest) { + return update(Optional.empty(), editAnswerRequest); + } + + /** + * Update Answer + * + *

Update an existing user-generated Answer. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param editAnswerRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture update(EditAnswerRequest request) { - AsyncRequestOperation operation + public CompletableFuture update(Optional locale, EditAnswerRequest editAnswerRequest) { + EditanswerRequest request = + EditanswerRequest + .builder() + .locale(locale) + .editAnswerRequest(editAnswerRequest) + .build(); + AsyncRequestOperation operation = new Editanswer.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -147,11 +211,30 @@ 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. + * @param getAnswerRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture retrieve(GetAnswerRequest request) { - AsyncRequestOperation operation + public CompletableFuture retrieve(GetAnswerRequest getAnswerRequest) { + return retrieve(Optional.empty(), getAnswerRequest); + } + + /** + * Read Answer + * + *

Read the details of a particular Answer given its ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getAnswerRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieve(Optional locale, GetAnswerRequest getAnswerRequest) { + GetanswerRequest request = + GetanswerRequest + .builder() + .locale(locale) + .getAnswerRequest(getAnswerRequest) + .build(); + AsyncRequestOperation operation = new Getanswer.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -164,7 +247,7 @@ public CompletableFuture retrieve(GetAnswerRequest request) { *

List Answers created by the current user. * * @return The async call builder - * @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible. + * @deprecated method: Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose. */ @Deprecated public ListanswersRequestBuilder list() { @@ -176,13 +259,34 @@ public ListanswersRequestBuilder list() { * *

List Answers created by the current user. * - * @param request The request object containing all the parameters for the API call. + * @param listAnswersRequest + * @return {@code CompletableFuture} - The async response + * @deprecated method: Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose. + */ + @Deprecated + public CompletableFuture list(ListAnswersRequest listAnswersRequest) { + return list(Optional.empty(), listAnswersRequest); + } + + /** + * List Answers + * + *

List Answers created by the current user. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param listAnswersRequest * @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 method: Deprecated on 2026-01-21, removal scheduled for 2026-10-15: Answer boards have been removed and this endpoint no longer serves a purpose. */ @Deprecated - public CompletableFuture list(ListAnswersRequest request) { - AsyncRequestOperation operation + public CompletableFuture list(Optional locale, ListAnswersRequest listAnswersRequest) { + ListanswersRequest request = + ListanswersRequest + .builder() + .locale(locale) + .listAnswersRequest(listAnswersRequest) + .build(); + AsyncRequestOperation operation = new Listanswers.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); 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 11ce3b20..ed5a37b5 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 @@ -52,6 +52,7 @@ import com.glean.api_client.glean_api_client.operations.Uploadchatfiles; import com.glean.api_client.glean_api_client.utils.Headers; import java.lang.Long; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -96,7 +97,7 @@ public ChatRequestBuilder create() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture create(ChatRequest chatRequest) { - return create(Optional.empty(), chatRequest); + return create(Optional.empty(), Optional.empty(), chatRequest); } /** @@ -104,14 +105,18 @@ public CompletableFuture create(ChatRequest chatRequest) { * *

Have a conversation with Glean AI. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 The minimal set of fields that form a chat request. * @return {@code CompletableFuture} - The async response */ - public CompletableFuture create(Optional timezoneOffset, ChatRequest chatRequest) { + public CompletableFuture create( + Optional locale, Optional timezoneOffset, + ChatRequest chatRequest) { com.glean.api_client.glean_api_client.models.operations.ChatRequest request = com.glean.api_client.glean_api_client.models.operations.ChatRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .chatRequest(chatRequest) .build(); @@ -141,7 +146,7 @@ public DeleteallchatsRequestBuilder deleteAll() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture deleteAllDirect() { - return deleteAll(Optional.empty()); + return deleteAll(Optional.empty(), Optional.empty()); } /** @@ -149,13 +154,15 @@ public CompletableFuture deleteAllDirect() { * *

Deletes all saved Chats a user has had and all their contained conversational content. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 {@code CompletableFuture} - The async response */ - public CompletableFuture deleteAll(Optional timezoneOffset) { + public CompletableFuture deleteAll(Optional locale, Optional timezoneOffset) { DeleteallchatsRequest request = DeleteallchatsRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .build(); AsyncRequestOperation operation @@ -185,7 +192,7 @@ public DeletechatsRequestBuilder delete() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture delete(DeleteChatsRequest deleteChatsRequest) { - return delete(Optional.empty(), deleteChatsRequest); + return delete(Optional.empty(), Optional.empty(), deleteChatsRequest); } /** @@ -193,14 +200,18 @@ public CompletableFuture delete(DeleteChatsRequest deleteCh * *

Deletes saved Chats and all their contained conversational content. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 {@code CompletableFuture} - The async response */ - public CompletableFuture delete(Optional timezoneOffset, DeleteChatsRequest deleteChatsRequest) { + public CompletableFuture delete( + Optional locale, Optional timezoneOffset, + DeleteChatsRequest deleteChatsRequest) { DeletechatsRequest request = DeletechatsRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .deleteChatsRequest(deleteChatsRequest) .build(); @@ -231,7 +242,7 @@ public GetchatRequestBuilder retrieve() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieve(GetChatRequest getChatRequest) { - return retrieve(Optional.empty(), getChatRequest); + return retrieve(Optional.empty(), Optional.empty(), getChatRequest); } /** @@ -239,14 +250,18 @@ public CompletableFuture retrieve(GetChatRequest getChatRequest * *

Retrieves the chat history between Glean Assistant and the user for a given Chat. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 {@code CompletableFuture} - The async response */ - public CompletableFuture retrieve(Optional timezoneOffset, GetChatRequest getChatRequest) { + public CompletableFuture retrieve( + Optional locale, Optional timezoneOffset, + GetChatRequest getChatRequest) { GetchatRequest request = GetchatRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .getChatRequest(getChatRequest) .build(); @@ -278,7 +293,7 @@ public ListchatsRequestBuilder list() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture listDirect() { - return list(Optional.empty()); + return list(Optional.empty(), Optional.empty()); } /** @@ -287,13 +302,15 @@ public CompletableFuture listDirect() { *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only * metadata and no conversational content. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 {@code CompletableFuture} - The async response */ - public CompletableFuture list(Optional timezoneOffset) { + public CompletableFuture list(Optional locale, Optional timezoneOffset) { ListchatsRequest request = ListchatsRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .build(); AsyncRequestOperation operation @@ -323,7 +340,7 @@ public GetchatapplicationRequestBuilder retrieveApplication() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveApplication(GetChatApplicationRequest getChatApplicationRequest) { - return retrieveApplication(Optional.empty(), getChatApplicationRequest); + return retrieveApplication(Optional.empty(), Optional.empty(), getChatApplicationRequest); } /** @@ -331,14 +348,18 @@ public CompletableFuture retrieveApplication(GetChat * *

Gets the Chat application details for the specified application ID. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 {@code CompletableFuture} - The async response */ - public CompletableFuture retrieveApplication(Optional timezoneOffset, GetChatApplicationRequest getChatApplicationRequest) { + public CompletableFuture retrieveApplication( + Optional locale, Optional timezoneOffset, + GetChatApplicationRequest getChatApplicationRequest) { GetchatapplicationRequest request = GetchatapplicationRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .getChatApplicationRequest(getChatApplicationRequest) .build(); @@ -369,7 +390,7 @@ public UploadchatfilesRequestBuilder uploadFiles() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture uploadFiles(UploadChatFilesRequest uploadChatFilesRequest) { - return uploadFiles(Optional.empty(), uploadChatFilesRequest); + return uploadFiles(Optional.empty(), Optional.empty(), uploadChatFilesRequest); } /** @@ -377,14 +398,18 @@ public CompletableFuture uploadFiles(UploadChatFilesReq * *

Upload files for Chat. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 {@code CompletableFuture} - The async response */ - public CompletableFuture uploadFiles(Optional timezoneOffset, UploadChatFilesRequest uploadChatFilesRequest) { + public CompletableFuture uploadFiles( + Optional locale, Optional timezoneOffset, + UploadChatFilesRequest uploadChatFilesRequest) { UploadchatfilesRequest request = UploadchatfilesRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .uploadChatFilesRequest(uploadChatFilesRequest) .build(); @@ -415,7 +440,7 @@ public GetchatfilesRequestBuilder retrieveFiles() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveFiles(GetChatFilesRequest getChatFilesRequest) { - return retrieveFiles(Optional.empty(), getChatFilesRequest); + return retrieveFiles(Optional.empty(), Optional.empty(), getChatFilesRequest); } /** @@ -423,14 +448,18 @@ public CompletableFuture retrieveFiles(GetChatFilesRequest * *

Get files uploaded by a user for Chat. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 {@code CompletableFuture} - The async response */ - public CompletableFuture retrieveFiles(Optional timezoneOffset, GetChatFilesRequest getChatFilesRequest) { + public CompletableFuture retrieveFiles( + Optional locale, Optional timezoneOffset, + GetChatFilesRequest getChatFilesRequest) { GetchatfilesRequest request = GetchatfilesRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .getChatFilesRequest(getChatFilesRequest) .build(); @@ -461,7 +490,7 @@ public DeletechatfilesRequestBuilder deleteFiles() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture deleteFiles(DeleteChatFilesRequest deleteChatFilesRequest) { - return deleteFiles(Optional.empty(), deleteChatFilesRequest); + return deleteFiles(Optional.empty(), Optional.empty(), deleteChatFilesRequest); } /** @@ -469,14 +498,18 @@ public CompletableFuture deleteFiles(DeleteChatFilesReq * *

Delete files uploaded by a user for Chat. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 {@code CompletableFuture} - The async response */ - public CompletableFuture deleteFiles(Optional timezoneOffset, DeleteChatFilesRequest deleteChatFilesRequest) { + public CompletableFuture deleteFiles( + Optional locale, Optional timezoneOffset, + DeleteChatFilesRequest deleteChatFilesRequest) { DeletechatfilesRequest request = DeletechatfilesRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .deleteChatFilesRequest(deleteChatFilesRequest) .build(); 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 70226d0c..e4a34c7d 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 @@ -9,6 +9,9 @@ import com.glean.api_client.glean_api_client.models.components.GetDocumentsByFacetsRequest; import com.glean.api_client.glean_api_client.models.components.GetDocumentsRequest; import com.glean.api_client.glean_api_client.models.components.SummarizeRequest; +import com.glean.api_client.glean_api_client.models.operations.GetdocpermissionsRequest; +import com.glean.api_client.glean_api_client.models.operations.GetdocumentsRequest; +import com.glean.api_client.glean_api_client.models.operations.GetdocumentsbyfacetsRequest; import com.glean.api_client.glean_api_client.models.operations.async.GetdocpermissionsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.GetdocpermissionsResponse; import com.glean.api_client.glean_api_client.models.operations.async.GetdocumentsRequestBuilder; @@ -22,6 +25,7 @@ import com.glean.api_client.glean_api_client.operations.Getdocumentsbyfacets; import com.glean.api_client.glean_api_client.operations.Summarize; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -62,11 +66,30 @@ 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. + * @param getDocPermissionsRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture retrievePermissions(GetDocPermissionsRequest request) { - AsyncRequestOperation operation + public CompletableFuture retrievePermissions(GetDocPermissionsRequest getDocPermissionsRequest) { + return retrievePermissions(Optional.empty(), getDocPermissionsRequest); + } + + /** + * Read document permissions + * + *

Read the emails of all users who have access to the given document. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getDocPermissionsRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrievePermissions(Optional locale, GetDocPermissionsRequest getDocPermissionsRequest) { + GetdocpermissionsRequest request = + GetdocpermissionsRequest + .builder() + .locale(locale) + .getDocPermissionsRequest(getDocPermissionsRequest) + .build(); + AsyncRequestOperation operation = new Getdocpermissions.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -94,7 +117,7 @@ public GetdocumentsRequestBuilder retrieve() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveDirect() { - return retrieve(Optional.empty()); + return retrieve(Optional.empty(), Optional.empty()); } /** @@ -103,11 +126,18 @@ public CompletableFuture retrieveDirect() { *

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. + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getDocumentsRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture retrieve(Optional request) { - AsyncRequestOperation, GetdocumentsResponse> operation + public CompletableFuture retrieve(Optional locale, Optional getDocumentsRequest) { + GetdocumentsRequest request = + GetdocumentsRequest + .builder() + .locale(locale) + .getDocumentsRequest(getDocumentsRequest) + .build(); + AsyncRequestOperation operation = new Getdocuments.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -135,7 +165,7 @@ public GetdocumentsbyfacetsRequestBuilder retrieveByFacets() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture retrieveByFacetsDirect() { - return retrieveByFacets(Optional.empty()); + return retrieveByFacets(Optional.empty(), Optional.empty()); } /** @@ -144,11 +174,18 @@ public CompletableFuture retrieveByFacetsDirect() *

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. + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getDocumentsByFacetsRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture retrieveByFacets(Optional request) { - AsyncRequestOperation, GetdocumentsbyfacetsResponse> operation + public CompletableFuture retrieveByFacets(Optional locale, Optional getDocumentsByFacetsRequest) { + GetdocumentsbyfacetsRequest request = + GetdocumentsbyfacetsRequest + .builder() + .locale(locale) + .getDocumentsByFacetsRequest(getDocumentsByFacetsRequest) + .build(); + AsyncRequestOperation operation = new Getdocumentsbyfacets.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -171,11 +208,30 @@ public SummarizeRequestBuilder summarize() { * *

Generate an AI summary of the requested documents. * - * @param request The request object containing all the parameters for the API call. + * @param summarizeRequest Summary of the document + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture summarize(SummarizeRequest summarizeRequest) { + return summarize(Optional.empty(), summarizeRequest); + } + + /** + * Summarize documents + * + *

Generate an AI summary of the requested documents. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param summarizeRequest Summary of the document * @return {@code CompletableFuture} - The async response */ - public CompletableFuture summarize(SummarizeRequest request) { - AsyncRequestOperation operation + public CompletableFuture summarize(Optional locale, SummarizeRequest summarizeRequest) { + com.glean.api_client.glean_api_client.models.operations.SummarizeRequest request = + com.glean.api_client.glean_api_client.models.operations.SummarizeRequest + .builder() + .locale(locale) + .summarizeRequest(summarizeRequest) + .build(); + AsyncRequestOperation operation = new Summarize.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); 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 e48e0d19..e8230c32 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 @@ -10,6 +10,11 @@ import com.glean.api_client.glean_api_client.models.components.GetShortcutRequestUnion; import com.glean.api_client.glean_api_client.models.components.ListShortcutsPaginatedRequest; import com.glean.api_client.glean_api_client.models.components.UpdateShortcutRequest; +import com.glean.api_client.glean_api_client.models.operations.CreateshortcutRequest; +import com.glean.api_client.glean_api_client.models.operations.DeleteshortcutRequest; +import com.glean.api_client.glean_api_client.models.operations.GetshortcutRequest; +import com.glean.api_client.glean_api_client.models.operations.ListshortcutsRequest; +import com.glean.api_client.glean_api_client.models.operations.UpdateshortcutRequest; import com.glean.api_client.glean_api_client.models.operations.async.CreateshortcutRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.CreateshortcutResponse; import com.glean.api_client.glean_api_client.models.operations.async.DeleteshortcutRequestBuilder; @@ -26,6 +31,8 @@ import com.glean.api_client.glean_api_client.operations.Listshortcuts; import com.glean.api_client.glean_api_client.operations.Updateshortcut; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -65,11 +72,30 @@ 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. + * @param createShortcutRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture create(CreateShortcutRequest request) { - AsyncRequestOperation operation + public CompletableFuture create(CreateShortcutRequest createShortcutRequest) { + return create(Optional.empty(), createShortcutRequest); + } + + /** + * Create shortcut + * + *

Create a user-generated shortcut that contains an alias and destination URL. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param createShortcutRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture create(Optional locale, CreateShortcutRequest createShortcutRequest) { + CreateshortcutRequest request = + CreateshortcutRequest + .builder() + .locale(locale) + .createShortcutRequest(createShortcutRequest) + .build(); + AsyncRequestOperation operation = new Createshortcut.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -92,11 +118,30 @@ public DeleteshortcutRequestBuilder delete() { * *

Delete an existing user-generated shortcut. * - * @param request The request object containing all the parameters for the API call. + * @param deleteShortcutRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture delete(DeleteShortcutRequest request) { - AsyncRequestOperation operation + public CompletableFuture delete(DeleteShortcutRequest deleteShortcutRequest) { + return delete(Optional.empty(), deleteShortcutRequest); + } + + /** + * Delete shortcut + * + *

Delete an existing user-generated shortcut. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param deleteShortcutRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture delete(Optional locale, DeleteShortcutRequest deleteShortcutRequest) { + DeleteshortcutRequest request = + DeleteshortcutRequest + .builder() + .locale(locale) + .deleteShortcutRequest(deleteShortcutRequest) + .build(); + AsyncRequestOperation operation = new Deleteshortcut.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -119,11 +164,30 @@ 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. + * @param getShortcutRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture retrieve(GetShortcutRequestUnion request) { - AsyncRequestOperation operation + public CompletableFuture retrieve(GetShortcutRequestUnion getShortcutRequest) { + return retrieve(Optional.empty(), getShortcutRequest); + } + + /** + * Read shortcut + * + *

Read a particular shortcut's details given its ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getShortcutRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieve(Optional locale, GetShortcutRequestUnion getShortcutRequest) { + GetshortcutRequest request = + GetshortcutRequest + .builder() + .locale(locale) + .getShortcutRequest(getShortcutRequest) + .build(); + AsyncRequestOperation operation = new Getshortcut.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -146,11 +210,30 @@ 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. + * @param listShortcutsPaginatedRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture list(ListShortcutsPaginatedRequest listShortcutsPaginatedRequest) { + return list(Optional.empty(), listShortcutsPaginatedRequest); + } + + /** + * List shortcuts + * + *

List shortcuts editable/owned by the currently authenticated user. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param listShortcutsPaginatedRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture list(ListShortcutsPaginatedRequest request) { - AsyncRequestOperation operation + public CompletableFuture list(Optional locale, ListShortcutsPaginatedRequest listShortcutsPaginatedRequest) { + ListshortcutsRequest request = + ListshortcutsRequest + .builder() + .locale(locale) + .listShortcutsPaginatedRequest(listShortcutsPaginatedRequest) + .build(); + AsyncRequestOperation operation = new Listshortcuts.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -173,11 +256,30 @@ public UpdateshortcutRequestBuilder update() { * *

Updates the shortcut with the given ID. * - * @param request The request object containing all the parameters for the API call. + * @param updateShortcutRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture update(UpdateShortcutRequest updateShortcutRequest) { + return update(Optional.empty(), updateShortcutRequest); + } + + /** + * Update shortcut + * + *

Updates the shortcut with the given ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param updateShortcutRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture update(UpdateShortcutRequest request) { - AsyncRequestOperation operation + public CompletableFuture update(Optional locale, UpdateShortcutRequest updateShortcutRequest) { + UpdateshortcutRequest request = + UpdateshortcutRequest + .builder() + .locale(locale) + .updateShortcutRequest(updateShortcutRequest) + .build(); + AsyncRequestOperation operation = new Updateshortcut.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); 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 0e486f8d..9666b98e 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 @@ -13,6 +13,14 @@ import com.glean.api_client.glean_api_client.models.components.EditCollectionRequest; import com.glean.api_client.glean_api_client.models.components.GetCollectionRequest; import com.glean.api_client.glean_api_client.models.components.ListCollectionsRequest; +import com.glean.api_client.glean_api_client.models.operations.AddcollectionitemsRequest; +import com.glean.api_client.glean_api_client.models.operations.CreatecollectionRequest; +import com.glean.api_client.glean_api_client.models.operations.DeletecollectionRequest; +import com.glean.api_client.glean_api_client.models.operations.DeletecollectionitemRequest; +import com.glean.api_client.glean_api_client.models.operations.EditcollectionRequest; +import com.glean.api_client.glean_api_client.models.operations.EditcollectionitemRequest; +import com.glean.api_client.glean_api_client.models.operations.GetcollectionRequest; +import com.glean.api_client.glean_api_client.models.operations.ListcollectionsRequest; import com.glean.api_client.glean_api_client.models.operations.async.AddcollectionitemsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.AddcollectionitemsResponse; import com.glean.api_client.glean_api_client.models.operations.async.CreatecollectionRequestBuilder; @@ -38,6 +46,8 @@ import com.glean.api_client.glean_api_client.operations.Getcollection; import com.glean.api_client.glean_api_client.operations.Listcollections; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -77,11 +87,30 @@ public AddcollectionitemsRequestBuilder addItems() { * *

Add items to a Collection. * - * @param request The request object containing all the parameters for the API call. + * @param addCollectionItemsRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture addItems(AddCollectionItemsRequest request) { - AsyncRequestOperation operation + public CompletableFuture addItems(AddCollectionItemsRequest addCollectionItemsRequest) { + return addItems(Optional.empty(), addCollectionItemsRequest); + } + + /** + * Add Collection item + * + *

Add items to a Collection. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param addCollectionItemsRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture addItems(Optional locale, AddCollectionItemsRequest addCollectionItemsRequest) { + AddcollectionitemsRequest request = + AddcollectionitemsRequest + .builder() + .locale(locale) + .addCollectionItemsRequest(addCollectionItemsRequest) + .build(); + AsyncRequestOperation operation = new Addcollectionitems.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -104,11 +133,30 @@ public CreatecollectionRequestBuilder create() { * *

Create a publicly visible (empty) Collection of documents. * - * @param request The request object containing all the parameters for the API call. + * @param createCollectionRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture create(CreateCollectionRequest createCollectionRequest) { + return create(Optional.empty(), createCollectionRequest); + } + + /** + * Create Collection + * + *

Create a publicly visible (empty) Collection of documents. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param createCollectionRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture create(CreateCollectionRequest request) { - AsyncRequestOperation operation + public CompletableFuture create(Optional locale, CreateCollectionRequest createCollectionRequest) { + CreatecollectionRequest request = + CreatecollectionRequest + .builder() + .locale(locale) + .createCollectionRequest(createCollectionRequest) + .build(); + AsyncRequestOperation operation = new Createcollection.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -131,11 +179,30 @@ public DeletecollectionRequestBuilder delete() { * *

Delete a Collection given the Collection's ID. * - * @param request The request object containing all the parameters for the API call. + * @param deleteCollectionRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture delete(DeleteCollectionRequest request) { - AsyncRequestOperation operation + public CompletableFuture delete(DeleteCollectionRequest deleteCollectionRequest) { + return delete(Optional.empty(), deleteCollectionRequest); + } + + /** + * Delete Collection + * + *

Delete a Collection given the Collection's ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param deleteCollectionRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture delete(Optional locale, DeleteCollectionRequest deleteCollectionRequest) { + DeletecollectionRequest request = + DeletecollectionRequest + .builder() + .locale(locale) + .deleteCollectionRequest(deleteCollectionRequest) + .build(); + AsyncRequestOperation operation = new Deletecollection.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -158,11 +225,30 @@ public DeletecollectionitemRequestBuilder deleteItem() { * *

Delete a single item from a Collection. * - * @param request The request object containing all the parameters for the API call. + * @param deleteCollectionItemRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture deleteItem(DeleteCollectionItemRequest deleteCollectionItemRequest) { + return deleteItem(Optional.empty(), deleteCollectionItemRequest); + } + + /** + * Delete Collection item + * + *

Delete a single item from a Collection. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param deleteCollectionItemRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture deleteItem(DeleteCollectionItemRequest request) { - AsyncRequestOperation operation + public CompletableFuture deleteItem(Optional locale, DeleteCollectionItemRequest deleteCollectionItemRequest) { + DeletecollectionitemRequest request = + DeletecollectionitemRequest + .builder() + .locale(locale) + .deleteCollectionItemRequest(deleteCollectionItemRequest) + .build(); + AsyncRequestOperation operation = new Deletecollectionitem.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -185,11 +271,30 @@ public EditcollectionRequestBuilder update() { * *

Update the properties of an existing Collection. * - * @param request The request object containing all the parameters for the API call. + * @param editCollectionRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture update(EditCollectionRequest request) { - AsyncRequestOperation operation + public CompletableFuture update(EditCollectionRequest editCollectionRequest) { + return update(Optional.empty(), editCollectionRequest); + } + + /** + * Update Collection + * + *

Update the properties of an existing Collection. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param editCollectionRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture update(Optional locale, EditCollectionRequest editCollectionRequest) { + EditcollectionRequest request = + EditcollectionRequest + .builder() + .locale(locale) + .editCollectionRequest(editCollectionRequest) + .build(); + AsyncRequestOperation operation = new Editcollection.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -212,11 +317,30 @@ 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. + * @param editCollectionItemRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture updateItem(EditCollectionItemRequest editCollectionItemRequest) { + return updateItem(Optional.empty(), editCollectionItemRequest); + } + + /** + * Update Collection item + * + *

Update the URL, Glean Document ID, description of an item within a Collection given its ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param editCollectionItemRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture updateItem(EditCollectionItemRequest request) { - AsyncRequestOperation operation + public CompletableFuture updateItem(Optional locale, EditCollectionItemRequest editCollectionItemRequest) { + EditcollectionitemRequest request = + EditcollectionitemRequest + .builder() + .locale(locale) + .editCollectionItemRequest(editCollectionItemRequest) + .build(); + AsyncRequestOperation operation = new Editcollectionitem.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -239,11 +363,30 @@ 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. + * @param getCollectionRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture retrieve(GetCollectionRequest request) { - AsyncRequestOperation operation + public CompletableFuture retrieve(GetCollectionRequest getCollectionRequest) { + return retrieve(Optional.empty(), getCollectionRequest); + } + + /** + * Read Collection + * + *

Read the details of a Collection given its ID. Does not fetch items in this Collection. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getCollectionRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieve(Optional locale, GetCollectionRequest getCollectionRequest) { + GetcollectionRequest request = + GetcollectionRequest + .builder() + .locale(locale) + .getCollectionRequest(getCollectionRequest) + .build(); + AsyncRequestOperation operation = new Getcollection.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -266,11 +409,30 @@ public ListcollectionsRequestBuilder list() { * *

List all existing Collections. * - * @param request The request object containing all the parameters for the API call. + * @param listCollectionsRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture list(ListCollectionsRequest listCollectionsRequest) { + return list(Optional.empty(), listCollectionsRequest); + } + + /** + * List Collections + * + *

List all existing Collections. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param listCollectionsRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture list(ListCollectionsRequest request) { - AsyncRequestOperation operation + public CompletableFuture list(Optional locale, ListCollectionsRequest listCollectionsRequest) { + ListcollectionsRequest request = + ListcollectionsRequest + .builder() + .locale(locale) + .listCollectionsRequest(listCollectionsRequest) + .build(); + AsyncRequestOperation operation = new Listcollections.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); 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 b3ac8fe9..ed12a675 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 @@ -7,6 +7,7 @@ import com.glean.api_client.glean_api_client.models.components.ListEntitiesRequest; import com.glean.api_client.glean_api_client.models.components.PeopleRequest; +import com.glean.api_client.glean_api_client.models.operations.ListentitiesRequest; import com.glean.api_client.glean_api_client.models.operations.async.ListentitiesRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.ListentitiesResponse; import com.glean.api_client.glean_api_client.models.operations.async.PeopleRequestBuilder; @@ -14,6 +15,8 @@ import com.glean.api_client.glean_api_client.operations.Listentities; import com.glean.api_client.glean_api_client.operations.People; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -59,11 +62,33 @@ public ListentitiesRequestBuilder list() { * 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. + * @param listEntitiesRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture list(ListEntitiesRequest request) { - AsyncRequestOperation operation + public CompletableFuture list(ListEntitiesRequest listEntitiesRequest) { + return list(Optional.empty(), listEntitiesRequest); + } + + /** + * 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. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param listEntitiesRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture list(Optional locale, ListEntitiesRequest listEntitiesRequest) { + ListentitiesRequest request = + ListentitiesRequest + .builder() + .locale(locale) + .listEntitiesRequest(listEntitiesRequest) + .build(); + AsyncRequestOperation operation = new Listentities.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -86,11 +111,30 @@ public PeopleRequestBuilder readPeople() { * *

Read people details for the given IDs. * - * @param request The request object containing all the parameters for the API call. + * @param peopleRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture readPeople(PeopleRequest peopleRequest) { + return readPeople(Optional.empty(), peopleRequest); + } + + /** + * Read people + * + *

Read people details for the given IDs. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param peopleRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture readPeople(PeopleRequest request) { - AsyncRequestOperation operation + public CompletableFuture readPeople(Optional locale, PeopleRequest peopleRequest) { + com.glean.api_client.glean_api_client.models.operations.PeopleRequest request = + com.glean.api_client.glean_api_client.models.operations.PeopleRequest + .builder() + .locale(locale) + .peopleRequest(peopleRequest) + .build(); + AsyncRequestOperation operation = new People.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); 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 a23cb184..f26d8244 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 @@ -9,6 +9,8 @@ import com.glean.api_client.glean_api_client.models.operations.async.InsightsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.InsightsResponse; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -48,11 +50,30 @@ public InsightsRequestBuilder retrieve() { * *

Gets the aggregate usage insights data displayed in the Insights Dashboards. * - * @param request The request object containing all the parameters for the API call. + * @param insightsRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture retrieve(InsightsRequest request) { - AsyncRequestOperation operation + public CompletableFuture retrieve(InsightsRequest insightsRequest) { + return retrieve(Optional.empty(), insightsRequest); + } + + /** + * Get insights + * + *

Gets the aggregate usage insights data displayed in the Insights Dashboards. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param insightsRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieve(Optional locale, InsightsRequest insightsRequest) { + com.glean.api_client.glean_api_client.models.operations.InsightsRequest request = + com.glean.api_client.glean_api_client.models.operations.InsightsRequest + .builder() + .locale(locale) + .insightsRequest(insightsRequest) + .build(); + AsyncRequestOperation operation = new com.glean.api_client.glean_api_client.operations.Insights.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); 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 264f6ea5..cfd01a87 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 @@ -9,6 +9,8 @@ import com.glean.api_client.glean_api_client.models.operations.async.MessagesRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.MessagesResponse; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -48,11 +50,30 @@ 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. + * @param messagesRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture retrieve(MessagesRequest request) { - AsyncRequestOperation operation + public CompletableFuture retrieve(MessagesRequest messagesRequest) { + return retrieve(Optional.empty(), messagesRequest); + } + + /** + * Read messages + * + *

Retrieves list of messages from messaging/chat datasources (e.g. Slack, Teams). + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param messagesRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieve(Optional locale, MessagesRequest messagesRequest) { + com.glean.api_client.glean_api_client.models.operations.MessagesRequest request = + com.glean.api_client.glean_api_client.models.operations.MessagesRequest + .builder() + .locale(locale) + .messagesRequest(messagesRequest) + .build(); + AsyncRequestOperation operation = new com.glean.api_client.glean_api_client.operations.Messages.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); 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 f73a19cb..dca31000 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 @@ -9,7 +9,11 @@ import com.glean.api_client.glean_api_client.models.components.GetPinRequest; import com.glean.api_client.glean_api_client.models.components.PinRequest; import com.glean.api_client.glean_api_client.models.components.Unpin; +import com.glean.api_client.glean_api_client.models.operations.EditpinRequest; +import com.glean.api_client.glean_api_client.models.operations.GetpinRequest; import com.glean.api_client.glean_api_client.models.operations.ListpinsRequest; +import com.glean.api_client.glean_api_client.models.operations.ListpinsRequestBody; +import com.glean.api_client.glean_api_client.models.operations.UnpinRequest; import com.glean.api_client.glean_api_client.models.operations.async.EditpinRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.EditpinResponse; import com.glean.api_client.glean_api_client.models.operations.async.GetpinRequestBuilder; @@ -25,6 +29,8 @@ import com.glean.api_client.glean_api_client.operations.Listpins; import com.glean.api_client.glean_api_client.operations.Pin; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -64,11 +70,30 @@ public EditpinRequestBuilder update() { * *

Update an existing user-generated pin. * - * @param request The request object containing all the parameters for the API call. + * @param editPinRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture update(EditPinRequest request) { - AsyncRequestOperation operation + public CompletableFuture update(EditPinRequest editPinRequest) { + return update(Optional.empty(), editPinRequest); + } + + /** + * Update pin + * + *

Update an existing user-generated pin. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param editPinRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture update(Optional locale, EditPinRequest editPinRequest) { + EditpinRequest request = + EditpinRequest + .builder() + .locale(locale) + .editPinRequest(editPinRequest) + .build(); + AsyncRequestOperation operation = new Editpin.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -91,11 +116,30 @@ public GetpinRequestBuilder retrieve() { * *

Read pin details given its ID. * - * @param request The request object containing all the parameters for the API call. + * @param getPinRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture retrieve(GetPinRequest request) { - AsyncRequestOperation operation + public CompletableFuture retrieve(GetPinRequest getPinRequest) { + return retrieve(Optional.empty(), getPinRequest); + } + + /** + * Read pin + * + *

Read pin details given its ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getPinRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieve(Optional locale, GetPinRequest getPinRequest) { + GetpinRequest request = + GetpinRequest + .builder() + .locale(locale) + .getPinRequest(getPinRequest) + .build(); + AsyncRequestOperation operation = new Getpin.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -118,10 +162,29 @@ public ListpinsRequestBuilder list() { * *

Lists all pins. * - * @param request The request object containing all the parameters for the API call. + * @param requestBody List pins request * @return {@code CompletableFuture} - The async response */ - public CompletableFuture list(ListpinsRequest request) { + public CompletableFuture list(ListpinsRequestBody requestBody) { + return list(Optional.empty(), requestBody); + } + + /** + * List pins + * + *

Lists all pins. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param requestBody List pins request + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture list(Optional locale, ListpinsRequestBody requestBody) { + ListpinsRequest request = + ListpinsRequest + .builder() + .locale(locale) + .requestBody(requestBody) + .build(); AsyncRequestOperation operation = new Listpins.Async(sdkConfiguration, _headers); return operation.doRequest(request) @@ -145,11 +208,30 @@ 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. + * @param pinRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture create(PinRequest pinRequest) { + return create(Optional.empty(), pinRequest); + } + + /** + * Create pin + * + *

Pin a document as a result for a given search query.Pin results that are known to be a good match. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param pinRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture create(PinRequest request) { - AsyncRequestOperation operation + public CompletableFuture create(Optional locale, PinRequest pinRequest) { + com.glean.api_client.glean_api_client.models.operations.PinRequest request = + com.glean.api_client.glean_api_client.models.operations.PinRequest + .builder() + .locale(locale) + .pinRequest(pinRequest) + .build(); + AsyncRequestOperation operation = new Pin.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -172,11 +254,30 @@ public UnpinRequestBuilder remove() { * *

Unpin a previously pinned result. * - * @param request The request object containing all the parameters for the API call. + * @param unpin + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture remove(Unpin unpin) { + return remove(Optional.empty(), unpin); + } + + /** + * Delete pin + * + *

Unpin a previously pinned result. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param unpin * @return {@code CompletableFuture} - The async response */ - public CompletableFuture remove(Unpin request) { - AsyncRequestOperation operation + public CompletableFuture remove(Optional locale, Unpin unpin) { + UnpinRequest request = + UnpinRequest + .builder() + .locale(locale) + .unpin(unpin) + .build(); + AsyncRequestOperation operation = new com.glean.api_client.glean_api_client.operations.Unpin.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); 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 ea599f3c..f849aafa 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 @@ -9,6 +9,7 @@ import com.glean.api_client.glean_api_client.models.components.FeedRequest; import com.glean.api_client.glean_api_client.models.components.RecommendationsRequest; import com.glean.api_client.glean_api_client.models.components.SearchRequest; +import com.glean.api_client.glean_api_client.models.operations.AdminsearchRequest; import com.glean.api_client.glean_api_client.models.operations.async.AdminsearchRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.AdminsearchResponse; import com.glean.api_client.glean_api_client.models.operations.async.AutocompleteRequestBuilder; @@ -24,6 +25,8 @@ import com.glean.api_client.glean_api_client.operations.Feed; import com.glean.api_client.glean_api_client.operations.Recommendations; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -65,11 +68,31 @@ public AdminsearchRequestBuilder queryAsAdmin() { *

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. + * @param searchRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture queryAsAdmin(SearchRequest request) { - AsyncRequestOperation operation + public CompletableFuture queryAsAdmin(SearchRequest searchRequest) { + return queryAsAdmin(Optional.empty(), searchRequest); + } + + /** + * Search the index (admin) + * + *

Retrieves results for search query without respect for permissions. This is available only to + * privileged users. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param searchRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture queryAsAdmin(Optional locale, SearchRequest searchRequest) { + AdminsearchRequest request = + AdminsearchRequest + .builder() + .locale(locale) + .searchRequest(searchRequest) + .build(); + AsyncRequestOperation operation = new Adminsearch.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -92,11 +115,30 @@ 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. + * @param autocompleteRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture autocomplete(AutocompleteRequest autocompleteRequest) { + return autocomplete(Optional.empty(), autocompleteRequest); + } + + /** + * Autocomplete + * + *

Retrieve query suggestions, operators and documents for the given partially typed query. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param autocompleteRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture autocomplete(AutocompleteRequest request) { - AsyncRequestOperation operation + public CompletableFuture autocomplete(Optional locale, AutocompleteRequest autocompleteRequest) { + com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest request = + com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest + .builder() + .locale(locale) + .autocompleteRequest(autocompleteRequest) + .build(); + AsyncRequestOperation operation = new Autocomplete.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -121,11 +163,31 @@ public FeedRequestBuilder retrieveFeed() { *

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. + * @param feedRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture retrieveFeed(FeedRequest request) { - AsyncRequestOperation operation + public CompletableFuture retrieveFeed(FeedRequest feedRequest) { + return retrieveFeed(Optional.empty(), feedRequest); + } + + /** + * Feed of documents and events + * + *

The personalized feed/home includes different types of contents including suggestions, recents, + * calendar events and many more. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param feedRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture retrieveFeed(Optional locale, FeedRequest feedRequest) { + com.glean.api_client.glean_api_client.models.operations.FeedRequest request = + com.glean.api_client.glean_api_client.models.operations.FeedRequest + .builder() + .locale(locale) + .feedRequest(feedRequest) + .build(); + AsyncRequestOperation operation = new Feed.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -148,11 +210,30 @@ 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. + * @param recommendationsRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture recommendations(RecommendationsRequest request) { - AsyncRequestOperation operation + public CompletableFuture recommendations(RecommendationsRequest recommendationsRequest) { + return recommendations(Optional.empty(), recommendationsRequest); + } + + /** + * Recommend documents + * + *

Retrieve recommended documents for the given URL or Glean Document ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param recommendationsRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture recommendations(Optional locale, RecommendationsRequest recommendationsRequest) { + com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest request = + com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest + .builder() + .locale(locale) + .recommendationsRequest(recommendationsRequest) + .build(); + AsyncRequestOperation operation = new Recommendations.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -175,11 +256,30 @@ 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. + * @param searchRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture query(SearchRequest searchRequest) { + return query(Optional.empty(), searchRequest); + } + + /** + * Search + * + *

Retrieve results from the index for the given query and filters. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param searchRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture query(SearchRequest request) { - AsyncRequestOperation operation + public CompletableFuture query(Optional locale, SearchRequest searchRequest) { + com.glean.api_client.glean_api_client.models.operations.SearchRequest request = + com.glean.api_client.glean_api_client.models.operations.SearchRequest + .builder() + .locale(locale) + .searchRequest(searchRequest) + .build(); + AsyncRequestOperation operation = new com.glean.api_client.glean_api_client.operations.Search.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); 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 e9d60a50..c8b636a8 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 @@ -7,6 +7,7 @@ import com.glean.api_client.glean_api_client.models.components.ReminderRequest; import com.glean.api_client.glean_api_client.models.components.VerifyRequest; +import com.glean.api_client.glean_api_client.models.operations.AddverificationreminderRequest; import com.glean.api_client.glean_api_client.models.operations.ListverificationsRequest; import com.glean.api_client.glean_api_client.models.operations.async.AddverificationreminderRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.async.AddverificationreminderResponse; @@ -19,6 +20,7 @@ import com.glean.api_client.glean_api_client.operations.Verify; import com.glean.api_client.glean_api_client.utils.Headers; import java.lang.Long; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; @@ -61,11 +63,31 @@ public AddverificationreminderRequestBuilder addReminder() { *

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. + * @param reminderRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture addReminder(ReminderRequest request) { - AsyncRequestOperation operation + public CompletableFuture addReminder(ReminderRequest reminderRequest) { + return addReminder(Optional.empty(), reminderRequest); + } + + /** + * Create verification + * + *

Creates a verification reminder for the document. Users can create verification reminders from + * different product surfaces. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param reminderRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture addReminder(Optional locale, ReminderRequest reminderRequest) { + AddverificationreminderRequest request = + AddverificationreminderRequest + .builder() + .locale(locale) + .reminderRequest(reminderRequest) + .build(); + AsyncRequestOperation operation = new Addverificationreminder.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); @@ -93,7 +115,7 @@ public ListverificationsRequestBuilder list() { * @return {@code CompletableFuture} - The async response */ public CompletableFuture listDirect() { - return list(Optional.empty()); + return list(Optional.empty(), Optional.empty()); } /** @@ -103,13 +125,15 @@ public CompletableFuture listDirect() { * document owned by user regarding their verifications. * * @param count Maximum number of documents to return + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @return {@code CompletableFuture} - The async response */ - public CompletableFuture list(Optional count) { + public CompletableFuture list(Optional count, Optional locale) { ListverificationsRequest request = ListverificationsRequest .builder() .count(count) + .locale(locale) .build(); AsyncRequestOperation operation = new Listverifications.Async(sdkConfiguration, _headers); @@ -134,11 +158,30 @@ 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. + * @param verifyRequest * @return {@code CompletableFuture} - The async response */ - public CompletableFuture verify(VerifyRequest request) { - AsyncRequestOperation operation + public CompletableFuture verify(VerifyRequest verifyRequest) { + return verify(Optional.empty(), verifyRequest); + } + + /** + * Update verification + * + *

Verify documents to keep the knowledge up to date within customer corpus. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param verifyRequest + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture verify(Optional locale, VerifyRequest verifyRequest) { + com.glean.api_client.glean_api_client.models.operations.VerifyRequest request = + com.glean.api_client.glean_api_client.models.operations.VerifyRequest + .builder() + .locale(locale) + .verifyRequest(verifyRequest) + .build(); + AsyncRequestOperation operation = new Verify.Async(sdkConfiguration, _headers); return operation.doRequest(request) .thenCompose(operation::handleResponse); 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 8a2a8e7e..786bcaee 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 @@ -52,6 +52,7 @@ import com.glean.api_client.glean_api_client.operations.Uploadchatfiles; import com.glean.api_client.glean_api_client.utils.Headers; import java.lang.Long; +import java.lang.String; import java.util.Optional; @@ -95,7 +96,7 @@ public ChatRequestBuilder create() { * @throws RuntimeException subclass if the API call fails */ public ChatResponse create(ChatRequest chatRequest) { - return create(Optional.empty(), chatRequest); + return create(Optional.empty(), Optional.empty(), chatRequest); } /** @@ -103,15 +104,19 @@ public ChatResponse create(ChatRequest chatRequest) { * *

Have a conversation with Glean AI. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 The minimal set of fields that form a chat request. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public ChatResponse create(Optional timezoneOffset, ChatRequest chatRequest) { + public ChatResponse create( + Optional locale, Optional timezoneOffset, + ChatRequest chatRequest) { com.glean.api_client.glean_api_client.models.operations.ChatRequest request = com.glean.api_client.glean_api_client.models.operations.ChatRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .chatRequest(chatRequest) .build(); @@ -140,7 +145,7 @@ public DeleteallchatsRequestBuilder deleteAll() { * @throws RuntimeException subclass if the API call fails */ public DeleteallchatsResponse deleteAllDirect() { - return deleteAll(Optional.empty()); + return deleteAll(Optional.empty(), Optional.empty()); } /** @@ -148,14 +153,16 @@ public DeleteallchatsResponse deleteAllDirect() { * *

Deletes all saved Chats a user has had and all their contained conversational content. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 * @throws RuntimeException subclass if the API call fails */ - public DeleteallchatsResponse deleteAll(Optional timezoneOffset) { + public DeleteallchatsResponse deleteAll(Optional locale, Optional timezoneOffset) { DeleteallchatsRequest request = DeleteallchatsRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .build(); RequestOperation operation @@ -184,7 +191,7 @@ public DeletechatsRequestBuilder delete() { * @throws RuntimeException subclass if the API call fails */ public DeletechatsResponse delete(DeleteChatsRequest deleteChatsRequest) { - return delete(Optional.empty(), deleteChatsRequest); + return delete(Optional.empty(), Optional.empty(), deleteChatsRequest); } /** @@ -192,15 +199,19 @@ public DeletechatsResponse delete(DeleteChatsRequest deleteChatsRequest) { * *

Deletes saved Chats and all their contained conversational content. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 The response from the API call * @throws RuntimeException subclass if the API call fails */ - public DeletechatsResponse delete(Optional timezoneOffset, DeleteChatsRequest deleteChatsRequest) { + public DeletechatsResponse delete( + Optional locale, Optional timezoneOffset, + DeleteChatsRequest deleteChatsRequest) { DeletechatsRequest request = DeletechatsRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .deleteChatsRequest(deleteChatsRequest) .build(); @@ -230,7 +241,7 @@ public GetchatRequestBuilder retrieve() { * @throws RuntimeException subclass if the API call fails */ public GetchatResponse retrieve(GetChatRequest getChatRequest) { - return retrieve(Optional.empty(), getChatRequest); + return retrieve(Optional.empty(), Optional.empty(), getChatRequest); } /** @@ -238,15 +249,19 @@ public GetchatResponse retrieve(GetChatRequest getChatRequest) { * *

Retrieves the chat history between Glean Assistant and the user for a given Chat. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetchatResponse retrieve(Optional timezoneOffset, GetChatRequest getChatRequest) { + public GetchatResponse retrieve( + Optional locale, Optional timezoneOffset, + GetChatRequest getChatRequest) { GetchatRequest request = GetchatRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .getChatRequest(getChatRequest) .build(); @@ -277,7 +292,7 @@ public ListchatsRequestBuilder list() { * @throws RuntimeException subclass if the API call fails */ public ListchatsResponse listDirect() { - return list(Optional.empty()); + return list(Optional.empty(), Optional.empty()); } /** @@ -286,14 +301,16 @@ public ListchatsResponse listDirect() { *

Retrieves all the saved Chats between Glean Assistant and the user. The returned Chats contain only * metadata and no conversational content. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 * @throws RuntimeException subclass if the API call fails */ - public ListchatsResponse list(Optional timezoneOffset) { + public ListchatsResponse list(Optional locale, Optional timezoneOffset) { ListchatsRequest request = ListchatsRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .build(); RequestOperation operation @@ -322,7 +339,7 @@ public GetchatapplicationRequestBuilder retrieveApplication() { * @throws RuntimeException subclass if the API call fails */ public GetchatapplicationResponse retrieveApplication(GetChatApplicationRequest getChatApplicationRequest) { - return retrieveApplication(Optional.empty(), getChatApplicationRequest); + return retrieveApplication(Optional.empty(), Optional.empty(), getChatApplicationRequest); } /** @@ -330,15 +347,19 @@ public GetchatapplicationResponse retrieveApplication(GetChatApplicationRequest * *

Gets the Chat application details for the specified application ID. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetchatapplicationResponse retrieveApplication(Optional timezoneOffset, GetChatApplicationRequest getChatApplicationRequest) { + public GetchatapplicationResponse retrieveApplication( + Optional locale, Optional timezoneOffset, + GetChatApplicationRequest getChatApplicationRequest) { GetchatapplicationRequest request = GetchatapplicationRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .getChatApplicationRequest(getChatApplicationRequest) .build(); @@ -368,7 +389,7 @@ public UploadchatfilesRequestBuilder uploadFiles() { * @throws RuntimeException subclass if the API call fails */ public UploadchatfilesResponse uploadFiles(UploadChatFilesRequest uploadChatFilesRequest) { - return uploadFiles(Optional.empty(), uploadChatFilesRequest); + return uploadFiles(Optional.empty(), Optional.empty(), uploadChatFilesRequest); } /** @@ -376,15 +397,19 @@ public UploadchatfilesResponse uploadFiles(UploadChatFilesRequest uploadChatFile * *

Upload files for Chat. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 The response from the API call * @throws RuntimeException subclass if the API call fails */ - public UploadchatfilesResponse uploadFiles(Optional timezoneOffset, UploadChatFilesRequest uploadChatFilesRequest) { + public UploadchatfilesResponse uploadFiles( + Optional locale, Optional timezoneOffset, + UploadChatFilesRequest uploadChatFilesRequest) { UploadchatfilesRequest request = UploadchatfilesRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .uploadChatFilesRequest(uploadChatFilesRequest) .build(); @@ -414,7 +439,7 @@ public GetchatfilesRequestBuilder retrieveFiles() { * @throws RuntimeException subclass if the API call fails */ public GetchatfilesResponse retrieveFiles(GetChatFilesRequest getChatFilesRequest) { - return retrieveFiles(Optional.empty(), getChatFilesRequest); + return retrieveFiles(Optional.empty(), Optional.empty(), getChatFilesRequest); } /** @@ -422,15 +447,19 @@ public GetchatfilesResponse retrieveFiles(GetChatFilesRequest getChatFilesReques * *

Get files uploaded by a user for Chat. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetchatfilesResponse retrieveFiles(Optional timezoneOffset, GetChatFilesRequest getChatFilesRequest) { + public GetchatfilesResponse retrieveFiles( + Optional locale, Optional timezoneOffset, + GetChatFilesRequest getChatFilesRequest) { GetchatfilesRequest request = GetchatfilesRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .getChatFilesRequest(getChatFilesRequest) .build(); @@ -460,7 +489,7 @@ public DeletechatfilesRequestBuilder deleteFiles() { * @throws RuntimeException subclass if the API call fails */ public DeletechatfilesResponse deleteFiles(DeleteChatFilesRequest deleteChatFilesRequest) { - return deleteFiles(Optional.empty(), deleteChatFilesRequest); + return deleteFiles(Optional.empty(), Optional.empty(), deleteChatFilesRequest); } /** @@ -468,15 +497,19 @@ public DeletechatfilesResponse deleteFiles(DeleteChatFilesRequest deleteChatFile * *

Delete files uploaded by a user for Chat. * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @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 The response from the API call * @throws RuntimeException subclass if the API call fails */ - public DeletechatfilesResponse deleteFiles(Optional timezoneOffset, DeleteChatFilesRequest deleteChatFilesRequest) { + public DeletechatfilesResponse deleteFiles( + Optional locale, Optional timezoneOffset, + DeleteChatFilesRequest deleteChatFilesRequest) { DeletechatfilesRequest request = DeletechatfilesRequest .builder() + .locale(locale) .timezoneOffset(timezoneOffset) .deleteChatFilesRequest(deleteChatFilesRequest) .build(); 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 6d99ddcc..0d225de8 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 @@ -9,10 +9,13 @@ import com.glean.api_client.glean_api_client.models.components.GetDocumentsByFacetsRequest; import com.glean.api_client.glean_api_client.models.components.GetDocumentsRequest; import com.glean.api_client.glean_api_client.models.components.SummarizeRequest; +import com.glean.api_client.glean_api_client.models.operations.GetdocpermissionsRequest; import com.glean.api_client.glean_api_client.models.operations.GetdocpermissionsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.GetdocpermissionsResponse; +import com.glean.api_client.glean_api_client.models.operations.GetdocumentsRequest; import com.glean.api_client.glean_api_client.models.operations.GetdocumentsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.GetdocumentsResponse; +import com.glean.api_client.glean_api_client.models.operations.GetdocumentsbyfacetsRequest; import com.glean.api_client.glean_api_client.models.operations.GetdocumentsbyfacetsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.GetdocumentsbyfacetsResponse; import com.glean.api_client.glean_api_client.models.operations.SummarizeRequestBuilder; @@ -22,6 +25,7 @@ import com.glean.api_client.glean_api_client.operations.Getdocumentsbyfacets; import com.glean.api_client.glean_api_client.operations.Summarize; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; import java.util.Optional; @@ -60,12 +64,32 @@ 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. + * @param getDocPermissionsRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetdocpermissionsResponse retrievePermissions(GetDocPermissionsRequest request) { - RequestOperation operation + public GetdocpermissionsResponse retrievePermissions(GetDocPermissionsRequest getDocPermissionsRequest) { + return retrievePermissions(Optional.empty(), getDocPermissionsRequest); + } + + /** + * Read document permissions + * + *

Read the emails of all users who have access to the given document. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getDocPermissionsRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetdocpermissionsResponse retrievePermissions(Optional locale, GetDocPermissionsRequest getDocPermissionsRequest) { + GetdocpermissionsRequest request = + GetdocpermissionsRequest + .builder() + .locale(locale) + .getDocPermissionsRequest(getDocPermissionsRequest) + .build(); + RequestOperation operation = new Getdocpermissions.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -92,7 +116,7 @@ public GetdocumentsRequestBuilder retrieve() { * @throws RuntimeException subclass if the API call fails */ public GetdocumentsResponse retrieveDirect() { - return retrieve(Optional.empty()); + return retrieve(Optional.empty(), Optional.empty()); } /** @@ -101,12 +125,19 @@ public GetdocumentsResponse retrieveDirect() { *

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. + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getDocumentsRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetdocumentsResponse retrieve(Optional request) { - RequestOperation, GetdocumentsResponse> operation + public GetdocumentsResponse retrieve(Optional locale, Optional getDocumentsRequest) { + GetdocumentsRequest request = + GetdocumentsRequest + .builder() + .locale(locale) + .getDocumentsRequest(getDocumentsRequest) + .build(); + RequestOperation operation = new Getdocuments.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -133,7 +164,7 @@ public GetdocumentsbyfacetsRequestBuilder retrieveByFacets() { * @throws RuntimeException subclass if the API call fails */ public GetdocumentsbyfacetsResponse retrieveByFacetsDirect() { - return retrieveByFacets(Optional.empty()); + return retrieveByFacets(Optional.empty(), Optional.empty()); } /** @@ -142,12 +173,19 @@ public GetdocumentsbyfacetsResponse retrieveByFacetsDirect() { *

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. + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getDocumentsByFacetsRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetdocumentsbyfacetsResponse retrieveByFacets(Optional request) { - RequestOperation, GetdocumentsbyfacetsResponse> operation + public GetdocumentsbyfacetsResponse retrieveByFacets(Optional locale, Optional getDocumentsByFacetsRequest) { + GetdocumentsbyfacetsRequest request = + GetdocumentsbyfacetsRequest + .builder() + .locale(locale) + .getDocumentsByFacetsRequest(getDocumentsByFacetsRequest) + .build(); + RequestOperation operation = new Getdocumentsbyfacets.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -168,12 +206,32 @@ public SummarizeRequestBuilder summarize() { * *

Generate an AI summary of the requested documents. * - * @param request The request object containing all the parameters for the API call. + * @param summarizeRequest Summary of the document + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public SummarizeResponse summarize(SummarizeRequest summarizeRequest) { + return summarize(Optional.empty(), summarizeRequest); + } + + /** + * Summarize documents + * + *

Generate an AI summary of the requested documents. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param summarizeRequest Summary of the document * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public SummarizeResponse summarize(SummarizeRequest request) { - RequestOperation operation + public SummarizeResponse summarize(Optional locale, SummarizeRequest summarizeRequest) { + com.glean.api_client.glean_api_client.models.operations.SummarizeRequest request = + com.glean.api_client.glean_api_client.models.operations.SummarizeRequest + .builder() + .locale(locale) + .summarizeRequest(summarizeRequest) + .build(); + RequestOperation operation = new Summarize.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/ClientShortcuts.java b/src/main/java/com/glean/api_client/glean_api_client/ClientShortcuts.java index 91a32cef..17267538 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/ClientShortcuts.java +++ b/src/main/java/com/glean/api_client/glean_api_client/ClientShortcuts.java @@ -10,14 +10,19 @@ import com.glean.api_client.glean_api_client.models.components.GetShortcutRequestUnion; import com.glean.api_client.glean_api_client.models.components.ListShortcutsPaginatedRequest; import com.glean.api_client.glean_api_client.models.components.UpdateShortcutRequest; +import com.glean.api_client.glean_api_client.models.operations.CreateshortcutRequest; import com.glean.api_client.glean_api_client.models.operations.CreateshortcutRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.CreateshortcutResponse; +import com.glean.api_client.glean_api_client.models.operations.DeleteshortcutRequest; import com.glean.api_client.glean_api_client.models.operations.DeleteshortcutRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.DeleteshortcutResponse; +import com.glean.api_client.glean_api_client.models.operations.GetshortcutRequest; import com.glean.api_client.glean_api_client.models.operations.GetshortcutRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.GetshortcutResponse; +import com.glean.api_client.glean_api_client.models.operations.ListshortcutsRequest; import com.glean.api_client.glean_api_client.models.operations.ListshortcutsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.ListshortcutsResponse; +import com.glean.api_client.glean_api_client.models.operations.UpdateshortcutRequest; import com.glean.api_client.glean_api_client.models.operations.UpdateshortcutRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.UpdateshortcutResponse; import com.glean.api_client.glean_api_client.operations.Createshortcut; @@ -26,6 +31,8 @@ import com.glean.api_client.glean_api_client.operations.Listshortcuts; import com.glean.api_client.glean_api_client.operations.Updateshortcut; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; public class ClientShortcuts { @@ -63,12 +70,32 @@ 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. + * @param createShortcutRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public CreateshortcutResponse create(CreateShortcutRequest request) { - RequestOperation operation + public CreateshortcutResponse create(CreateShortcutRequest createShortcutRequest) { + return create(Optional.empty(), createShortcutRequest); + } + + /** + * Create shortcut + * + *

Create a user-generated shortcut that contains an alias and destination URL. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param createShortcutRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreateshortcutResponse create(Optional locale, CreateShortcutRequest createShortcutRequest) { + CreateshortcutRequest request = + CreateshortcutRequest + .builder() + .locale(locale) + .createShortcutRequest(createShortcutRequest) + .build(); + RequestOperation operation = new Createshortcut.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -89,12 +116,32 @@ public DeleteshortcutRequestBuilder delete() { * *

Delete an existing user-generated shortcut. * - * @param request The request object containing all the parameters for the API call. + * @param deleteShortcutRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public DeleteshortcutResponse delete(DeleteShortcutRequest request) { - RequestOperation operation + public DeleteshortcutResponse delete(DeleteShortcutRequest deleteShortcutRequest) { + return delete(Optional.empty(), deleteShortcutRequest); + } + + /** + * Delete shortcut + * + *

Delete an existing user-generated shortcut. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param deleteShortcutRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeleteshortcutResponse delete(Optional locale, DeleteShortcutRequest deleteShortcutRequest) { + DeleteshortcutRequest request = + DeleteshortcutRequest + .builder() + .locale(locale) + .deleteShortcutRequest(deleteShortcutRequest) + .build(); + RequestOperation operation = new Deleteshortcut.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -115,12 +162,32 @@ 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. + * @param getShortcutRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetshortcutResponse retrieve(GetShortcutRequestUnion getShortcutRequest) { + return retrieve(Optional.empty(), getShortcutRequest); + } + + /** + * Read shortcut + * + *

Read a particular shortcut's details given its ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getShortcutRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetshortcutResponse retrieve(GetShortcutRequestUnion request) { - RequestOperation operation + public GetshortcutResponse retrieve(Optional locale, GetShortcutRequestUnion getShortcutRequest) { + GetshortcutRequest request = + GetshortcutRequest + .builder() + .locale(locale) + .getShortcutRequest(getShortcutRequest) + .build(); + RequestOperation operation = new Getshortcut.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -141,12 +208,32 @@ 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. + * @param listShortcutsPaginatedRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public ListshortcutsResponse list(ListShortcutsPaginatedRequest request) { - RequestOperation operation + public ListshortcutsResponse list(ListShortcutsPaginatedRequest listShortcutsPaginatedRequest) { + return list(Optional.empty(), listShortcutsPaginatedRequest); + } + + /** + * List shortcuts + * + *

List shortcuts editable/owned by the currently authenticated user. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param listShortcutsPaginatedRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListshortcutsResponse list(Optional locale, ListShortcutsPaginatedRequest listShortcutsPaginatedRequest) { + ListshortcutsRequest request = + ListshortcutsRequest + .builder() + .locale(locale) + .listShortcutsPaginatedRequest(listShortcutsPaginatedRequest) + .build(); + RequestOperation operation = new Listshortcuts.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -167,12 +254,32 @@ public UpdateshortcutRequestBuilder update() { * *

Updates the shortcut with the given ID. * - * @param request The request object containing all the parameters for the API call. + * @param updateShortcutRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UpdateshortcutResponse update(UpdateShortcutRequest updateShortcutRequest) { + return update(Optional.empty(), updateShortcutRequest); + } + + /** + * Update shortcut + * + *

Updates the shortcut with the given ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param updateShortcutRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public UpdateshortcutResponse update(UpdateShortcutRequest request) { - RequestOperation operation + public UpdateshortcutResponse update(Optional locale, UpdateShortcutRequest updateShortcutRequest) { + UpdateshortcutRequest request = + UpdateshortcutRequest + .builder() + .locale(locale) + .updateShortcutRequest(updateShortcutRequest) + .build(); + RequestOperation operation = new Updateshortcut.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/Collections.java b/src/main/java/com/glean/api_client/glean_api_client/Collections.java index d91cfee9..10bffc9c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Collections.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Collections.java @@ -13,20 +13,28 @@ import com.glean.api_client.glean_api_client.models.components.EditCollectionRequest; import com.glean.api_client.glean_api_client.models.components.GetCollectionRequest; import com.glean.api_client.glean_api_client.models.components.ListCollectionsRequest; +import com.glean.api_client.glean_api_client.models.operations.AddcollectionitemsRequest; import com.glean.api_client.glean_api_client.models.operations.AddcollectionitemsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.AddcollectionitemsResponse; +import com.glean.api_client.glean_api_client.models.operations.CreatecollectionRequest; import com.glean.api_client.glean_api_client.models.operations.CreatecollectionRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.CreatecollectionResponse; +import com.glean.api_client.glean_api_client.models.operations.DeletecollectionRequest; import com.glean.api_client.glean_api_client.models.operations.DeletecollectionRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.DeletecollectionResponse; +import com.glean.api_client.glean_api_client.models.operations.DeletecollectionitemRequest; import com.glean.api_client.glean_api_client.models.operations.DeletecollectionitemRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.DeletecollectionitemResponse; +import com.glean.api_client.glean_api_client.models.operations.EditcollectionRequest; import com.glean.api_client.glean_api_client.models.operations.EditcollectionRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.EditcollectionResponse; +import com.glean.api_client.glean_api_client.models.operations.EditcollectionitemRequest; import com.glean.api_client.glean_api_client.models.operations.EditcollectionitemRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.EditcollectionitemResponse; +import com.glean.api_client.glean_api_client.models.operations.GetcollectionRequest; import com.glean.api_client.glean_api_client.models.operations.GetcollectionRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.GetcollectionResponse; +import com.glean.api_client.glean_api_client.models.operations.ListcollectionsRequest; import com.glean.api_client.glean_api_client.models.operations.ListcollectionsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.ListcollectionsResponse; import com.glean.api_client.glean_api_client.operations.Addcollectionitems; @@ -38,6 +46,8 @@ import com.glean.api_client.glean_api_client.operations.Getcollection; import com.glean.api_client.glean_api_client.operations.Listcollections; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; public class Collections { @@ -75,12 +85,32 @@ public AddcollectionitemsRequestBuilder addItems() { * *

Add items to a Collection. * - * @param request The request object containing all the parameters for the API call. + * @param addCollectionItemsRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public AddcollectionitemsResponse addItems(AddCollectionItemsRequest request) { - RequestOperation operation + public AddcollectionitemsResponse addItems(AddCollectionItemsRequest addCollectionItemsRequest) { + return addItems(Optional.empty(), addCollectionItemsRequest); + } + + /** + * Add Collection item + * + *

Add items to a Collection. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param addCollectionItemsRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public AddcollectionitemsResponse addItems(Optional locale, AddCollectionItemsRequest addCollectionItemsRequest) { + AddcollectionitemsRequest request = + AddcollectionitemsRequest + .builder() + .locale(locale) + .addCollectionItemsRequest(addCollectionItemsRequest) + .build(); + RequestOperation operation = new Addcollectionitems.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -101,12 +131,32 @@ public CreatecollectionRequestBuilder create() { * *

Create a publicly visible (empty) Collection of documents. * - * @param request The request object containing all the parameters for the API call. + * @param createCollectionRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public CreatecollectionResponse create(CreateCollectionRequest createCollectionRequest) { + return create(Optional.empty(), createCollectionRequest); + } + + /** + * Create Collection + * + *

Create a publicly visible (empty) Collection of documents. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param createCollectionRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public CreatecollectionResponse create(CreateCollectionRequest request) { - RequestOperation operation + public CreatecollectionResponse create(Optional locale, CreateCollectionRequest createCollectionRequest) { + CreatecollectionRequest request = + CreatecollectionRequest + .builder() + .locale(locale) + .createCollectionRequest(createCollectionRequest) + .build(); + RequestOperation operation = new Createcollection.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -127,12 +177,32 @@ public DeletecollectionRequestBuilder delete() { * *

Delete a Collection given the Collection's ID. * - * @param request The request object containing all the parameters for the API call. + * @param deleteCollectionRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public DeletecollectionResponse delete(DeleteCollectionRequest request) { - RequestOperation operation + public DeletecollectionResponse delete(DeleteCollectionRequest deleteCollectionRequest) { + return delete(Optional.empty(), deleteCollectionRequest); + } + + /** + * Delete Collection + * + *

Delete a Collection given the Collection's ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param deleteCollectionRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeletecollectionResponse delete(Optional locale, DeleteCollectionRequest deleteCollectionRequest) { + DeletecollectionRequest request = + DeletecollectionRequest + .builder() + .locale(locale) + .deleteCollectionRequest(deleteCollectionRequest) + .build(); + RequestOperation operation = new Deletecollection.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -153,12 +223,32 @@ public DeletecollectionitemRequestBuilder deleteItem() { * *

Delete a single item from a Collection. * - * @param request The request object containing all the parameters for the API call. + * @param deleteCollectionItemRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public DeletecollectionitemResponse deleteItem(DeleteCollectionItemRequest deleteCollectionItemRequest) { + return deleteItem(Optional.empty(), deleteCollectionItemRequest); + } + + /** + * Delete Collection item + * + *

Delete a single item from a Collection. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param deleteCollectionItemRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public DeletecollectionitemResponse deleteItem(DeleteCollectionItemRequest request) { - RequestOperation operation + public DeletecollectionitemResponse deleteItem(Optional locale, DeleteCollectionItemRequest deleteCollectionItemRequest) { + DeletecollectionitemRequest request = + DeletecollectionitemRequest + .builder() + .locale(locale) + .deleteCollectionItemRequest(deleteCollectionItemRequest) + .build(); + RequestOperation operation = new Deletecollectionitem.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -179,12 +269,32 @@ public EditcollectionRequestBuilder update() { * *

Update the properties of an existing Collection. * - * @param request The request object containing all the parameters for the API call. + * @param editCollectionRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public EditcollectionResponse update(EditCollectionRequest request) { - RequestOperation operation + public EditcollectionResponse update(EditCollectionRequest editCollectionRequest) { + return update(Optional.empty(), editCollectionRequest); + } + + /** + * Update Collection + * + *

Update the properties of an existing Collection. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param editCollectionRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public EditcollectionResponse update(Optional locale, EditCollectionRequest editCollectionRequest) { + EditcollectionRequest request = + EditcollectionRequest + .builder() + .locale(locale) + .editCollectionRequest(editCollectionRequest) + .build(); + RequestOperation operation = new Editcollection.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -205,12 +315,32 @@ 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. + * @param editCollectionItemRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public EditcollectionitemResponse updateItem(EditCollectionItemRequest editCollectionItemRequest) { + return updateItem(Optional.empty(), editCollectionItemRequest); + } + + /** + * Update Collection item + * + *

Update the URL, Glean Document ID, description of an item within a Collection given its ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param editCollectionItemRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public EditcollectionitemResponse updateItem(EditCollectionItemRequest request) { - RequestOperation operation + public EditcollectionitemResponse updateItem(Optional locale, EditCollectionItemRequest editCollectionItemRequest) { + EditcollectionitemRequest request = + EditcollectionitemRequest + .builder() + .locale(locale) + .editCollectionItemRequest(editCollectionItemRequest) + .build(); + RequestOperation operation = new Editcollectionitem.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -231,12 +361,32 @@ 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. + * @param getCollectionRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetcollectionResponse retrieve(GetCollectionRequest request) { - RequestOperation operation + public GetcollectionResponse retrieve(GetCollectionRequest getCollectionRequest) { + return retrieve(Optional.empty(), getCollectionRequest); + } + + /** + * Read Collection + * + *

Read the details of a Collection given its ID. Does not fetch items in this Collection. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getCollectionRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetcollectionResponse retrieve(Optional locale, GetCollectionRequest getCollectionRequest) { + GetcollectionRequest request = + GetcollectionRequest + .builder() + .locale(locale) + .getCollectionRequest(getCollectionRequest) + .build(); + RequestOperation operation = new Getcollection.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -257,12 +407,32 @@ public ListcollectionsRequestBuilder list() { * *

List all existing Collections. * - * @param request The request object containing all the parameters for the API call. + * @param listCollectionsRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListcollectionsResponse list(ListCollectionsRequest listCollectionsRequest) { + return list(Optional.empty(), listCollectionsRequest); + } + + /** + * List Collections + * + *

List all existing Collections. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param listCollectionsRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public ListcollectionsResponse list(ListCollectionsRequest request) { - RequestOperation operation + public ListcollectionsResponse list(Optional locale, ListCollectionsRequest listCollectionsRequest) { + ListcollectionsRequest request = + ListcollectionsRequest + .builder() + .locale(locale) + .listCollectionsRequest(listCollectionsRequest) + .build(); + RequestOperation operation = new Listcollections.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } 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 99bcfffa..7d41b401 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 @@ -7,6 +7,7 @@ import com.glean.api_client.glean_api_client.models.components.ListEntitiesRequest; import com.glean.api_client.glean_api_client.models.components.PeopleRequest; +import com.glean.api_client.glean_api_client.models.operations.ListentitiesRequest; import com.glean.api_client.glean_api_client.models.operations.ListentitiesRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.ListentitiesResponse; import com.glean.api_client.glean_api_client.models.operations.PeopleRequestBuilder; @@ -14,6 +15,8 @@ import com.glean.api_client.glean_api_client.operations.Listentities; import com.glean.api_client.glean_api_client.operations.People; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; public class Entities { @@ -57,12 +60,35 @@ public ListentitiesRequestBuilder list() { * 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. + * @param listEntitiesRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public ListentitiesResponse list(ListEntitiesRequest request) { - RequestOperation operation + public ListentitiesResponse list(ListEntitiesRequest listEntitiesRequest) { + return list(Optional.empty(), listEntitiesRequest); + } + + /** + * 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. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param listEntitiesRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListentitiesResponse list(Optional locale, ListEntitiesRequest listEntitiesRequest) { + ListentitiesRequest request = + ListentitiesRequest + .builder() + .locale(locale) + .listEntitiesRequest(listEntitiesRequest) + .build(); + RequestOperation operation = new Listentities.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -83,12 +109,32 @@ public PeopleRequestBuilder readPeople() { * *

Read people details for the given IDs. * - * @param request The request object containing all the parameters for the API call. + * @param peopleRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public PeopleResponse readPeople(PeopleRequest peopleRequest) { + return readPeople(Optional.empty(), peopleRequest); + } + + /** + * Read people + * + *

Read people details for the given IDs. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param peopleRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public PeopleResponse readPeople(PeopleRequest request) { - RequestOperation operation + public PeopleResponse readPeople(Optional locale, PeopleRequest peopleRequest) { + com.glean.api_client.glean_api_client.models.operations.PeopleRequest request = + com.glean.api_client.glean_api_client.models.operations.PeopleRequest + .builder() + .locale(locale) + .peopleRequest(peopleRequest) + .build(); + RequestOperation operation = new People.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } 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 19103561..24f6ef00 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 @@ -204,35 +204,6 @@ public Builder instance(String instance) { return this; } - - /** - * Exclude API endpoints that will be deprecated after this date. - * Use this to test your integration against upcoming deprecations. - * - *

More information: Deprecations Overview - * - * @param excludeDeprecatedAfter date string in YYYY-MM-DD format (e.g., '2026-10-15') - * @return The builder instance. - */ - public Builder excludeDeprecatedAfter(String excludeDeprecatedAfter) { - this.sdkConfiguration.setExcludeDeprecatedAfter(Optional.of(excludeDeprecatedAfter)); - return this; - } - - /** - * Enable experimental API features that are not yet generally available. - * Use this to preview and test new functionality. - * - *

Warning: Experimental features may change or be removed without notice. - * Do not rely on experimental features in production environments. - * - * @param includeExperimental whether to include experimental features - * @return The builder instance. - */ - public Builder includeExperimental(boolean includeExperimental) { - this.sdkConfiguration.setIncludeExperimental(Optional.of(includeExperimental)); - return this; - } // Visible for testing, may be accessed via reflection in tests Builder _hooks(com.glean.api_client.glean_api_client.utils.Hooks hooks) { sdkConfiguration.setHooks(hooks); 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 2dbb2e33..fd06b4a6 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 @@ -9,6 +9,8 @@ import com.glean.api_client.glean_api_client.models.operations.InsightsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.InsightsResponse; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; public class Insights { @@ -46,12 +48,32 @@ public InsightsRequestBuilder retrieve() { * *

Gets the aggregate usage insights data displayed in the Insights Dashboards. * - * @param request The request object containing all the parameters for the API call. + * @param insightsRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public InsightsResponse retrieve(InsightsRequest request) { - RequestOperation operation + public InsightsResponse retrieve(InsightsRequest insightsRequest) { + return retrieve(Optional.empty(), insightsRequest); + } + + /** + * Get insights + * + *

Gets the aggregate usage insights data displayed in the Insights Dashboards. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param insightsRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public InsightsResponse retrieve(Optional locale, InsightsRequest insightsRequest) { + com.glean.api_client.glean_api_client.models.operations.InsightsRequest request = + com.glean.api_client.glean_api_client.models.operations.InsightsRequest + .builder() + .locale(locale) + .insightsRequest(insightsRequest) + .build(); + RequestOperation operation = new com.glean.api_client.glean_api_client.operations.Insights.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/Messages.java b/src/main/java/com/glean/api_client/glean_api_client/Messages.java index cf09c948..3678a263 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Messages.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Messages.java @@ -9,6 +9,8 @@ import com.glean.api_client.glean_api_client.models.operations.MessagesRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.MessagesResponse; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; public class Messages { @@ -46,12 +48,32 @@ 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. + * @param messagesRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public MessagesResponse retrieve(MessagesRequest request) { - RequestOperation operation + public MessagesResponse retrieve(MessagesRequest messagesRequest) { + return retrieve(Optional.empty(), messagesRequest); + } + + /** + * Read messages + * + *

Retrieves list of messages from messaging/chat datasources (e.g. Slack, Teams). + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param messagesRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public MessagesResponse retrieve(Optional locale, MessagesRequest messagesRequest) { + com.glean.api_client.glean_api_client.models.operations.MessagesRequest request = + com.glean.api_client.glean_api_client.models.operations.MessagesRequest + .builder() + .locale(locale) + .messagesRequest(messagesRequest) + .build(); + RequestOperation operation = new com.glean.api_client.glean_api_client.operations.Messages.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/Pins.java b/src/main/java/com/glean/api_client/glean_api_client/Pins.java index 0fb2b0b7..ce5ca3fa 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Pins.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Pins.java @@ -9,15 +9,19 @@ import com.glean.api_client.glean_api_client.models.components.GetPinRequest; import com.glean.api_client.glean_api_client.models.components.PinRequest; import com.glean.api_client.glean_api_client.models.components.Unpin; +import com.glean.api_client.glean_api_client.models.operations.EditpinRequest; import com.glean.api_client.glean_api_client.models.operations.EditpinRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.EditpinResponse; +import com.glean.api_client.glean_api_client.models.operations.GetpinRequest; import com.glean.api_client.glean_api_client.models.operations.GetpinRequestBuilder; 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.ListpinsRequestBody; import com.glean.api_client.glean_api_client.models.operations.ListpinsRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.ListpinsResponse; import com.glean.api_client.glean_api_client.models.operations.PinRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.PinResponse; +import com.glean.api_client.glean_api_client.models.operations.UnpinRequest; import com.glean.api_client.glean_api_client.models.operations.UnpinRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.UnpinResponse; import com.glean.api_client.glean_api_client.operations.Editpin; @@ -25,6 +29,8 @@ import com.glean.api_client.glean_api_client.operations.Listpins; import com.glean.api_client.glean_api_client.operations.Pin; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; public class Pins { @@ -62,12 +68,32 @@ public EditpinRequestBuilder update() { * *

Update an existing user-generated pin. * - * @param request The request object containing all the parameters for the API call. + * @param editPinRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public EditpinResponse update(EditPinRequest request) { - RequestOperation operation + public EditpinResponse update(EditPinRequest editPinRequest) { + return update(Optional.empty(), editPinRequest); + } + + /** + * Update pin + * + *

Update an existing user-generated pin. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param editPinRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public EditpinResponse update(Optional locale, EditPinRequest editPinRequest) { + EditpinRequest request = + EditpinRequest + .builder() + .locale(locale) + .editPinRequest(editPinRequest) + .build(); + RequestOperation operation = new Editpin.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -88,12 +114,32 @@ public GetpinRequestBuilder retrieve() { * *

Read pin details given its ID. * - * @param request The request object containing all the parameters for the API call. + * @param getPinRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public GetpinResponse retrieve(GetPinRequest request) { - RequestOperation operation + public GetpinResponse retrieve(GetPinRequest getPinRequest) { + return retrieve(Optional.empty(), getPinRequest); + } + + /** + * Read pin + * + *

Read pin details given its ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param getPinRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public GetpinResponse retrieve(Optional locale, GetPinRequest getPinRequest) { + GetpinRequest request = + GetpinRequest + .builder() + .locale(locale) + .getPinRequest(getPinRequest) + .build(); + RequestOperation operation = new Getpin.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -114,11 +160,31 @@ public ListpinsRequestBuilder list() { * *

Lists all pins. * - * @param request The request object containing all the parameters for the API call. + * @param requestBody List pins request + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public ListpinsResponse list(ListpinsRequestBody requestBody) { + return list(Optional.empty(), requestBody); + } + + /** + * List pins + * + *

Lists all pins. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param requestBody List pins request * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public ListpinsResponse list(ListpinsRequest request) { + public ListpinsResponse list(Optional locale, ListpinsRequestBody requestBody) { + ListpinsRequest request = + ListpinsRequest + .builder() + .locale(locale) + .requestBody(requestBody) + .build(); RequestOperation operation = new Listpins.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); @@ -140,12 +206,32 @@ 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. + * @param pinRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public PinResponse create(PinRequest request) { - RequestOperation operation + public PinResponse create(PinRequest pinRequest) { + return create(Optional.empty(), pinRequest); + } + + /** + * Create pin + * + *

Pin a document as a result for a given search query.Pin results that are known to be a good match. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param pinRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public PinResponse create(Optional locale, PinRequest pinRequest) { + com.glean.api_client.glean_api_client.models.operations.PinRequest request = + com.glean.api_client.glean_api_client.models.operations.PinRequest + .builder() + .locale(locale) + .pinRequest(pinRequest) + .build(); + RequestOperation operation = new Pin.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -166,12 +252,32 @@ public UnpinRequestBuilder remove() { * *

Unpin a previously pinned result. * - * @param request The request object containing all the parameters for the API call. + * @param unpin + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public UnpinResponse remove(Unpin unpin) { + return remove(Optional.empty(), unpin); + } + + /** + * Delete pin + * + *

Unpin a previously pinned result. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param unpin * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public UnpinResponse remove(Unpin request) { - RequestOperation operation + public UnpinResponse remove(Optional locale, Unpin unpin) { + UnpinRequest request = + UnpinRequest + .builder() + .locale(locale) + .unpin(unpin) + .build(); + RequestOperation operation = new com.glean.api_client.glean_api_client.operations.Unpin.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } 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 24dfee1d..2dc3f3b8 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.12.14"; - public static final String GEN_VERSION = "2.796.1"; + public static final String SDK_VERSION = "0.12.15"; + public static final String GEN_VERSION = "2.806.4"; 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", @@ -128,7 +128,7 @@ public Map getServerVariableDefaults() { return serverVariables.get(this.serverIdx); } private Optional retryConfig = Optional.empty(); - + public Optional retryConfig() { return retryConfig; } @@ -137,50 +137,6 @@ public void setRetryConfig(Optional retryConfig) { Utils.checkNotNull(retryConfig, "retryConfig"); this.retryConfig = retryConfig; } - - private Optional excludeDeprecatedAfter = Optional.empty(); - - /** - * Gets the date after which deprecated API endpoints should be excluded. - * - * @return Optional containing the date string (YYYY-MM-DD format) if set - */ - public Optional excludeDeprecatedAfter() { - return excludeDeprecatedAfter; - } - - /** - * Sets the date after which deprecated API endpoints should be excluded. - * Use this to test your integration against upcoming deprecations. - * - * @param excludeDeprecatedAfter date string in YYYY-MM-DD format - */ - public void setExcludeDeprecatedAfter(Optional excludeDeprecatedAfter) { - Utils.checkNotNull(excludeDeprecatedAfter, "excludeDeprecatedAfter"); - this.excludeDeprecatedAfter = excludeDeprecatedAfter; - } - - private Optional includeExperimental = Optional.empty(); - - /** - * Gets whether experimental API features should be enabled. - * - * @return Optional containing the boolean value if set - */ - public Optional includeExperimental() { - return includeExperimental; - } - - /** - * Sets whether experimental API features should be enabled. - * When true, enables experimental API features that are not yet generally available. - * - * @param includeExperimental whether to include experimental features - */ - public void setIncludeExperimental(Optional includeExperimental) { - Utils.checkNotNull(includeExperimental, "includeExperimental"); - this.includeExperimental = includeExperimental; - } private ScheduledExecutorService retryScheduler = Executors.newSingleThreadScheduledExecutor(); public ScheduledExecutorService retryScheduler() { 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 2577bff3..d6d5efa6 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 @@ -9,6 +9,7 @@ import com.glean.api_client.glean_api_client.models.components.FeedRequest; import com.glean.api_client.glean_api_client.models.components.RecommendationsRequest; import com.glean.api_client.glean_api_client.models.components.SearchRequest; +import com.glean.api_client.glean_api_client.models.operations.AdminsearchRequest; import com.glean.api_client.glean_api_client.models.operations.AdminsearchRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.AdminsearchResponse; import com.glean.api_client.glean_api_client.models.operations.AutocompleteRequestBuilder; @@ -24,6 +25,8 @@ import com.glean.api_client.glean_api_client.operations.Feed; import com.glean.api_client.glean_api_client.operations.Recommendations; import com.glean.api_client.glean_api_client.utils.Headers; +import java.lang.String; +import java.util.Optional; public class Search { @@ -63,12 +66,33 @@ public AdminsearchRequestBuilder queryAsAdmin() { *

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. + * @param searchRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public AdminsearchResponse queryAsAdmin(SearchRequest request) { - RequestOperation operation + public AdminsearchResponse queryAsAdmin(SearchRequest searchRequest) { + return queryAsAdmin(Optional.empty(), searchRequest); + } + + /** + * Search the index (admin) + * + *

Retrieves results for search query without respect for permissions. This is available only to + * privileged users. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param searchRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public AdminsearchResponse queryAsAdmin(Optional locale, SearchRequest searchRequest) { + AdminsearchRequest request = + AdminsearchRequest + .builder() + .locale(locale) + .searchRequest(searchRequest) + .build(); + RequestOperation operation = new Adminsearch.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -89,12 +113,32 @@ 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. + * @param autocompleteRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public AutocompleteResponse autocomplete(AutocompleteRequest autocompleteRequest) { + return autocomplete(Optional.empty(), autocompleteRequest); + } + + /** + * Autocomplete + * + *

Retrieve query suggestions, operators and documents for the given partially typed query. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param autocompleteRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public AutocompleteResponse autocomplete(AutocompleteRequest request) { - RequestOperation operation + public AutocompleteResponse autocomplete(Optional locale, AutocompleteRequest autocompleteRequest) { + com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest request = + com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest + .builder() + .locale(locale) + .autocompleteRequest(autocompleteRequest) + .build(); + RequestOperation operation = new Autocomplete.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -117,12 +161,33 @@ public FeedRequestBuilder retrieveFeed() { *

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. + * @param feedRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public FeedResponse retrieveFeed(FeedRequest feedRequest) { + return retrieveFeed(Optional.empty(), feedRequest); + } + + /** + * Feed of documents and events + * + *

The personalized feed/home includes different types of contents including suggestions, recents, + * calendar events and many more. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param feedRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public FeedResponse retrieveFeed(FeedRequest request) { - RequestOperation operation + public FeedResponse retrieveFeed(Optional locale, FeedRequest feedRequest) { + com.glean.api_client.glean_api_client.models.operations.FeedRequest request = + com.glean.api_client.glean_api_client.models.operations.FeedRequest + .builder() + .locale(locale) + .feedRequest(feedRequest) + .build(); + RequestOperation operation = new Feed.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -143,12 +208,32 @@ 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. + * @param recommendationsRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public RecommendationsResponse recommendations(RecommendationsRequest recommendationsRequest) { + return recommendations(Optional.empty(), recommendationsRequest); + } + + /** + * Recommend documents + * + *

Retrieve recommended documents for the given URL or Glean Document ID. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param recommendationsRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public RecommendationsResponse recommendations(RecommendationsRequest request) { - RequestOperation operation + public RecommendationsResponse recommendations(Optional locale, RecommendationsRequest recommendationsRequest) { + com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest request = + com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest + .builder() + .locale(locale) + .recommendationsRequest(recommendationsRequest) + .build(); + RequestOperation operation = new Recommendations.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -169,12 +254,32 @@ 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. + * @param searchRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public SearchResponse query(SearchRequest searchRequest) { + return query(Optional.empty(), searchRequest); + } + + /** + * Search + * + *

Retrieve results from the index for the given query and filters. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param searchRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public SearchResponse query(SearchRequest request) { - RequestOperation operation + public SearchResponse query(Optional locale, SearchRequest searchRequest) { + com.glean.api_client.glean_api_client.models.operations.SearchRequest request = + com.glean.api_client.glean_api_client.models.operations.SearchRequest + .builder() + .locale(locale) + .searchRequest(searchRequest) + .build(); + RequestOperation operation = new com.glean.api_client.glean_api_client.operations.Search.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } 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 6b905c55..93ff58d8 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 @@ -7,6 +7,7 @@ import com.glean.api_client.glean_api_client.models.components.ReminderRequest; import com.glean.api_client.glean_api_client.models.components.VerifyRequest; +import com.glean.api_client.glean_api_client.models.operations.AddverificationreminderRequest; import com.glean.api_client.glean_api_client.models.operations.AddverificationreminderRequestBuilder; import com.glean.api_client.glean_api_client.models.operations.AddverificationreminderResponse; import com.glean.api_client.glean_api_client.models.operations.ListverificationsRequest; @@ -19,6 +20,7 @@ import com.glean.api_client.glean_api_client.operations.Verify; import com.glean.api_client.glean_api_client.utils.Headers; import java.lang.Long; +import java.lang.String; import java.util.Optional; @@ -59,12 +61,33 @@ public AddverificationreminderRequestBuilder addReminder() { *

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. + * @param reminderRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public AddverificationreminderResponse addReminder(ReminderRequest request) { - RequestOperation operation + public AddverificationreminderResponse addReminder(ReminderRequest reminderRequest) { + return addReminder(Optional.empty(), reminderRequest); + } + + /** + * Create verification + * + *

Creates a verification reminder for the document. Users can create verification reminders from + * different product surfaces. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param reminderRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public AddverificationreminderResponse addReminder(Optional locale, ReminderRequest reminderRequest) { + AddverificationreminderRequest request = + AddverificationreminderRequest + .builder() + .locale(locale) + .reminderRequest(reminderRequest) + .build(); + RequestOperation operation = new Addverificationreminder.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } @@ -91,7 +114,7 @@ public ListverificationsRequestBuilder list() { * @throws RuntimeException subclass if the API call fails */ public ListverificationsResponse listDirect() { - return list(Optional.empty()); + return list(Optional.empty(), Optional.empty()); } /** @@ -101,14 +124,16 @@ public ListverificationsResponse listDirect() { * document owned by user regarding their verifications. * * @param count Maximum number of documents to return + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public ListverificationsResponse list(Optional count) { + public ListverificationsResponse list(Optional count, Optional locale) { ListverificationsRequest request = ListverificationsRequest .builder() .count(count) + .locale(locale) .build(); RequestOperation operation = new Listverifications.Sync(sdkConfiguration, _headers); @@ -131,12 +156,32 @@ 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. + * @param verifyRequest * @return The response from the API call * @throws RuntimeException subclass if the API call fails */ - public VerifyResponse verify(VerifyRequest request) { - RequestOperation operation + public VerifyResponse verify(VerifyRequest verifyRequest) { + return verify(Optional.empty(), verifyRequest); + } + + /** + * Update verification + * + *

Verify documents to keep the knowledge up to date within customer corpus. + * + * @param locale The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the `Accept-Language` will be used. If not present or not supported, defaults to the closest match or `en`. + * @param verifyRequest + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public VerifyResponse verify(Optional locale, VerifyRequest verifyRequest) { + com.glean.api_client.glean_api_client.models.operations.VerifyRequest request = + com.glean.api_client.glean_api_client.models.operations.VerifyRequest + .builder() + .locale(locale) + .verifyRequest(verifyRequest) + .build(); + RequestOperation operation = new Verify.Sync(sdkConfiguration, _headers); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentEnum.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentEnum.java index b464e885..76eb8811 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentEnum.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/AgentEnum.java @@ -33,7 +33,11 @@ public enum AgentEnum { /** * Uses an agent powered by the agentic engine that thinks for longer and potentially makes more LLM calls to return higher quality results. Requires the agentic engine to be enabled in the deployment. */ - ADVANCED("ADVANCED"); + ADVANCED("ADVANCED"), + /** + * Uses an agent powered by the agentic engine that routes between reasoning efforts based on the question and context. + */ + AUTO("AUTO"); @JsonValue private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AiAppActionCounts.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AiAppActionCounts.java deleted file mode 100644 index 9432b5d1..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AiAppActionCounts.java +++ /dev/null @@ -1,485 +0,0 @@ -/* - * 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.JsonAnyGetter; -import com.fasterxml.jackson.annotation.JsonAnySetter; -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.Long; -import java.lang.Override; -import java.lang.String; -import java.util.HashMap; -import java.util.Map; -import java.util.Optional; - -/** - * AiAppActionCounts - * - *

Map from action to frequency. - */ -public class AiAppActionCounts { - /** - * Total number of Slackbot responses, both proactive and reactive. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalSlackbotResponses") - private Optional totalSlackbotResponses; - - /** - * Total number of Slackbot responses shared publicly (upvoted). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalSlackbotResponsesShared") - private Optional totalSlackbotResponsesShared; - - /** - * Total number of Slackbot responses rejected as not helpful (downvoted). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalSlackbotResponsesNotHelpful") - private Optional totalSlackbotResponsesNotHelpful; - - /** - * Total number of Chat messages sent in requested period. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalChatMessages") - private Optional totalChatMessages; - - /** - * Total number of Chat messages which received upvotes by the user. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalUpvotes") - private Optional totalUpvotes; - - /** - * Total number of Chat messages which received downvotes by the user. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalDownvotes") - private Optional totalDownvotes; - - - @JsonIgnore - private Map additionalProperties; - - @JsonCreator - public AiAppActionCounts( - @JsonProperty("totalSlackbotResponses") Optional totalSlackbotResponses, - @JsonProperty("totalSlackbotResponsesShared") Optional totalSlackbotResponsesShared, - @JsonProperty("totalSlackbotResponsesNotHelpful") Optional totalSlackbotResponsesNotHelpful, - @JsonProperty("totalChatMessages") Optional totalChatMessages, - @JsonProperty("totalUpvotes") Optional totalUpvotes, - @JsonProperty("totalDownvotes") Optional totalDownvotes) { - Utils.checkNotNull(totalSlackbotResponses, "totalSlackbotResponses"); - Utils.checkNotNull(totalSlackbotResponsesShared, "totalSlackbotResponsesShared"); - Utils.checkNotNull(totalSlackbotResponsesNotHelpful, "totalSlackbotResponsesNotHelpful"); - Utils.checkNotNull(totalChatMessages, "totalChatMessages"); - Utils.checkNotNull(totalUpvotes, "totalUpvotes"); - Utils.checkNotNull(totalDownvotes, "totalDownvotes"); - this.totalSlackbotResponses = totalSlackbotResponses; - this.totalSlackbotResponsesShared = totalSlackbotResponsesShared; - this.totalSlackbotResponsesNotHelpful = totalSlackbotResponsesNotHelpful; - this.totalChatMessages = totalChatMessages; - this.totalUpvotes = totalUpvotes; - this.totalDownvotes = totalDownvotes; - this.additionalProperties = new HashMap<>(); - } - - public AiAppActionCounts() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * Total number of Slackbot responses, both proactive and reactive. - */ - @JsonIgnore - public Optional totalSlackbotResponses() { - return totalSlackbotResponses; - } - - /** - * Total number of Slackbot responses shared publicly (upvoted). - */ - @JsonIgnore - public Optional totalSlackbotResponsesShared() { - return totalSlackbotResponsesShared; - } - - /** - * Total number of Slackbot responses rejected as not helpful (downvoted). - */ - @JsonIgnore - public Optional totalSlackbotResponsesNotHelpful() { - return totalSlackbotResponsesNotHelpful; - } - - /** - * Total number of Chat messages sent in requested period. - */ - @JsonIgnore - public Optional totalChatMessages() { - return totalChatMessages; - } - - /** - * Total number of Chat messages which received upvotes by the user. - */ - @JsonIgnore - public Optional totalUpvotes() { - return totalUpvotes; - } - - /** - * Total number of Chat messages which received downvotes by the user. - */ - @JsonIgnore - public Optional totalDownvotes() { - return totalDownvotes; - } - - @JsonAnyGetter - public Map additionalProperties() { - return additionalProperties; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Total number of Slackbot responses, both proactive and reactive. - */ - public AiAppActionCounts withTotalSlackbotResponses(long totalSlackbotResponses) { - Utils.checkNotNull(totalSlackbotResponses, "totalSlackbotResponses"); - this.totalSlackbotResponses = Optional.ofNullable(totalSlackbotResponses); - return this; - } - - - /** - * Total number of Slackbot responses, both proactive and reactive. - */ - public AiAppActionCounts withTotalSlackbotResponses(Optional totalSlackbotResponses) { - Utils.checkNotNull(totalSlackbotResponses, "totalSlackbotResponses"); - this.totalSlackbotResponses = totalSlackbotResponses; - return this; - } - - /** - * Total number of Slackbot responses shared publicly (upvoted). - */ - public AiAppActionCounts withTotalSlackbotResponsesShared(long totalSlackbotResponsesShared) { - Utils.checkNotNull(totalSlackbotResponsesShared, "totalSlackbotResponsesShared"); - this.totalSlackbotResponsesShared = Optional.ofNullable(totalSlackbotResponsesShared); - return this; - } - - - /** - * Total number of Slackbot responses shared publicly (upvoted). - */ - public AiAppActionCounts withTotalSlackbotResponsesShared(Optional totalSlackbotResponsesShared) { - Utils.checkNotNull(totalSlackbotResponsesShared, "totalSlackbotResponsesShared"); - this.totalSlackbotResponsesShared = totalSlackbotResponsesShared; - return this; - } - - /** - * Total number of Slackbot responses rejected as not helpful (downvoted). - */ - public AiAppActionCounts withTotalSlackbotResponsesNotHelpful(long totalSlackbotResponsesNotHelpful) { - Utils.checkNotNull(totalSlackbotResponsesNotHelpful, "totalSlackbotResponsesNotHelpful"); - this.totalSlackbotResponsesNotHelpful = Optional.ofNullable(totalSlackbotResponsesNotHelpful); - return this; - } - - - /** - * Total number of Slackbot responses rejected as not helpful (downvoted). - */ - public AiAppActionCounts withTotalSlackbotResponsesNotHelpful(Optional totalSlackbotResponsesNotHelpful) { - Utils.checkNotNull(totalSlackbotResponsesNotHelpful, "totalSlackbotResponsesNotHelpful"); - this.totalSlackbotResponsesNotHelpful = totalSlackbotResponsesNotHelpful; - return this; - } - - /** - * Total number of Chat messages sent in requested period. - */ - public AiAppActionCounts withTotalChatMessages(long totalChatMessages) { - Utils.checkNotNull(totalChatMessages, "totalChatMessages"); - this.totalChatMessages = Optional.ofNullable(totalChatMessages); - return this; - } - - - /** - * Total number of Chat messages sent in requested period. - */ - public AiAppActionCounts withTotalChatMessages(Optional totalChatMessages) { - Utils.checkNotNull(totalChatMessages, "totalChatMessages"); - this.totalChatMessages = totalChatMessages; - return this; - } - - /** - * Total number of Chat messages which received upvotes by the user. - */ - public AiAppActionCounts withTotalUpvotes(long totalUpvotes) { - Utils.checkNotNull(totalUpvotes, "totalUpvotes"); - this.totalUpvotes = Optional.ofNullable(totalUpvotes); - return this; - } - - - /** - * Total number of Chat messages which received upvotes by the user. - */ - public AiAppActionCounts withTotalUpvotes(Optional totalUpvotes) { - Utils.checkNotNull(totalUpvotes, "totalUpvotes"); - this.totalUpvotes = totalUpvotes; - return this; - } - - /** - * Total number of Chat messages which received downvotes by the user. - */ - public AiAppActionCounts withTotalDownvotes(long totalDownvotes) { - Utils.checkNotNull(totalDownvotes, "totalDownvotes"); - this.totalDownvotes = Optional.ofNullable(totalDownvotes); - return this; - } - - - /** - * Total number of Chat messages which received downvotes by the user. - */ - public AiAppActionCounts withTotalDownvotes(Optional totalDownvotes) { - Utils.checkNotNull(totalDownvotes, "totalDownvotes"); - this.totalDownvotes = totalDownvotes; - return this; - } - - @JsonAnySetter - public AiAppActionCounts withAdditionalProperty(String key, long value) { - // note that value can be null because of the way JsonAnySetter works - Utils.checkNotNull(key, "key"); - additionalProperties.put(key, value); - return this; - } - public AiAppActionCounts withAdditionalProperties(Map additionalProperties) { - Utils.checkNotNull(additionalProperties, "additionalProperties"); - this.additionalProperties = additionalProperties; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AiAppActionCounts other = (AiAppActionCounts) o; - return - Utils.enhancedDeepEquals(this.totalSlackbotResponses, other.totalSlackbotResponses) && - Utils.enhancedDeepEquals(this.totalSlackbotResponsesShared, other.totalSlackbotResponsesShared) && - Utils.enhancedDeepEquals(this.totalSlackbotResponsesNotHelpful, other.totalSlackbotResponsesNotHelpful) && - Utils.enhancedDeepEquals(this.totalChatMessages, other.totalChatMessages) && - Utils.enhancedDeepEquals(this.totalUpvotes, other.totalUpvotes) && - Utils.enhancedDeepEquals(this.totalDownvotes, other.totalDownvotes) && - Utils.enhancedDeepEquals(this.additionalProperties, other.additionalProperties); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - totalSlackbotResponses, totalSlackbotResponsesShared, totalSlackbotResponsesNotHelpful, - totalChatMessages, totalUpvotes, totalDownvotes, - additionalProperties); - } - - @Override - public String toString() { - return Utils.toString(AiAppActionCounts.class, - "totalSlackbotResponses", totalSlackbotResponses, - "totalSlackbotResponsesShared", totalSlackbotResponsesShared, - "totalSlackbotResponsesNotHelpful", totalSlackbotResponsesNotHelpful, - "totalChatMessages", totalChatMessages, - "totalUpvotes", totalUpvotes, - "totalDownvotes", totalDownvotes, - "additionalProperties", additionalProperties); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional totalSlackbotResponses = Optional.empty(); - - private Optional totalSlackbotResponsesShared = Optional.empty(); - - private Optional totalSlackbotResponsesNotHelpful = Optional.empty(); - - private Optional totalChatMessages = Optional.empty(); - - private Optional totalUpvotes = Optional.empty(); - - private Optional totalDownvotes = Optional.empty(); - - private Map additionalProperties = new HashMap<>(); - - private Builder() { - // force use of static builder() method - } - - - /** - * Total number of Slackbot responses, both proactive and reactive. - */ - public Builder totalSlackbotResponses(long totalSlackbotResponses) { - Utils.checkNotNull(totalSlackbotResponses, "totalSlackbotResponses"); - this.totalSlackbotResponses = Optional.ofNullable(totalSlackbotResponses); - return this; - } - - /** - * Total number of Slackbot responses, both proactive and reactive. - */ - public Builder totalSlackbotResponses(Optional totalSlackbotResponses) { - Utils.checkNotNull(totalSlackbotResponses, "totalSlackbotResponses"); - this.totalSlackbotResponses = totalSlackbotResponses; - return this; - } - - - /** - * Total number of Slackbot responses shared publicly (upvoted). - */ - public Builder totalSlackbotResponsesShared(long totalSlackbotResponsesShared) { - Utils.checkNotNull(totalSlackbotResponsesShared, "totalSlackbotResponsesShared"); - this.totalSlackbotResponsesShared = Optional.ofNullable(totalSlackbotResponsesShared); - return this; - } - - /** - * Total number of Slackbot responses shared publicly (upvoted). - */ - public Builder totalSlackbotResponsesShared(Optional totalSlackbotResponsesShared) { - Utils.checkNotNull(totalSlackbotResponsesShared, "totalSlackbotResponsesShared"); - this.totalSlackbotResponsesShared = totalSlackbotResponsesShared; - return this; - } - - - /** - * Total number of Slackbot responses rejected as not helpful (downvoted). - */ - public Builder totalSlackbotResponsesNotHelpful(long totalSlackbotResponsesNotHelpful) { - Utils.checkNotNull(totalSlackbotResponsesNotHelpful, "totalSlackbotResponsesNotHelpful"); - this.totalSlackbotResponsesNotHelpful = Optional.ofNullable(totalSlackbotResponsesNotHelpful); - return this; - } - - /** - * Total number of Slackbot responses rejected as not helpful (downvoted). - */ - public Builder totalSlackbotResponsesNotHelpful(Optional totalSlackbotResponsesNotHelpful) { - Utils.checkNotNull(totalSlackbotResponsesNotHelpful, "totalSlackbotResponsesNotHelpful"); - this.totalSlackbotResponsesNotHelpful = totalSlackbotResponsesNotHelpful; - return this; - } - - - /** - * Total number of Chat messages sent in requested period. - */ - public Builder totalChatMessages(long totalChatMessages) { - Utils.checkNotNull(totalChatMessages, "totalChatMessages"); - this.totalChatMessages = Optional.ofNullable(totalChatMessages); - return this; - } - - /** - * Total number of Chat messages sent in requested period. - */ - public Builder totalChatMessages(Optional totalChatMessages) { - Utils.checkNotNull(totalChatMessages, "totalChatMessages"); - this.totalChatMessages = totalChatMessages; - return this; - } - - - /** - * Total number of Chat messages which received upvotes by the user. - */ - public Builder totalUpvotes(long totalUpvotes) { - Utils.checkNotNull(totalUpvotes, "totalUpvotes"); - this.totalUpvotes = Optional.ofNullable(totalUpvotes); - return this; - } - - /** - * Total number of Chat messages which received upvotes by the user. - */ - public Builder totalUpvotes(Optional totalUpvotes) { - Utils.checkNotNull(totalUpvotes, "totalUpvotes"); - this.totalUpvotes = totalUpvotes; - return this; - } - - - /** - * Total number of Chat messages which received downvotes by the user. - */ - public Builder totalDownvotes(long totalDownvotes) { - Utils.checkNotNull(totalDownvotes, "totalDownvotes"); - this.totalDownvotes = Optional.ofNullable(totalDownvotes); - return this; - } - - /** - * Total number of Chat messages which received downvotes by the user. - */ - public Builder totalDownvotes(Optional totalDownvotes) { - Utils.checkNotNull(totalDownvotes, "totalDownvotes"); - this.totalDownvotes = totalDownvotes; - return this; - } - - public Builder additionalProperty(String key, long value) { - Utils.checkNotNull(key, "key"); - // we could be strict about null values (force the user - // to pass `JsonNullable.of(null)`) but likely to be a bit - // annoying for additional properties building so we'll - // relax preconditions. - this.additionalProperties.put(key, value); - return this; - } - - public Builder additionalProperties(Map additionalProperties) { - Utils.checkNotNull(additionalProperties, "additionalProperties"); - this.additionalProperties = additionalProperties; - return this; - } - - public AiAppActionCounts build() { - - return new AiAppActionCounts( - totalSlackbotResponses, totalSlackbotResponsesShared, totalSlackbotResponsesNotHelpful, - totalChatMessages, totalUpvotes, totalDownvotes) - .withAdditionalProperties(additionalProperties); - } - - } -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AiAppsInsightsResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AiAppsInsightsResponse.java deleted file mode 100644 index ffeb6b64..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AiAppsInsightsResponse.java +++ /dev/null @@ -1,360 +0,0 @@ -/* - * 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.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Optional; - - -public class AiAppsInsightsResponse { - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastLogTimestamp") - private Optional lastLogTimestamp; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("aiAppInsights") - private Optional> aiAppInsights; - - /** - * Total number of active users on the Ai App in the requested period. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalActiveUsers") - private Optional totalActiveUsers; - - /** - * Map from action to frequency. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("actionCounts") - private Optional actionCounts; - - /** - * list of departments applicable for users tab. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("departments") - private Optional> departments; - - @JsonCreator - public AiAppsInsightsResponse( - @JsonProperty("lastLogTimestamp") Optional lastLogTimestamp, - @JsonProperty("aiAppInsights") Optional> aiAppInsights, - @JsonProperty("totalActiveUsers") Optional totalActiveUsers, - @JsonProperty("actionCounts") Optional actionCounts, - @JsonProperty("departments") Optional> departments) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - Utils.checkNotNull(aiAppInsights, "aiAppInsights"); - Utils.checkNotNull(totalActiveUsers, "totalActiveUsers"); - Utils.checkNotNull(actionCounts, "actionCounts"); - Utils.checkNotNull(departments, "departments"); - this.lastLogTimestamp = lastLogTimestamp; - this.aiAppInsights = aiAppInsights; - this.totalActiveUsers = totalActiveUsers; - this.actionCounts = actionCounts; - this.departments = departments; - } - - public AiAppsInsightsResponse() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty()); - } - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - @JsonIgnore - public Optional lastLogTimestamp() { - return lastLogTimestamp; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> aiAppInsights() { - return (Optional>) aiAppInsights; - } - - /** - * Total number of active users on the Ai App in the requested period. - */ - @JsonIgnore - public Optional totalActiveUsers() { - return totalActiveUsers; - } - - /** - * Map from action to frequency. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional actionCounts() { - return (Optional) actionCounts; - } - - /** - * list of departments applicable for users tab. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> departments() { - return (Optional>) departments; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public AiAppsInsightsResponse withLastLogTimestamp(long lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = Optional.ofNullable(lastLogTimestamp); - return this; - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public AiAppsInsightsResponse withLastLogTimestamp(Optional lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = lastLogTimestamp; - return this; - } - - public AiAppsInsightsResponse withAiAppInsights(List aiAppInsights) { - Utils.checkNotNull(aiAppInsights, "aiAppInsights"); - this.aiAppInsights = Optional.ofNullable(aiAppInsights); - return this; - } - - - public AiAppsInsightsResponse withAiAppInsights(Optional> aiAppInsights) { - Utils.checkNotNull(aiAppInsights, "aiAppInsights"); - this.aiAppInsights = aiAppInsights; - return this; - } - - /** - * Total number of active users on the Ai App in the requested period. - */ - public AiAppsInsightsResponse withTotalActiveUsers(long totalActiveUsers) { - Utils.checkNotNull(totalActiveUsers, "totalActiveUsers"); - this.totalActiveUsers = Optional.ofNullable(totalActiveUsers); - return this; - } - - - /** - * Total number of active users on the Ai App in the requested period. - */ - public AiAppsInsightsResponse withTotalActiveUsers(Optional totalActiveUsers) { - Utils.checkNotNull(totalActiveUsers, "totalActiveUsers"); - this.totalActiveUsers = totalActiveUsers; - return this; - } - - /** - * Map from action to frequency. - */ - public AiAppsInsightsResponse withActionCounts(AiAppActionCounts actionCounts) { - Utils.checkNotNull(actionCounts, "actionCounts"); - this.actionCounts = Optional.ofNullable(actionCounts); - return this; - } - - - /** - * Map from action to frequency. - */ - public AiAppsInsightsResponse withActionCounts(Optional actionCounts) { - Utils.checkNotNull(actionCounts, "actionCounts"); - this.actionCounts = actionCounts; - return this; - } - - /** - * list of departments applicable for users tab. - */ - public AiAppsInsightsResponse withDepartments(List departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = Optional.ofNullable(departments); - return this; - } - - - /** - * list of departments applicable for users tab. - */ - public AiAppsInsightsResponse withDepartments(Optional> departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = departments; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AiAppsInsightsResponse other = (AiAppsInsightsResponse) o; - return - Utils.enhancedDeepEquals(this.lastLogTimestamp, other.lastLogTimestamp) && - Utils.enhancedDeepEquals(this.aiAppInsights, other.aiAppInsights) && - Utils.enhancedDeepEquals(this.totalActiveUsers, other.totalActiveUsers) && - Utils.enhancedDeepEquals(this.actionCounts, other.actionCounts) && - Utils.enhancedDeepEquals(this.departments, other.departments); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - lastLogTimestamp, aiAppInsights, totalActiveUsers, - actionCounts, departments); - } - - @Override - public String toString() { - return Utils.toString(AiAppsInsightsResponse.class, - "lastLogTimestamp", lastLogTimestamp, - "aiAppInsights", aiAppInsights, - "totalActiveUsers", totalActiveUsers, - "actionCounts", actionCounts, - "departments", departments); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional lastLogTimestamp = Optional.empty(); - - private Optional> aiAppInsights = Optional.empty(); - - private Optional totalActiveUsers = Optional.empty(); - - private Optional actionCounts = Optional.empty(); - - private Optional> departments = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public Builder lastLogTimestamp(long lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = Optional.ofNullable(lastLogTimestamp); - return this; - } - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public Builder lastLogTimestamp(Optional lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = lastLogTimestamp; - return this; - } - - - public Builder aiAppInsights(List aiAppInsights) { - Utils.checkNotNull(aiAppInsights, "aiAppInsights"); - this.aiAppInsights = Optional.ofNullable(aiAppInsights); - return this; - } - - public Builder aiAppInsights(Optional> aiAppInsights) { - Utils.checkNotNull(aiAppInsights, "aiAppInsights"); - this.aiAppInsights = aiAppInsights; - return this; - } - - - /** - * Total number of active users on the Ai App in the requested period. - */ - public Builder totalActiveUsers(long totalActiveUsers) { - Utils.checkNotNull(totalActiveUsers, "totalActiveUsers"); - this.totalActiveUsers = Optional.ofNullable(totalActiveUsers); - return this; - } - - /** - * Total number of active users on the Ai App in the requested period. - */ - public Builder totalActiveUsers(Optional totalActiveUsers) { - Utils.checkNotNull(totalActiveUsers, "totalActiveUsers"); - this.totalActiveUsers = totalActiveUsers; - return this; - } - - - /** - * Map from action to frequency. - */ - public Builder actionCounts(AiAppActionCounts actionCounts) { - Utils.checkNotNull(actionCounts, "actionCounts"); - this.actionCounts = Optional.ofNullable(actionCounts); - return this; - } - - /** - * Map from action to frequency. - */ - public Builder actionCounts(Optional actionCounts) { - Utils.checkNotNull(actionCounts, "actionCounts"); - this.actionCounts = actionCounts; - return this; - } - - - /** - * list of departments applicable for users tab. - */ - public Builder departments(List departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = Optional.ofNullable(departments); - return this; - } - - /** - * list of departments applicable for users tab. - */ - public Builder departments(Optional> departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = departments; - return this; - } - - public AiAppsInsightsResponse build() { - - return new AiAppsInsightsResponse( - lastLogTimestamp, aiAppInsights, totalActiveUsers, - actionCounts, departments); - } - - } -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AiInsightsResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AiInsightsResponse.java deleted file mode 100644 index 852431ae..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AiInsightsResponse.java +++ /dev/null @@ -1,785 +0,0 @@ -/* - * 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.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Optional; - - -public class AiInsightsResponse { - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastLogTimestamp") - private Optional lastLogTimestamp; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("assistantInsights") - private Optional> assistantInsights; - - /** - * Total number of Active Assistant users (chat, summary, AIA) in requested period. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalActiveAssistantUsers") - private Optional totalActiveAssistantUsers; - - /** - * Total number of Chat messages sent in requested period. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalChatMessages") - private Optional totalChatMessages; - - /** - * Total number of AI Document Summarizations invoked in the requested period. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalAiSummarizations") - private Optional totalAiSummarizations; - - /** - * Total number of AI Answers generated in the requested period. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalAiAnswers") - private Optional totalAiAnswers; - - /** - * Total number of Chat messages which received upvotes by the user. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalUpvotes") - private Optional totalUpvotes; - - /** - * Total number of Chat messages which received downvotes by the user. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalDownvotes") - private Optional totalDownvotes; - - /** - * Total number of Gleanbot responses, both proactive and reactive. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalGleanbotResponses") - private Optional totalGleanbotResponses; - - /** - * Total number of Gleanbot responses shared publicly (upvoted). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalGleanbotResponsesShared") - private Optional totalGleanbotResponsesShared; - - /** - * Total number of Glean responses rejected as not helpful (downvoted). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalGleanbotResponsesNotHelpful") - private Optional totalGleanbotResponsesNotHelpful; - - /** - * list of departments applicable for users tab. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("departments") - private Optional> departments; - - @JsonCreator - public AiInsightsResponse( - @JsonProperty("lastLogTimestamp") Optional lastLogTimestamp, - @JsonProperty("assistantInsights") Optional> assistantInsights, - @JsonProperty("totalActiveAssistantUsers") Optional totalActiveAssistantUsers, - @JsonProperty("totalChatMessages") Optional totalChatMessages, - @JsonProperty("totalAiSummarizations") Optional totalAiSummarizations, - @JsonProperty("totalAiAnswers") Optional totalAiAnswers, - @JsonProperty("totalUpvotes") Optional totalUpvotes, - @JsonProperty("totalDownvotes") Optional totalDownvotes, - @JsonProperty("totalGleanbotResponses") Optional totalGleanbotResponses, - @JsonProperty("totalGleanbotResponsesShared") Optional totalGleanbotResponsesShared, - @JsonProperty("totalGleanbotResponsesNotHelpful") Optional totalGleanbotResponsesNotHelpful, - @JsonProperty("departments") Optional> departments) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - Utils.checkNotNull(assistantInsights, "assistantInsights"); - Utils.checkNotNull(totalActiveAssistantUsers, "totalActiveAssistantUsers"); - Utils.checkNotNull(totalChatMessages, "totalChatMessages"); - Utils.checkNotNull(totalAiSummarizations, "totalAiSummarizations"); - Utils.checkNotNull(totalAiAnswers, "totalAiAnswers"); - Utils.checkNotNull(totalUpvotes, "totalUpvotes"); - Utils.checkNotNull(totalDownvotes, "totalDownvotes"); - Utils.checkNotNull(totalGleanbotResponses, "totalGleanbotResponses"); - Utils.checkNotNull(totalGleanbotResponsesShared, "totalGleanbotResponsesShared"); - Utils.checkNotNull(totalGleanbotResponsesNotHelpful, "totalGleanbotResponsesNotHelpful"); - Utils.checkNotNull(departments, "departments"); - this.lastLogTimestamp = lastLogTimestamp; - this.assistantInsights = assistantInsights; - this.totalActiveAssistantUsers = totalActiveAssistantUsers; - this.totalChatMessages = totalChatMessages; - this.totalAiSummarizations = totalAiSummarizations; - this.totalAiAnswers = totalAiAnswers; - this.totalUpvotes = totalUpvotes; - this.totalDownvotes = totalDownvotes; - this.totalGleanbotResponses = totalGleanbotResponses; - this.totalGleanbotResponsesShared = totalGleanbotResponsesShared; - this.totalGleanbotResponsesNotHelpful = totalGleanbotResponsesNotHelpful; - this.departments = departments; - } - - public AiInsightsResponse() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - @JsonIgnore - public Optional lastLogTimestamp() { - return lastLogTimestamp; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> assistantInsights() { - return (Optional>) assistantInsights; - } - - /** - * Total number of Active Assistant users (chat, summary, AIA) in requested period. - */ - @JsonIgnore - public Optional totalActiveAssistantUsers() { - return totalActiveAssistantUsers; - } - - /** - * Total number of Chat messages sent in requested period. - */ - @JsonIgnore - public Optional totalChatMessages() { - return totalChatMessages; - } - - /** - * Total number of AI Document Summarizations invoked in the requested period. - */ - @JsonIgnore - public Optional totalAiSummarizations() { - return totalAiSummarizations; - } - - /** - * Total number of AI Answers generated in the requested period. - */ - @JsonIgnore - public Optional totalAiAnswers() { - return totalAiAnswers; - } - - /** - * Total number of Chat messages which received upvotes by the user. - */ - @JsonIgnore - public Optional totalUpvotes() { - return totalUpvotes; - } - - /** - * Total number of Chat messages which received downvotes by the user. - */ - @JsonIgnore - public Optional totalDownvotes() { - return totalDownvotes; - } - - /** - * Total number of Gleanbot responses, both proactive and reactive. - */ - @JsonIgnore - public Optional totalGleanbotResponses() { - return totalGleanbotResponses; - } - - /** - * Total number of Gleanbot responses shared publicly (upvoted). - */ - @JsonIgnore - public Optional totalGleanbotResponsesShared() { - return totalGleanbotResponsesShared; - } - - /** - * Total number of Glean responses rejected as not helpful (downvoted). - */ - @JsonIgnore - public Optional totalGleanbotResponsesNotHelpful() { - return totalGleanbotResponsesNotHelpful; - } - - /** - * list of departments applicable for users tab. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> departments() { - return (Optional>) departments; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public AiInsightsResponse withLastLogTimestamp(long lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = Optional.ofNullable(lastLogTimestamp); - return this; - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public AiInsightsResponse withLastLogTimestamp(Optional lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = lastLogTimestamp; - return this; - } - - public AiInsightsResponse withAssistantInsights(List assistantInsights) { - Utils.checkNotNull(assistantInsights, "assistantInsights"); - this.assistantInsights = Optional.ofNullable(assistantInsights); - return this; - } - - - public AiInsightsResponse withAssistantInsights(Optional> assistantInsights) { - Utils.checkNotNull(assistantInsights, "assistantInsights"); - this.assistantInsights = assistantInsights; - return this; - } - - /** - * Total number of Active Assistant users (chat, summary, AIA) in requested period. - */ - public AiInsightsResponse withTotalActiveAssistantUsers(long totalActiveAssistantUsers) { - Utils.checkNotNull(totalActiveAssistantUsers, "totalActiveAssistantUsers"); - this.totalActiveAssistantUsers = Optional.ofNullable(totalActiveAssistantUsers); - return this; - } - - - /** - * Total number of Active Assistant users (chat, summary, AIA) in requested period. - */ - public AiInsightsResponse withTotalActiveAssistantUsers(Optional totalActiveAssistantUsers) { - Utils.checkNotNull(totalActiveAssistantUsers, "totalActiveAssistantUsers"); - this.totalActiveAssistantUsers = totalActiveAssistantUsers; - return this; - } - - /** - * Total number of Chat messages sent in requested period. - */ - public AiInsightsResponse withTotalChatMessages(long totalChatMessages) { - Utils.checkNotNull(totalChatMessages, "totalChatMessages"); - this.totalChatMessages = Optional.ofNullable(totalChatMessages); - return this; - } - - - /** - * Total number of Chat messages sent in requested period. - */ - public AiInsightsResponse withTotalChatMessages(Optional totalChatMessages) { - Utils.checkNotNull(totalChatMessages, "totalChatMessages"); - this.totalChatMessages = totalChatMessages; - return this; - } - - /** - * Total number of AI Document Summarizations invoked in the requested period. - */ - public AiInsightsResponse withTotalAiSummarizations(long totalAiSummarizations) { - Utils.checkNotNull(totalAiSummarizations, "totalAiSummarizations"); - this.totalAiSummarizations = Optional.ofNullable(totalAiSummarizations); - return this; - } - - - /** - * Total number of AI Document Summarizations invoked in the requested period. - */ - public AiInsightsResponse withTotalAiSummarizations(Optional totalAiSummarizations) { - Utils.checkNotNull(totalAiSummarizations, "totalAiSummarizations"); - this.totalAiSummarizations = totalAiSummarizations; - return this; - } - - /** - * Total number of AI Answers generated in the requested period. - */ - public AiInsightsResponse withTotalAiAnswers(long totalAiAnswers) { - Utils.checkNotNull(totalAiAnswers, "totalAiAnswers"); - this.totalAiAnswers = Optional.ofNullable(totalAiAnswers); - return this; - } - - - /** - * Total number of AI Answers generated in the requested period. - */ - public AiInsightsResponse withTotalAiAnswers(Optional totalAiAnswers) { - Utils.checkNotNull(totalAiAnswers, "totalAiAnswers"); - this.totalAiAnswers = totalAiAnswers; - return this; - } - - /** - * Total number of Chat messages which received upvotes by the user. - */ - public AiInsightsResponse withTotalUpvotes(long totalUpvotes) { - Utils.checkNotNull(totalUpvotes, "totalUpvotes"); - this.totalUpvotes = Optional.ofNullable(totalUpvotes); - return this; - } - - - /** - * Total number of Chat messages which received upvotes by the user. - */ - public AiInsightsResponse withTotalUpvotes(Optional totalUpvotes) { - Utils.checkNotNull(totalUpvotes, "totalUpvotes"); - this.totalUpvotes = totalUpvotes; - return this; - } - - /** - * Total number of Chat messages which received downvotes by the user. - */ - public AiInsightsResponse withTotalDownvotes(long totalDownvotes) { - Utils.checkNotNull(totalDownvotes, "totalDownvotes"); - this.totalDownvotes = Optional.ofNullable(totalDownvotes); - return this; - } - - - /** - * Total number of Chat messages which received downvotes by the user. - */ - public AiInsightsResponse withTotalDownvotes(Optional totalDownvotes) { - Utils.checkNotNull(totalDownvotes, "totalDownvotes"); - this.totalDownvotes = totalDownvotes; - return this; - } - - /** - * Total number of Gleanbot responses, both proactive and reactive. - */ - public AiInsightsResponse withTotalGleanbotResponses(long totalGleanbotResponses) { - Utils.checkNotNull(totalGleanbotResponses, "totalGleanbotResponses"); - this.totalGleanbotResponses = Optional.ofNullable(totalGleanbotResponses); - return this; - } - - - /** - * Total number of Gleanbot responses, both proactive and reactive. - */ - public AiInsightsResponse withTotalGleanbotResponses(Optional totalGleanbotResponses) { - Utils.checkNotNull(totalGleanbotResponses, "totalGleanbotResponses"); - this.totalGleanbotResponses = totalGleanbotResponses; - return this; - } - - /** - * Total number of Gleanbot responses shared publicly (upvoted). - */ - public AiInsightsResponse withTotalGleanbotResponsesShared(long totalGleanbotResponsesShared) { - Utils.checkNotNull(totalGleanbotResponsesShared, "totalGleanbotResponsesShared"); - this.totalGleanbotResponsesShared = Optional.ofNullable(totalGleanbotResponsesShared); - return this; - } - - - /** - * Total number of Gleanbot responses shared publicly (upvoted). - */ - public AiInsightsResponse withTotalGleanbotResponsesShared(Optional totalGleanbotResponsesShared) { - Utils.checkNotNull(totalGleanbotResponsesShared, "totalGleanbotResponsesShared"); - this.totalGleanbotResponsesShared = totalGleanbotResponsesShared; - return this; - } - - /** - * Total number of Glean responses rejected as not helpful (downvoted). - */ - public AiInsightsResponse withTotalGleanbotResponsesNotHelpful(long totalGleanbotResponsesNotHelpful) { - Utils.checkNotNull(totalGleanbotResponsesNotHelpful, "totalGleanbotResponsesNotHelpful"); - this.totalGleanbotResponsesNotHelpful = Optional.ofNullable(totalGleanbotResponsesNotHelpful); - return this; - } - - - /** - * Total number of Glean responses rejected as not helpful (downvoted). - */ - public AiInsightsResponse withTotalGleanbotResponsesNotHelpful(Optional totalGleanbotResponsesNotHelpful) { - Utils.checkNotNull(totalGleanbotResponsesNotHelpful, "totalGleanbotResponsesNotHelpful"); - this.totalGleanbotResponsesNotHelpful = totalGleanbotResponsesNotHelpful; - return this; - } - - /** - * list of departments applicable for users tab. - */ - public AiInsightsResponse withDepartments(List departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = Optional.ofNullable(departments); - return this; - } - - - /** - * list of departments applicable for users tab. - */ - public AiInsightsResponse withDepartments(Optional> departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = departments; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - AiInsightsResponse other = (AiInsightsResponse) o; - return - Utils.enhancedDeepEquals(this.lastLogTimestamp, other.lastLogTimestamp) && - Utils.enhancedDeepEquals(this.assistantInsights, other.assistantInsights) && - Utils.enhancedDeepEquals(this.totalActiveAssistantUsers, other.totalActiveAssistantUsers) && - Utils.enhancedDeepEquals(this.totalChatMessages, other.totalChatMessages) && - Utils.enhancedDeepEquals(this.totalAiSummarizations, other.totalAiSummarizations) && - Utils.enhancedDeepEquals(this.totalAiAnswers, other.totalAiAnswers) && - Utils.enhancedDeepEquals(this.totalUpvotes, other.totalUpvotes) && - Utils.enhancedDeepEquals(this.totalDownvotes, other.totalDownvotes) && - Utils.enhancedDeepEquals(this.totalGleanbotResponses, other.totalGleanbotResponses) && - Utils.enhancedDeepEquals(this.totalGleanbotResponsesShared, other.totalGleanbotResponsesShared) && - Utils.enhancedDeepEquals(this.totalGleanbotResponsesNotHelpful, other.totalGleanbotResponsesNotHelpful) && - Utils.enhancedDeepEquals(this.departments, other.departments); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - lastLogTimestamp, assistantInsights, totalActiveAssistantUsers, - totalChatMessages, totalAiSummarizations, totalAiAnswers, - totalUpvotes, totalDownvotes, totalGleanbotResponses, - totalGleanbotResponsesShared, totalGleanbotResponsesNotHelpful, departments); - } - - @Override - public String toString() { - return Utils.toString(AiInsightsResponse.class, - "lastLogTimestamp", lastLogTimestamp, - "assistantInsights", assistantInsights, - "totalActiveAssistantUsers", totalActiveAssistantUsers, - "totalChatMessages", totalChatMessages, - "totalAiSummarizations", totalAiSummarizations, - "totalAiAnswers", totalAiAnswers, - "totalUpvotes", totalUpvotes, - "totalDownvotes", totalDownvotes, - "totalGleanbotResponses", totalGleanbotResponses, - "totalGleanbotResponsesShared", totalGleanbotResponsesShared, - "totalGleanbotResponsesNotHelpful", totalGleanbotResponsesNotHelpful, - "departments", departments); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional lastLogTimestamp = Optional.empty(); - - private Optional> assistantInsights = Optional.empty(); - - private Optional totalActiveAssistantUsers = Optional.empty(); - - private Optional totalChatMessages = Optional.empty(); - - private Optional totalAiSummarizations = Optional.empty(); - - private Optional totalAiAnswers = Optional.empty(); - - private Optional totalUpvotes = Optional.empty(); - - private Optional totalDownvotes = Optional.empty(); - - private Optional totalGleanbotResponses = Optional.empty(); - - private Optional totalGleanbotResponsesShared = Optional.empty(); - - private Optional totalGleanbotResponsesNotHelpful = Optional.empty(); - - private Optional> departments = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public Builder lastLogTimestamp(long lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = Optional.ofNullable(lastLogTimestamp); - return this; - } - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public Builder lastLogTimestamp(Optional lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = lastLogTimestamp; - return this; - } - - - public Builder assistantInsights(List assistantInsights) { - Utils.checkNotNull(assistantInsights, "assistantInsights"); - this.assistantInsights = Optional.ofNullable(assistantInsights); - return this; - } - - public Builder assistantInsights(Optional> assistantInsights) { - Utils.checkNotNull(assistantInsights, "assistantInsights"); - this.assistantInsights = assistantInsights; - return this; - } - - - /** - * Total number of Active Assistant users (chat, summary, AIA) in requested period. - */ - public Builder totalActiveAssistantUsers(long totalActiveAssistantUsers) { - Utils.checkNotNull(totalActiveAssistantUsers, "totalActiveAssistantUsers"); - this.totalActiveAssistantUsers = Optional.ofNullable(totalActiveAssistantUsers); - return this; - } - - /** - * Total number of Active Assistant users (chat, summary, AIA) in requested period. - */ - public Builder totalActiveAssistantUsers(Optional totalActiveAssistantUsers) { - Utils.checkNotNull(totalActiveAssistantUsers, "totalActiveAssistantUsers"); - this.totalActiveAssistantUsers = totalActiveAssistantUsers; - return this; - } - - - /** - * Total number of Chat messages sent in requested period. - */ - public Builder totalChatMessages(long totalChatMessages) { - Utils.checkNotNull(totalChatMessages, "totalChatMessages"); - this.totalChatMessages = Optional.ofNullable(totalChatMessages); - return this; - } - - /** - * Total number of Chat messages sent in requested period. - */ - public Builder totalChatMessages(Optional totalChatMessages) { - Utils.checkNotNull(totalChatMessages, "totalChatMessages"); - this.totalChatMessages = totalChatMessages; - return this; - } - - - /** - * Total number of AI Document Summarizations invoked in the requested period. - */ - public Builder totalAiSummarizations(long totalAiSummarizations) { - Utils.checkNotNull(totalAiSummarizations, "totalAiSummarizations"); - this.totalAiSummarizations = Optional.ofNullable(totalAiSummarizations); - return this; - } - - /** - * Total number of AI Document Summarizations invoked in the requested period. - */ - public Builder totalAiSummarizations(Optional totalAiSummarizations) { - Utils.checkNotNull(totalAiSummarizations, "totalAiSummarizations"); - this.totalAiSummarizations = totalAiSummarizations; - return this; - } - - - /** - * Total number of AI Answers generated in the requested period. - */ - public Builder totalAiAnswers(long totalAiAnswers) { - Utils.checkNotNull(totalAiAnswers, "totalAiAnswers"); - this.totalAiAnswers = Optional.ofNullable(totalAiAnswers); - return this; - } - - /** - * Total number of AI Answers generated in the requested period. - */ - public Builder totalAiAnswers(Optional totalAiAnswers) { - Utils.checkNotNull(totalAiAnswers, "totalAiAnswers"); - this.totalAiAnswers = totalAiAnswers; - return this; - } - - - /** - * Total number of Chat messages which received upvotes by the user. - */ - public Builder totalUpvotes(long totalUpvotes) { - Utils.checkNotNull(totalUpvotes, "totalUpvotes"); - this.totalUpvotes = Optional.ofNullable(totalUpvotes); - return this; - } - - /** - * Total number of Chat messages which received upvotes by the user. - */ - public Builder totalUpvotes(Optional totalUpvotes) { - Utils.checkNotNull(totalUpvotes, "totalUpvotes"); - this.totalUpvotes = totalUpvotes; - return this; - } - - - /** - * Total number of Chat messages which received downvotes by the user. - */ - public Builder totalDownvotes(long totalDownvotes) { - Utils.checkNotNull(totalDownvotes, "totalDownvotes"); - this.totalDownvotes = Optional.ofNullable(totalDownvotes); - return this; - } - - /** - * Total number of Chat messages which received downvotes by the user. - */ - public Builder totalDownvotes(Optional totalDownvotes) { - Utils.checkNotNull(totalDownvotes, "totalDownvotes"); - this.totalDownvotes = totalDownvotes; - return this; - } - - - /** - * Total number of Gleanbot responses, both proactive and reactive. - */ - public Builder totalGleanbotResponses(long totalGleanbotResponses) { - Utils.checkNotNull(totalGleanbotResponses, "totalGleanbotResponses"); - this.totalGleanbotResponses = Optional.ofNullable(totalGleanbotResponses); - return this; - } - - /** - * Total number of Gleanbot responses, both proactive and reactive. - */ - public Builder totalGleanbotResponses(Optional totalGleanbotResponses) { - Utils.checkNotNull(totalGleanbotResponses, "totalGleanbotResponses"); - this.totalGleanbotResponses = totalGleanbotResponses; - return this; - } - - - /** - * Total number of Gleanbot responses shared publicly (upvoted). - */ - public Builder totalGleanbotResponsesShared(long totalGleanbotResponsesShared) { - Utils.checkNotNull(totalGleanbotResponsesShared, "totalGleanbotResponsesShared"); - this.totalGleanbotResponsesShared = Optional.ofNullable(totalGleanbotResponsesShared); - return this; - } - - /** - * Total number of Gleanbot responses shared publicly (upvoted). - */ - public Builder totalGleanbotResponsesShared(Optional totalGleanbotResponsesShared) { - Utils.checkNotNull(totalGleanbotResponsesShared, "totalGleanbotResponsesShared"); - this.totalGleanbotResponsesShared = totalGleanbotResponsesShared; - return this; - } - - - /** - * Total number of Glean responses rejected as not helpful (downvoted). - */ - public Builder totalGleanbotResponsesNotHelpful(long totalGleanbotResponsesNotHelpful) { - Utils.checkNotNull(totalGleanbotResponsesNotHelpful, "totalGleanbotResponsesNotHelpful"); - this.totalGleanbotResponsesNotHelpful = Optional.ofNullable(totalGleanbotResponsesNotHelpful); - return this; - } - - /** - * Total number of Glean responses rejected as not helpful (downvoted). - */ - public Builder totalGleanbotResponsesNotHelpful(Optional totalGleanbotResponsesNotHelpful) { - Utils.checkNotNull(totalGleanbotResponsesNotHelpful, "totalGleanbotResponsesNotHelpful"); - this.totalGleanbotResponsesNotHelpful = totalGleanbotResponsesNotHelpful; - return this; - } - - - /** - * list of departments applicable for users tab. - */ - public Builder departments(List departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = Optional.ofNullable(departments); - return this; - } - - /** - * list of departments applicable for users tab. - */ - public Builder departments(Optional> departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = departments; - return this; - } - - public AiInsightsResponse build() { - - return new AiInsightsResponse( - lastLogTimestamp, assistantInsights, totalActiveAssistantUsers, - totalChatMessages, totalAiSummarizations, totalAiAnswers, - totalUpvotes, totalDownvotes, totalGleanbotResponses, - totalGleanbotResponsesShared, totalGleanbotResponsesNotHelpful, departments); - } - - } -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/AssistantActivityType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/AssistantActivityType.java deleted file mode 100644 index 7e45b527..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/AssistantActivityType.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.models.components; - -import com.fasterxml.jackson.annotation.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -public enum AssistantActivityType { - GLEAN_CHAT("GLEAN_CHAT"), - AI_SUMMARY("AI_SUMMARY"), - AI_ANSWER("AI_ANSWER"), - GLEANBOT_RESPONSE("GLEANBOT_RESPONSE"); - - @JsonValue - private final String value; - - AssistantActivityType(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (AssistantActivityType o: AssistantActivityType.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ContentInsightsResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ContentInsightsResponse.java deleted file mode 100644 index e22ccf4e..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ContentInsightsResponse.java +++ /dev/null @@ -1,376 +0,0 @@ -/* - * 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.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Optional; - - -public class ContentInsightsResponse { - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastLogTimestamp") - private Optional lastLogTimestamp; - - /** - * Insights for documents. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("documentInsights") - private Optional> documentInsights; - - /** - * list of departments applicable for contents tab. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("departments") - private Optional> departments; - - /** - * Min threshold in size of departments while populating results, otherwise 0. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("minDepartmentSizeThreshold") - private Optional minDepartmentSizeThreshold; - - /** - * Minimum number of visitors to a document required to be included in insights. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("minVisitorThreshold") - private Optional minVisitorThreshold; - - @JsonCreator - public ContentInsightsResponse( - @JsonProperty("lastLogTimestamp") Optional lastLogTimestamp, - @JsonProperty("documentInsights") Optional> documentInsights, - @JsonProperty("departments") Optional> departments, - @JsonProperty("minDepartmentSizeThreshold") Optional minDepartmentSizeThreshold, - @JsonProperty("minVisitorThreshold") Optional minVisitorThreshold) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - Utils.checkNotNull(documentInsights, "documentInsights"); - Utils.checkNotNull(departments, "departments"); - Utils.checkNotNull(minDepartmentSizeThreshold, "minDepartmentSizeThreshold"); - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.lastLogTimestamp = lastLogTimestamp; - this.documentInsights = documentInsights; - this.departments = departments; - this.minDepartmentSizeThreshold = minDepartmentSizeThreshold; - this.minVisitorThreshold = minVisitorThreshold; - } - - public ContentInsightsResponse() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty()); - } - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - @JsonIgnore - public Optional lastLogTimestamp() { - return lastLogTimestamp; - } - - /** - * Insights for documents. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> documentInsights() { - return (Optional>) documentInsights; - } - - /** - * list of departments applicable for contents tab. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> departments() { - return (Optional>) departments; - } - - /** - * Min threshold in size of departments while populating results, otherwise 0. - */ - @JsonIgnore - public Optional minDepartmentSizeThreshold() { - return minDepartmentSizeThreshold; - } - - /** - * Minimum number of visitors to a document required to be included in insights. - */ - @JsonIgnore - public Optional minVisitorThreshold() { - return minVisitorThreshold; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public ContentInsightsResponse withLastLogTimestamp(long lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = Optional.ofNullable(lastLogTimestamp); - return this; - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public ContentInsightsResponse withLastLogTimestamp(Optional lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = lastLogTimestamp; - return this; - } - - /** - * Insights for documents. - */ - public ContentInsightsResponse withDocumentInsights(List documentInsights) { - Utils.checkNotNull(documentInsights, "documentInsights"); - this.documentInsights = Optional.ofNullable(documentInsights); - return this; - } - - - /** - * Insights for documents. - */ - public ContentInsightsResponse withDocumentInsights(Optional> documentInsights) { - Utils.checkNotNull(documentInsights, "documentInsights"); - this.documentInsights = documentInsights; - return this; - } - - /** - * list of departments applicable for contents tab. - */ - public ContentInsightsResponse withDepartments(List departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = Optional.ofNullable(departments); - return this; - } - - - /** - * list of departments applicable for contents tab. - */ - public ContentInsightsResponse withDepartments(Optional> departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = departments; - return this; - } - - /** - * Min threshold in size of departments while populating results, otherwise 0. - */ - public ContentInsightsResponse withMinDepartmentSizeThreshold(long minDepartmentSizeThreshold) { - Utils.checkNotNull(minDepartmentSizeThreshold, "minDepartmentSizeThreshold"); - this.minDepartmentSizeThreshold = Optional.ofNullable(minDepartmentSizeThreshold); - return this; - } - - - /** - * Min threshold in size of departments while populating results, otherwise 0. - */ - public ContentInsightsResponse withMinDepartmentSizeThreshold(Optional minDepartmentSizeThreshold) { - Utils.checkNotNull(minDepartmentSizeThreshold, "minDepartmentSizeThreshold"); - this.minDepartmentSizeThreshold = minDepartmentSizeThreshold; - return this; - } - - /** - * Minimum number of visitors to a document required to be included in insights. - */ - public ContentInsightsResponse withMinVisitorThreshold(long minVisitorThreshold) { - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.minVisitorThreshold = Optional.ofNullable(minVisitorThreshold); - return this; - } - - - /** - * Minimum number of visitors to a document required to be included in insights. - */ - public ContentInsightsResponse withMinVisitorThreshold(Optional minVisitorThreshold) { - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.minVisitorThreshold = minVisitorThreshold; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ContentInsightsResponse other = (ContentInsightsResponse) o; - return - Utils.enhancedDeepEquals(this.lastLogTimestamp, other.lastLogTimestamp) && - Utils.enhancedDeepEquals(this.documentInsights, other.documentInsights) && - Utils.enhancedDeepEquals(this.departments, other.departments) && - Utils.enhancedDeepEquals(this.minDepartmentSizeThreshold, other.minDepartmentSizeThreshold) && - Utils.enhancedDeepEquals(this.minVisitorThreshold, other.minVisitorThreshold); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - lastLogTimestamp, documentInsights, departments, - minDepartmentSizeThreshold, minVisitorThreshold); - } - - @Override - public String toString() { - return Utils.toString(ContentInsightsResponse.class, - "lastLogTimestamp", lastLogTimestamp, - "documentInsights", documentInsights, - "departments", departments, - "minDepartmentSizeThreshold", minDepartmentSizeThreshold, - "minVisitorThreshold", minVisitorThreshold); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional lastLogTimestamp = Optional.empty(); - - private Optional> documentInsights = Optional.empty(); - - private Optional> departments = Optional.empty(); - - private Optional minDepartmentSizeThreshold = Optional.empty(); - - private Optional minVisitorThreshold = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public Builder lastLogTimestamp(long lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = Optional.ofNullable(lastLogTimestamp); - return this; - } - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public Builder lastLogTimestamp(Optional lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = lastLogTimestamp; - return this; - } - - - /** - * Insights for documents. - */ - public Builder documentInsights(List documentInsights) { - Utils.checkNotNull(documentInsights, "documentInsights"); - this.documentInsights = Optional.ofNullable(documentInsights); - return this; - } - - /** - * Insights for documents. - */ - public Builder documentInsights(Optional> documentInsights) { - Utils.checkNotNull(documentInsights, "documentInsights"); - this.documentInsights = documentInsights; - return this; - } - - - /** - * list of departments applicable for contents tab. - */ - public Builder departments(List departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = Optional.ofNullable(departments); - return this; - } - - /** - * list of departments applicable for contents tab. - */ - public Builder departments(Optional> departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = departments; - return this; - } - - - /** - * Min threshold in size of departments while populating results, otherwise 0. - */ - public Builder minDepartmentSizeThreshold(long minDepartmentSizeThreshold) { - Utils.checkNotNull(minDepartmentSizeThreshold, "minDepartmentSizeThreshold"); - this.minDepartmentSizeThreshold = Optional.ofNullable(minDepartmentSizeThreshold); - return this; - } - - /** - * Min threshold in size of departments while populating results, otherwise 0. - */ - public Builder minDepartmentSizeThreshold(Optional minDepartmentSizeThreshold) { - Utils.checkNotNull(minDepartmentSizeThreshold, "minDepartmentSizeThreshold"); - this.minDepartmentSizeThreshold = minDepartmentSizeThreshold; - return this; - } - - - /** - * Minimum number of visitors to a document required to be included in insights. - */ - public Builder minVisitorThreshold(long minVisitorThreshold) { - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.minVisitorThreshold = Optional.ofNullable(minVisitorThreshold); - return this; - } - - /** - * Minimum number of visitors to a document required to be included in insights. - */ - public Builder minVisitorThreshold(Optional minVisitorThreshold) { - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.minVisitorThreshold = minVisitorThreshold; - return this; - } - - public ContentInsightsResponse build() { - - return new ContentInsightsResponse( - lastLogTimestamp, documentInsights, departments, - minDepartmentSizeThreshold, minVisitorThreshold); - } - - } -} 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 8cd1a05c..8f73ee8a 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 @@ -471,6 +471,7 @@ public Optional redlistTitleRegex() { return redlistTitleRegex; } + @SuppressWarnings("unchecked") @JsonIgnore public Optional connectorType() { @@ -881,6 +882,7 @@ public CustomDatasourceConfig withRedlistTitleRegex(Optional redlistTitl return this; } + public CustomDatasourceConfig withConnectorType(CustomDatasourceConfigConnectorType connectorType) { Utils.checkNotNull(connectorType, "connectorType"); this.connectorType = Optional.ofNullable(connectorType); @@ -888,6 +890,7 @@ public CustomDatasourceConfig withConnectorType(CustomDatasourceConfigConnectorT } + public CustomDatasourceConfig withConnectorType(Optional connectorType) { Utils.checkNotNull(connectorType, "connectorType"); this.connectorType = connectorType; @@ -1580,12 +1583,14 @@ public Builder redlistTitleRegex(Optional redlistTitleRegex) { } + public Builder connectorType(CustomDatasourceConfigConnectorType connectorType) { Utils.checkNotNull(connectorType, "connectorType"); this.connectorType = Optional.ofNullable(connectorType); return this; } + public Builder connectorType(Optional connectorType) { Utils.checkNotNull(connectorType, "connectorType"); this.connectorType = connectorType; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentInsight.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentInsight.java deleted file mode 100644 index 50b67e3b..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/DocumentInsight.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * 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.Optional; - - -public class DocumentInsight { - - @JsonProperty("document") - private Document document; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("viewCount") - private Optional viewCount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("visitorCount") - private Optional visitorCount; - - @JsonCreator - public DocumentInsight( - @JsonProperty("document") Document document, - @JsonProperty("viewCount") Optional viewCount, - @JsonProperty("visitorCount") Optional visitorCount) { - Utils.checkNotNull(document, "document"); - Utils.checkNotNull(viewCount, "viewCount"); - Utils.checkNotNull(visitorCount, "visitorCount"); - this.document = document; - this.viewCount = viewCount; - this.visitorCount = visitorCount; - } - - public DocumentInsight( - Document document) { - this(document, Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Document document() { - return document; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional viewCount() { - return (Optional) viewCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional visitorCount() { - return (Optional) visitorCount; - } - - public static Builder builder() { - return new Builder(); - } - - - public DocumentInsight withDocument(Document document) { - Utils.checkNotNull(document, "document"); - this.document = document; - return this; - } - - public DocumentInsight withViewCount(CountInfo viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - - public DocumentInsight withViewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - public DocumentInsight withVisitorCount(CountInfo visitorCount) { - Utils.checkNotNull(visitorCount, "visitorCount"); - this.visitorCount = Optional.ofNullable(visitorCount); - return this; - } - - - public DocumentInsight withVisitorCount(Optional visitorCount) { - Utils.checkNotNull(visitorCount, "visitorCount"); - this.visitorCount = visitorCount; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - DocumentInsight other = (DocumentInsight) o; - return - Utils.enhancedDeepEquals(this.document, other.document) && - Utils.enhancedDeepEquals(this.viewCount, other.viewCount) && - Utils.enhancedDeepEquals(this.visitorCount, other.visitorCount); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - document, viewCount, visitorCount); - } - - @Override - public String toString() { - return Utils.toString(DocumentInsight.class, - "document", document, - "viewCount", viewCount, - "visitorCount", visitorCount); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Document document; - - private Optional viewCount = Optional.empty(); - - private Optional visitorCount = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder document(Document document) { - Utils.checkNotNull(document, "document"); - this.document = document; - return this; - } - - - public Builder viewCount(CountInfo viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = Optional.ofNullable(viewCount); - return this; - } - - public Builder viewCount(Optional viewCount) { - Utils.checkNotNull(viewCount, "viewCount"); - this.viewCount = viewCount; - return this; - } - - - public Builder visitorCount(CountInfo visitorCount) { - Utils.checkNotNull(visitorCount, "visitorCount"); - this.visitorCount = Optional.ofNullable(visitorCount); - return this; - } - - public Builder visitorCount(Optional visitorCount) { - Utils.checkNotNull(visitorCount, "visitorCount"); - this.visitorCount = visitorCount; - return this; - } - - public DocumentInsight build() { - - return new DocumentInsight( - document, viewCount, visitorCount); - } - - } -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/GleanDataError.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/GleanDataError.java index 77b61ef1..34d47385 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/GleanDataError.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/GleanDataError.java @@ -44,25 +44,35 @@ public class GleanDataError { @JsonProperty("errorMessages") private Optional> errorMessages; + /** + * Indicates the federated search results could not be fetched due to rate limiting. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("federatedSearchRateLimitError") + private Optional federatedSearchRateLimitError; + @JsonCreator public GleanDataError( @JsonProperty("badGmailToken") Optional badGmailToken, @JsonProperty("badOutlookToken") Optional badOutlookToken, @JsonProperty("invalidOperators") Optional> invalidOperators, - @JsonProperty("errorMessages") Optional> errorMessages) { + @JsonProperty("errorMessages") Optional> errorMessages, + @JsonProperty("federatedSearchRateLimitError") Optional federatedSearchRateLimitError) { Utils.checkNotNull(badGmailToken, "badGmailToken"); Utils.checkNotNull(badOutlookToken, "badOutlookToken"); Utils.checkNotNull(invalidOperators, "invalidOperators"); Utils.checkNotNull(errorMessages, "errorMessages"); + Utils.checkNotNull(federatedSearchRateLimitError, "federatedSearchRateLimitError"); this.badGmailToken = badGmailToken; this.badOutlookToken = badOutlookToken; this.invalidOperators = invalidOperators; this.errorMessages = errorMessages; + this.federatedSearchRateLimitError = federatedSearchRateLimitError; } public GleanDataError() { this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty()); + Optional.empty(), Optional.empty()); } /** @@ -96,6 +106,14 @@ public Optional> errorMessages() { return (Optional>) errorMessages; } + /** + * Indicates the federated search results could not be fetched due to rate limiting. + */ + @JsonIgnore + public Optional federatedSearchRateLimitError() { + return federatedSearchRateLimitError; + } + public static Builder builder() { return new Builder(); } @@ -171,6 +189,25 @@ public GleanDataError withErrorMessages(Optional> e return this; } + /** + * Indicates the federated search results could not be fetched due to rate limiting. + */ + public GleanDataError withFederatedSearchRateLimitError(boolean federatedSearchRateLimitError) { + Utils.checkNotNull(federatedSearchRateLimitError, "federatedSearchRateLimitError"); + this.federatedSearchRateLimitError = Optional.ofNullable(federatedSearchRateLimitError); + return this; + } + + + /** + * Indicates the federated search results could not be fetched due to rate limiting. + */ + public GleanDataError withFederatedSearchRateLimitError(Optional federatedSearchRateLimitError) { + Utils.checkNotNull(federatedSearchRateLimitError, "federatedSearchRateLimitError"); + this.federatedSearchRateLimitError = federatedSearchRateLimitError; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -184,14 +221,15 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.badGmailToken, other.badGmailToken) && Utils.enhancedDeepEquals(this.badOutlookToken, other.badOutlookToken) && Utils.enhancedDeepEquals(this.invalidOperators, other.invalidOperators) && - Utils.enhancedDeepEquals(this.errorMessages, other.errorMessages); + Utils.enhancedDeepEquals(this.errorMessages, other.errorMessages) && + Utils.enhancedDeepEquals(this.federatedSearchRateLimitError, other.federatedSearchRateLimitError); } @Override public int hashCode() { return Utils.enhancedHash( badGmailToken, badOutlookToken, invalidOperators, - errorMessages); + errorMessages, federatedSearchRateLimitError); } @Override @@ -200,7 +238,8 @@ public String toString() { "badGmailToken", badGmailToken, "badOutlookToken", badOutlookToken, "invalidOperators", invalidOperators, - "errorMessages", errorMessages); + "errorMessages", errorMessages, + "federatedSearchRateLimitError", federatedSearchRateLimitError); } @SuppressWarnings("UnusedReturnValue") @@ -214,6 +253,8 @@ public final static class Builder { private Optional> errorMessages = Optional.empty(); + private Optional federatedSearchRateLimitError = Optional.empty(); + private Builder() { // force use of static builder() method } @@ -288,11 +329,30 @@ public Builder errorMessages(Optional> errorMessage return this; } + + /** + * Indicates the federated search results could not be fetched due to rate limiting. + */ + public Builder federatedSearchRateLimitError(boolean federatedSearchRateLimitError) { + Utils.checkNotNull(federatedSearchRateLimitError, "federatedSearchRateLimitError"); + this.federatedSearchRateLimitError = Optional.ofNullable(federatedSearchRateLimitError); + return this; + } + + /** + * Indicates the federated search results could not be fetched due to rate limiting. + */ + public Builder federatedSearchRateLimitError(Optional federatedSearchRateLimitError) { + Utils.checkNotNull(federatedSearchRateLimitError, "federatedSearchRateLimitError"); + this.federatedSearchRateLimitError = federatedSearchRateLimitError; + return this; + } + public GleanDataError build() { return new GleanDataError( badGmailToken, badOutlookToken, invalidOperators, - errorMessages); + errorMessages, federatedSearchRateLimitError); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/InputOptions.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/InputOptions.java index 16cdfcfb..3b3c9fd4 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/InputOptions.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/InputOptions.java @@ -68,6 +68,14 @@ public class InputOptions { @JsonProperty("customTimeRange") private Optional customTimeRange; + /** + * Subset of document IDs to scan. If empty, all documents matching other scope criteria will be + * scanned. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("subsetDocIdsToScan") + private Optional> subsetDocIdsToScan; + @JsonCreator public InputOptions( @JsonProperty("urlGreenlist") Optional> urlGreenlist, @@ -75,24 +83,28 @@ public InputOptions( @JsonProperty("datasources") Optional> datasources, @JsonProperty("datasourceInstances") Optional> datasourceInstances, @JsonProperty("timePeriodType") Optional timePeriodType, - @JsonProperty("customTimeRange") Optional customTimeRange) { + @JsonProperty("customTimeRange") Optional customTimeRange, + @JsonProperty("subsetDocIdsToScan") Optional> subsetDocIdsToScan) { Utils.checkNotNull(urlGreenlist, "urlGreenlist"); Utils.checkNotNull(datasourcesType, "datasourcesType"); Utils.checkNotNull(datasources, "datasources"); Utils.checkNotNull(datasourceInstances, "datasourceInstances"); Utils.checkNotNull(timePeriodType, "timePeriodType"); Utils.checkNotNull(customTimeRange, "customTimeRange"); + Utils.checkNotNull(subsetDocIdsToScan, "subsetDocIdsToScan"); this.urlGreenlist = urlGreenlist; this.datasourcesType = datasourcesType; this.datasources = datasources; this.datasourceInstances = datasourceInstances; this.timePeriodType = timePeriodType; this.customTimeRange = customTimeRange; + this.subsetDocIdsToScan = subsetDocIdsToScan; } public InputOptions() { this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty()); + Optional.empty(), Optional.empty(), Optional.empty(), + Optional.empty()); } /** @@ -152,6 +164,16 @@ public Optional customTimeRange() { return (Optional) customTimeRange; } + /** + * Subset of document IDs to scan. If empty, all documents matching other scope criteria will be + * scanned. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional> subsetDocIdsToScan() { + return (Optional>) subsetDocIdsToScan; + } + public static Builder builder() { return new Builder(); } @@ -277,6 +299,27 @@ public InputOptions withCustomTimeRange(Optional customTime return this; } + /** + * Subset of document IDs to scan. If empty, all documents matching other scope criteria will be + * scanned. + */ + public InputOptions withSubsetDocIdsToScan(List subsetDocIdsToScan) { + Utils.checkNotNull(subsetDocIdsToScan, "subsetDocIdsToScan"); + this.subsetDocIdsToScan = Optional.ofNullable(subsetDocIdsToScan); + return this; + } + + + /** + * Subset of document IDs to scan. If empty, all documents matching other scope criteria will be + * scanned. + */ + public InputOptions withSubsetDocIdsToScan(Optional> subsetDocIdsToScan) { + Utils.checkNotNull(subsetDocIdsToScan, "subsetDocIdsToScan"); + this.subsetDocIdsToScan = subsetDocIdsToScan; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -292,14 +335,16 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.datasources, other.datasources) && Utils.enhancedDeepEquals(this.datasourceInstances, other.datasourceInstances) && Utils.enhancedDeepEquals(this.timePeriodType, other.timePeriodType) && - Utils.enhancedDeepEquals(this.customTimeRange, other.customTimeRange); + Utils.enhancedDeepEquals(this.customTimeRange, other.customTimeRange) && + Utils.enhancedDeepEquals(this.subsetDocIdsToScan, other.subsetDocIdsToScan); } @Override public int hashCode() { return Utils.enhancedHash( urlGreenlist, datasourcesType, datasources, - datasourceInstances, timePeriodType, customTimeRange); + datasourceInstances, timePeriodType, customTimeRange, + subsetDocIdsToScan); } @Override @@ -310,7 +355,8 @@ public String toString() { "datasources", datasources, "datasourceInstances", datasourceInstances, "timePeriodType", timePeriodType, - "customTimeRange", customTimeRange); + "customTimeRange", customTimeRange, + "subsetDocIdsToScan", subsetDocIdsToScan); } @SuppressWarnings("UnusedReturnValue") @@ -330,6 +376,8 @@ public final static class Builder { private Optional customTimeRange = Optional.empty(); + private Optional> subsetDocIdsToScan = Optional.empty(); + private Builder() { // force use of static builder() method } @@ -454,11 +502,33 @@ public Builder customTimeRange(Optional customTimeRange) { return this; } + + /** + * Subset of document IDs to scan. If empty, all documents matching other scope criteria will be + * scanned. + */ + public Builder subsetDocIdsToScan(List subsetDocIdsToScan) { + Utils.checkNotNull(subsetDocIdsToScan, "subsetDocIdsToScan"); + this.subsetDocIdsToScan = Optional.ofNullable(subsetDocIdsToScan); + return this; + } + + /** + * Subset of document IDs to scan. If empty, all documents matching other scope criteria will be + * scanned. + */ + public Builder subsetDocIdsToScan(Optional> subsetDocIdsToScan) { + Utils.checkNotNull(subsetDocIdsToScan, "subsetDocIdsToScan"); + this.subsetDocIdsToScan = subsetDocIdsToScan; + return this; + } + public InputOptions build() { return new InputOptions( urlGreenlist, datasourcesType, datasources, - datasourceInstances, timePeriodType, customTimeRange); + datasourceInstances, timePeriodType, customTimeRange, + subsetDocIdsToScan); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAgentsRequestOptions.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAgentsRequestOptions.java deleted file mode 100644 index 3c364a89..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAgentsRequestOptions.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * 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 InsightsAgentsRequestOptions { - /** - * IDs of the Agents for which Insights should be returned. An empty array signifies all. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("agentIds") - private Optional> agentIds; - - @JsonCreator - public InsightsAgentsRequestOptions( - @JsonProperty("agentIds") Optional> agentIds) { - Utils.checkNotNull(agentIds, "agentIds"); - this.agentIds = agentIds; - } - - public InsightsAgentsRequestOptions() { - this(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; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * IDs of the Agents for which Insights should be returned. An empty array signifies all. - */ - public InsightsAgentsRequestOptions 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 InsightsAgentsRequestOptions withAgentIds(Optional> agentIds) { - Utils.checkNotNull(agentIds, "agentIds"); - this.agentIds = agentIds; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InsightsAgentsRequestOptions other = (InsightsAgentsRequestOptions) o; - return - Utils.enhancedDeepEquals(this.agentIds, other.agentIds); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - agentIds); - } - - @Override - public String toString() { - return Utils.toString(InsightsAgentsRequestOptions.class, - "agentIds", agentIds); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional> agentIds = 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; - } - - public InsightsAgentsRequestOptions build() { - - return new InsightsAgentsRequestOptions( - agentIds); - } - - } -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAiAppRequestOptions.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAiAppRequestOptions.java deleted file mode 100644 index b939d1b5..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsAiAppRequestOptions.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * 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 InsightsAiAppRequestOptions { - /** - * IDs of the AI Apps for which Insights should be returned. An empty array signifies all. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("aiAppIds") - private Optional> aiAppIds; - - @JsonCreator - public InsightsAiAppRequestOptions( - @JsonProperty("aiAppIds") Optional> aiAppIds) { - Utils.checkNotNull(aiAppIds, "aiAppIds"); - this.aiAppIds = aiAppIds; - } - - public InsightsAiAppRequestOptions() { - this(Optional.empty()); - } - - /** - * IDs of the AI Apps for which Insights should be returned. An empty array signifies all. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> aiAppIds() { - return (Optional>) aiAppIds; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * IDs of the AI Apps for which Insights should be returned. An empty array signifies all. - */ - public InsightsAiAppRequestOptions withAiAppIds(List aiAppIds) { - Utils.checkNotNull(aiAppIds, "aiAppIds"); - this.aiAppIds = Optional.ofNullable(aiAppIds); - return this; - } - - - /** - * IDs of the AI Apps for which Insights should be returned. An empty array signifies all. - */ - public InsightsAiAppRequestOptions withAiAppIds(Optional> aiAppIds) { - Utils.checkNotNull(aiAppIds, "aiAppIds"); - this.aiAppIds = aiAppIds; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - InsightsAiAppRequestOptions other = (InsightsAiAppRequestOptions) o; - return - Utils.enhancedDeepEquals(this.aiAppIds, other.aiAppIds); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - aiAppIds); - } - - @Override - public String toString() { - return Utils.toString(InsightsAiAppRequestOptions.class, - "aiAppIds", aiAppIds); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional> aiAppIds = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - /** - * IDs of the AI Apps for which Insights should be returned. An empty array signifies all. - */ - public Builder aiAppIds(List aiAppIds) { - Utils.checkNotNull(aiAppIds, "aiAppIds"); - this.aiAppIds = Optional.ofNullable(aiAppIds); - return this; - } - - /** - * IDs of the AI Apps for which Insights should be returned. An empty array signifies all. - */ - public Builder aiAppIds(Optional> aiAppIds) { - Utils.checkNotNull(aiAppIds, "aiAppIds"); - this.aiAppIds = aiAppIds; - return this; - } - - public InsightsAiAppRequestOptions build() { - - return new InsightsAiAppRequestOptions( - aiAppIds); - } - - } -} 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 7ddea7c9..bea73413 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,11 +10,9 @@ 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; -import java.util.List; import java.util.Optional; @@ -41,90 +39,24 @@ public class InsightsRequest { @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") - @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; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("dayRange") - private Optional dayRange; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("aiAppRequestOptions") - private Optional aiAppRequestOptions; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("agentsRequestOptions") - private Optional agentsRequestOptions; - - /** - * 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; - @JsonCreator public InsightsRequest( @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) { 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"); 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; } public InsightsRequest() { this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } @@ -154,61 +86,6 @@ 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 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() { - return (Optional>) departments; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional dayRange() { - return (Optional) dayRange; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional aiAppRequestOptions() { - return (Optional) aiAppRequestOptions; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional agentsRequestOptions() { - return (Optional) agentsRequestOptions; - } - - /** - * 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(); } @@ -272,122 +149,6 @@ public InsightsRequest withDisablePerUserInsights(Optional disablePerUs 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; - } - - /** - * 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); - return this; - } - - - /** - * 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; - return this; - } - - public InsightsRequest withDayRange(Period dayRange) { - Utils.checkNotNull(dayRange, "dayRange"); - this.dayRange = Optional.ofNullable(dayRange); - return this; - } - - - public InsightsRequest withDayRange(Optional dayRange) { - Utils.checkNotNull(dayRange, "dayRange"); - this.dayRange = dayRange; - return this; - } - - public InsightsRequest withAiAppRequestOptions(InsightsAiAppRequestOptions aiAppRequestOptions) { - Utils.checkNotNull(aiAppRequestOptions, "aiAppRequestOptions"); - this.aiAppRequestOptions = Optional.ofNullable(aiAppRequestOptions); - return this; - } - - - public InsightsRequest withAiAppRequestOptions(Optional aiAppRequestOptions) { - Utils.checkNotNull(aiAppRequestOptions, "aiAppRequestOptions"); - this.aiAppRequestOptions = aiAppRequestOptions; - return this; - } - - public InsightsRequest withAgentsRequestOptions(InsightsAgentsRequestOptions agentsRequestOptions) { - Utils.checkNotNull(agentsRequestOptions, "agentsRequestOptions"); - this.agentsRequestOptions = Optional.ofNullable(agentsRequestOptions); - return this; - } - - - public InsightsRequest withAgentsRequestOptions(Optional agentsRequestOptions) { - Utils.checkNotNull(agentsRequestOptions, "agentsRequestOptions"); - this.agentsRequestOptions = agentsRequestOptions; - return this; - } - - /** - * 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(List assistantActivityTypes) { - Utils.checkNotNull(assistantActivityTypes, "assistantActivityTypes"); - this.assistantActivityTypes = Optional.ofNullable(assistantActivityTypes); - return this; - } - - - /** - * 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; - } - @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -401,22 +162,14 @@ public boolean equals(java.lang.Object o) { 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); } @Override public int hashCode() { return Utils.enhancedHash( overviewRequest, assistantRequest, agentsRequest, - disablePerUserInsights, categories, departments, - dayRange, aiAppRequestOptions, agentsRequestOptions, - assistantActivityTypes); + disablePerUserInsights); } @Override @@ -425,13 +178,7 @@ public String toString() { "overviewRequest", overviewRequest, "assistantRequest", assistantRequest, "agentsRequest", agentsRequest, - "disablePerUserInsights", disablePerUserInsights, - "categories", categories, - "departments", departments, - "dayRange", dayRange, - "aiAppRequestOptions", aiAppRequestOptions, - "agentsRequestOptions", agentsRequestOptions, - "assistantActivityTypes", assistantActivityTypes); + "disablePerUserInsights", disablePerUserInsights); } @SuppressWarnings("UnusedReturnValue") @@ -445,21 +192,6 @@ public final static class Builder { private Optional disablePerUserInsights = Optional.empty(); - @Deprecated - private Optional> categories = Optional.empty(); - - @Deprecated - private Optional> departments = Optional.empty(); - - private Optional dayRange = Optional.empty(); - - private Optional aiAppRequestOptions = Optional.empty(); - - private Optional agentsRequestOptions = Optional.empty(); - - @Deprecated - private Optional> assistantActivityTypes = Optional.empty(); - private Builder() { // force use of static builder() method } @@ -522,129 +254,11 @@ public Builder disablePerUserInsights(Optional 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; - } - - - /** - * 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); - return this; - } - - /** - * 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; - 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 Builder aiAppRequestOptions(InsightsAiAppRequestOptions aiAppRequestOptions) { - Utils.checkNotNull(aiAppRequestOptions, "aiAppRequestOptions"); - this.aiAppRequestOptions = Optional.ofNullable(aiAppRequestOptions); - return this; - } - - public Builder aiAppRequestOptions(Optional aiAppRequestOptions) { - Utils.checkNotNull(aiAppRequestOptions, "aiAppRequestOptions"); - this.aiAppRequestOptions = aiAppRequestOptions; - return this; - } - - - public Builder agentsRequestOptions(InsightsAgentsRequestOptions agentsRequestOptions) { - Utils.checkNotNull(agentsRequestOptions, "agentsRequestOptions"); - this.agentsRequestOptions = Optional.ofNullable(agentsRequestOptions); - return this; - } - - public Builder agentsRequestOptions(Optional agentsRequestOptions) { - Utils.checkNotNull(agentsRequestOptions, "agentsRequestOptions"); - this.agentsRequestOptions = agentsRequestOptions; - return this; - } - - - /** - * 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(List assistantActivityTypes) { - Utils.checkNotNull(assistantActivityTypes, "assistantActivityTypes"); - this.assistantActivityTypes = Optional.ofNullable(assistantActivityTypes); - return this; - } - - /** - * 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; - } - public InsightsRequest build() { return new InsightsRequest( overviewRequest, assistantRequest, agentsRequest, - disablePerUserInsights, categories, departments, - dayRange, aiAppRequestOptions, agentsRequestOptions, - assistantActivityTypes); + disablePerUserInsights); } } 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 deleted file mode 100644 index 3d29c541..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsRequestCategory.java +++ /dev/null @@ -1,47 +0,0 @@ -/* - * 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.JsonValue; -import java.lang.String; -import java.util.Objects; -import java.util.Optional; - -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"), - ANSWERS("ANSWERS"), - COLLECTIONS("COLLECTIONS"), - CONTENT("CONTENT"), - GLEAN_ASSIST("GLEAN_ASSIST"), - QUERIES("QUERIES"), - SHORTCUTS("SHORTCUTS"), - USERS("USERS"); - - @JsonValue - private final String value; - - InsightsRequestCategory(String value) { - this.value = value; - } - - public String value() { - return value; - } - - public static Optional fromValue(String value) { - for (InsightsRequestCategory o: InsightsRequestCategory.values()) { - if (Objects.deepEquals(o.value, value)) { - return Optional.of(o); - } - } - return Optional.empty(); - } -} - diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsResponse.java index c4fe4587..fc2240a0 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsResponse.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/InsightsResponse.java @@ -9,90 +9,18 @@ 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.Deprecated; import java.lang.Override; import java.lang.String; import java.lang.SuppressWarnings; -import java.util.List; import java.util.Optional; public class InsightsResponse { - /** - * List of timeseries to make charts (if applicable). - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("timeseries") - @Deprecated - private Optional> timeseries; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("users") - private Optional users; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("content") - private Optional content; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("queries") - private Optional queries; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("collections") - private Optional collections; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("collectionsV2") - private Optional collectionsV2; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("shortcuts") - private Optional shortcuts; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("announcements") - private Optional announcements; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("answers") - private Optional answers; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("ai") - private Optional ai; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("aiApps") - private Optional aiApps; - @JsonInclude(Include.NON_ABSENT) @JsonProperty("gleanAssist") private Optional gleanAssist; - /** - * list of all departments. - * - * @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; - @JsonInclude(Include.NON_ABSENT) @JsonProperty("overviewResponse") @@ -110,51 +38,15 @@ public class InsightsResponse { @JsonCreator public InsightsResponse( - @JsonProperty("timeseries") Optional> timeseries, - @JsonProperty("users") Optional users, - @JsonProperty("content") Optional content, - @JsonProperty("queries") Optional queries, - @JsonProperty("collections") Optional collections, - @JsonProperty("collectionsV2") Optional collectionsV2, - @JsonProperty("shortcuts") Optional shortcuts, - @JsonProperty("announcements") Optional announcements, - @JsonProperty("answers") Optional answers, - @JsonProperty("ai") Optional ai, - @JsonProperty("aiApps") Optional aiApps, @JsonProperty("gleanAssist") Optional gleanAssist, - @JsonProperty("departments") Optional> departments, @JsonProperty("overviewResponse") Optional overviewResponse, @JsonProperty("assistantResponse") Optional assistantResponse, @JsonProperty("agentsResponse") Optional agentsResponse) { - Utils.checkNotNull(timeseries, "timeseries"); - Utils.checkNotNull(users, "users"); - Utils.checkNotNull(content, "content"); - Utils.checkNotNull(queries, "queries"); - Utils.checkNotNull(collections, "collections"); - Utils.checkNotNull(collectionsV2, "collectionsV2"); - Utils.checkNotNull(shortcuts, "shortcuts"); - Utils.checkNotNull(announcements, "announcements"); - Utils.checkNotNull(answers, "answers"); - Utils.checkNotNull(ai, "ai"); - Utils.checkNotNull(aiApps, "aiApps"); Utils.checkNotNull(gleanAssist, "gleanAssist"); - Utils.checkNotNull(departments, "departments"); Utils.checkNotNull(overviewResponse, "overviewResponse"); Utils.checkNotNull(assistantResponse, "assistantResponse"); Utils.checkNotNull(agentsResponse, "agentsResponse"); - this.timeseries = timeseries; - this.users = users; - this.content = content; - this.queries = queries; - this.collections = collections; - this.collectionsV2 = collectionsV2; - this.shortcuts = shortcuts; - this.announcements = announcements; - this.answers = answers; - this.ai = ai; - this.aiApps = aiApps; this.gleanAssist = gleanAssist; - this.departments = departments; this.overviewResponse = overviewResponse; this.assistantResponse = assistantResponse; this.agentsResponse = agentsResponse; @@ -162,103 +54,15 @@ public InsightsResponse( public InsightsResponse() { this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty(), Optional.empty()); } - /** - * List of timeseries to make charts (if applicable). - * - * @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> timeseries() { - return (Optional>) timeseries; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional users() { - return (Optional) users; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional content() { - return (Optional) content; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional queries() { - return (Optional) queries; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional collections() { - return (Optional) collections; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional collectionsV2() { - return (Optional) collectionsV2; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional shortcuts() { - return (Optional) shortcuts; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional announcements() { - return (Optional) announcements; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional answers() { - return (Optional) answers; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional ai() { - return (Optional) ai; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional aiApps() { - return (Optional) aiApps; - } - @SuppressWarnings("unchecked") @JsonIgnore public Optional gleanAssist() { return (Optional) gleanAssist; } - /** - * list of all departments. - * - * @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() { - return (Optional>) departments; - } - @SuppressWarnings("unchecked") @JsonIgnore public Optional overviewResponse() { @@ -282,161 +86,6 @@ public static Builder builder() { } - /** - * List of timeseries to make charts (if applicable). - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - public InsightsResponse withTimeseries(List timeseries) { - Utils.checkNotNull(timeseries, "timeseries"); - this.timeseries = Optional.ofNullable(timeseries); - return this; - } - - - /** - * List of timeseries to make charts (if applicable). - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - public InsightsResponse withTimeseries(Optional> timeseries) { - Utils.checkNotNull(timeseries, "timeseries"); - this.timeseries = timeseries; - return this; - } - - public InsightsResponse withUsers(UserInsightsResponse users) { - Utils.checkNotNull(users, "users"); - this.users = Optional.ofNullable(users); - return this; - } - - - public InsightsResponse withUsers(Optional users) { - Utils.checkNotNull(users, "users"); - this.users = users; - return this; - } - - public InsightsResponse withContent(ContentInsightsResponse content) { - Utils.checkNotNull(content, "content"); - this.content = Optional.ofNullable(content); - return this; - } - - - public InsightsResponse withContent(Optional content) { - Utils.checkNotNull(content, "content"); - this.content = content; - return this; - } - - public InsightsResponse withQueries(QueryInsightsResponse queries) { - Utils.checkNotNull(queries, "queries"); - this.queries = Optional.ofNullable(queries); - return this; - } - - - public InsightsResponse withQueries(Optional queries) { - Utils.checkNotNull(queries, "queries"); - this.queries = queries; - return this; - } - - public InsightsResponse withCollections(ContentInsightsResponse collections) { - Utils.checkNotNull(collections, "collections"); - this.collections = Optional.ofNullable(collections); - return this; - } - - - public InsightsResponse withCollections(Optional collections) { - Utils.checkNotNull(collections, "collections"); - this.collections = collections; - return this; - } - - public InsightsResponse withCollectionsV2(ContentInsightsResponse collectionsV2) { - Utils.checkNotNull(collectionsV2, "collectionsV2"); - this.collectionsV2 = Optional.ofNullable(collectionsV2); - return this; - } - - - public InsightsResponse withCollectionsV2(Optional collectionsV2) { - Utils.checkNotNull(collectionsV2, "collectionsV2"); - this.collectionsV2 = collectionsV2; - return this; - } - - public InsightsResponse withShortcuts(ShortcutInsightsResponse shortcuts) { - Utils.checkNotNull(shortcuts, "shortcuts"); - this.shortcuts = Optional.ofNullable(shortcuts); - return this; - } - - - public InsightsResponse withShortcuts(Optional shortcuts) { - Utils.checkNotNull(shortcuts, "shortcuts"); - this.shortcuts = shortcuts; - return this; - } - - public InsightsResponse withAnnouncements(ContentInsightsResponse announcements) { - Utils.checkNotNull(announcements, "announcements"); - this.announcements = Optional.ofNullable(announcements); - return this; - } - - - public InsightsResponse withAnnouncements(Optional announcements) { - Utils.checkNotNull(announcements, "announcements"); - this.announcements = announcements; - return this; - } - - public InsightsResponse withAnswers(ContentInsightsResponse answers) { - Utils.checkNotNull(answers, "answers"); - this.answers = Optional.ofNullable(answers); - return this; - } - - - public InsightsResponse withAnswers(Optional answers) { - Utils.checkNotNull(answers, "answers"); - this.answers = answers; - return this; - } - - public InsightsResponse withAi(AiInsightsResponse ai) { - Utils.checkNotNull(ai, "ai"); - this.ai = Optional.ofNullable(ai); - return this; - } - - - public InsightsResponse withAi(Optional ai) { - Utils.checkNotNull(ai, "ai"); - this.ai = ai; - return this; - } - - public InsightsResponse withAiApps(AiAppsInsightsResponse aiApps) { - Utils.checkNotNull(aiApps, "aiApps"); - this.aiApps = Optional.ofNullable(aiApps); - return this; - } - - - public InsightsResponse withAiApps(Optional aiApps) { - Utils.checkNotNull(aiApps, "aiApps"); - this.aiApps = aiApps; - return this; - } - public InsightsResponse withGleanAssist(GleanAssistInsightsResponse gleanAssist) { Utils.checkNotNull(gleanAssist, "gleanAssist"); this.gleanAssist = Optional.ofNullable(gleanAssist); @@ -450,31 +99,6 @@ public InsightsResponse withGleanAssist(Optional departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = Optional.ofNullable(departments); - return this; - } - - - /** - * list of all departments. - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - public InsightsResponse withDepartments(Optional> departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = departments; - return this; - } - public InsightsResponse withOverviewResponse(InsightsOverviewResponse overviewResponse) { Utils.checkNotNull(overviewResponse, "overviewResponse"); this.overviewResponse = Optional.ofNullable(overviewResponse); @@ -524,19 +148,7 @@ public boolean equals(java.lang.Object o) { } InsightsResponse other = (InsightsResponse) o; return - Utils.enhancedDeepEquals(this.timeseries, other.timeseries) && - Utils.enhancedDeepEquals(this.users, other.users) && - Utils.enhancedDeepEquals(this.content, other.content) && - Utils.enhancedDeepEquals(this.queries, other.queries) && - Utils.enhancedDeepEquals(this.collections, other.collections) && - Utils.enhancedDeepEquals(this.collectionsV2, other.collectionsV2) && - Utils.enhancedDeepEquals(this.shortcuts, other.shortcuts) && - Utils.enhancedDeepEquals(this.announcements, other.announcements) && - Utils.enhancedDeepEquals(this.answers, other.answers) && - Utils.enhancedDeepEquals(this.ai, other.ai) && - Utils.enhancedDeepEquals(this.aiApps, other.aiApps) && Utils.enhancedDeepEquals(this.gleanAssist, other.gleanAssist) && - Utils.enhancedDeepEquals(this.departments, other.departments) && Utils.enhancedDeepEquals(this.overviewResponse, other.overviewResponse) && Utils.enhancedDeepEquals(this.assistantResponse, other.assistantResponse) && Utils.enhancedDeepEquals(this.agentsResponse, other.agentsResponse); @@ -545,30 +157,14 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - timeseries, users, content, - queries, collections, collectionsV2, - shortcuts, announcements, answers, - ai, aiApps, gleanAssist, - departments, overviewResponse, assistantResponse, + gleanAssist, overviewResponse, assistantResponse, agentsResponse); } @Override public String toString() { return Utils.toString(InsightsResponse.class, - "timeseries", timeseries, - "users", users, - "content", content, - "queries", queries, - "collections", collections, - "collectionsV2", collectionsV2, - "shortcuts", shortcuts, - "announcements", announcements, - "answers", answers, - "ai", ai, - "aiApps", aiApps, "gleanAssist", gleanAssist, - "departments", departments, "overviewResponse", overviewResponse, "assistantResponse", assistantResponse, "agentsResponse", agentsResponse); @@ -577,34 +173,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { - @Deprecated - private Optional> timeseries = Optional.empty(); - - private Optional users = Optional.empty(); - - private Optional content = Optional.empty(); - - private Optional queries = Optional.empty(); - - private Optional collections = Optional.empty(); - - private Optional collectionsV2 = Optional.empty(); - - private Optional shortcuts = Optional.empty(); - - private Optional announcements = Optional.empty(); - - private Optional answers = Optional.empty(); - - private Optional ai = Optional.empty(); - - private Optional aiApps = Optional.empty(); - private Optional gleanAssist = Optional.empty(); - @Deprecated - private Optional> departments = Optional.empty(); - private Optional overviewResponse = Optional.empty(); private Optional assistantResponse = Optional.empty(); @@ -616,161 +186,6 @@ private Builder() { } - /** - * List of timeseries to make charts (if applicable). - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - public Builder timeseries(List timeseries) { - Utils.checkNotNull(timeseries, "timeseries"); - this.timeseries = Optional.ofNullable(timeseries); - return this; - } - - /** - * List of timeseries to make charts (if applicable). - * - * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible. - */ - @Deprecated - public Builder timeseries(Optional> timeseries) { - Utils.checkNotNull(timeseries, "timeseries"); - this.timeseries = timeseries; - return this; - } - - - public Builder users(UserInsightsResponse users) { - Utils.checkNotNull(users, "users"); - this.users = Optional.ofNullable(users); - return this; - } - - public Builder users(Optional users) { - Utils.checkNotNull(users, "users"); - this.users = users; - return this; - } - - - public Builder content(ContentInsightsResponse content) { - Utils.checkNotNull(content, "content"); - this.content = Optional.ofNullable(content); - return this; - } - - public Builder content(Optional content) { - Utils.checkNotNull(content, "content"); - this.content = content; - return this; - } - - - public Builder queries(QueryInsightsResponse queries) { - Utils.checkNotNull(queries, "queries"); - this.queries = Optional.ofNullable(queries); - return this; - } - - public Builder queries(Optional queries) { - Utils.checkNotNull(queries, "queries"); - this.queries = queries; - return this; - } - - - public Builder collections(ContentInsightsResponse collections) { - Utils.checkNotNull(collections, "collections"); - this.collections = Optional.ofNullable(collections); - return this; - } - - public Builder collections(Optional collections) { - Utils.checkNotNull(collections, "collections"); - this.collections = collections; - return this; - } - - - public Builder collectionsV2(ContentInsightsResponse collectionsV2) { - Utils.checkNotNull(collectionsV2, "collectionsV2"); - this.collectionsV2 = Optional.ofNullable(collectionsV2); - return this; - } - - public Builder collectionsV2(Optional collectionsV2) { - Utils.checkNotNull(collectionsV2, "collectionsV2"); - this.collectionsV2 = collectionsV2; - return this; - } - - - public Builder shortcuts(ShortcutInsightsResponse shortcuts) { - Utils.checkNotNull(shortcuts, "shortcuts"); - this.shortcuts = Optional.ofNullable(shortcuts); - return this; - } - - public Builder shortcuts(Optional shortcuts) { - Utils.checkNotNull(shortcuts, "shortcuts"); - this.shortcuts = shortcuts; - return this; - } - - - public Builder announcements(ContentInsightsResponse announcements) { - Utils.checkNotNull(announcements, "announcements"); - this.announcements = Optional.ofNullable(announcements); - return this; - } - - public Builder announcements(Optional announcements) { - Utils.checkNotNull(announcements, "announcements"); - this.announcements = announcements; - return this; - } - - - public Builder answers(ContentInsightsResponse answers) { - Utils.checkNotNull(answers, "answers"); - this.answers = Optional.ofNullable(answers); - return this; - } - - public Builder answers(Optional answers) { - Utils.checkNotNull(answers, "answers"); - this.answers = answers; - return this; - } - - - public Builder ai(AiInsightsResponse ai) { - Utils.checkNotNull(ai, "ai"); - this.ai = Optional.ofNullable(ai); - return this; - } - - public Builder ai(Optional ai) { - Utils.checkNotNull(ai, "ai"); - this.ai = ai; - return this; - } - - - public Builder aiApps(AiAppsInsightsResponse aiApps) { - Utils.checkNotNull(aiApps, "aiApps"); - this.aiApps = Optional.ofNullable(aiApps); - return this; - } - - public Builder aiApps(Optional aiApps) { - Utils.checkNotNull(aiApps, "aiApps"); - this.aiApps = aiApps; - return this; - } - - public Builder gleanAssist(GleanAssistInsightsResponse gleanAssist) { Utils.checkNotNull(gleanAssist, "gleanAssist"); this.gleanAssist = Optional.ofNullable(gleanAssist); @@ -784,31 +199,6 @@ public Builder gleanAssist(Optional glean } - /** - * list of all departments. - * - * @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); - return this; - } - - /** - * list of all departments. - * - * @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; - return this; - } - - public Builder overviewResponse(InsightsOverviewResponse overviewResponse) { Utils.checkNotNull(overviewResponse, "overviewResponse"); this.overviewResponse = Optional.ofNullable(overviewResponse); @@ -850,11 +240,7 @@ public Builder agentsResponse(Optional agent public InsightsResponse build() { return new InsightsResponse( - timeseries, users, content, - queries, collections, collectionsV2, - shortcuts, announcements, answers, - ai, aiApps, gleanAssist, - departments, overviewResponse, assistantResponse, + gleanAssist, overviewResponse, assistantResponse, agentsResponse); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/QueryInsight.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/QueryInsight.java deleted file mode 100644 index d4aa9eef..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/QueryInsight.java +++ /dev/null @@ -1,351 +0,0 @@ -/* - * 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 QueryInsight { - /** - * The query string the information is about. - */ - @JsonProperty("query") - private String query; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("searchCount") - private Optional searchCount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("searchorCount") - private Optional searchorCount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("searchWithClickCount") - private Optional searchWithClickCount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("clickCount") - private Optional clickCount; - - /** - * list of similar queries to current one. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("similarQueries") - private Optional> similarQueries; - - @JsonCreator - public QueryInsight( - @JsonProperty("query") String query, - @JsonProperty("searchCount") Optional searchCount, - @JsonProperty("searchorCount") Optional searchorCount, - @JsonProperty("searchWithClickCount") Optional searchWithClickCount, - @JsonProperty("clickCount") Optional clickCount, - @JsonProperty("similarQueries") Optional> similarQueries) { - Utils.checkNotNull(query, "query"); - Utils.checkNotNull(searchCount, "searchCount"); - Utils.checkNotNull(searchorCount, "searchorCount"); - Utils.checkNotNull(searchWithClickCount, "searchWithClickCount"); - Utils.checkNotNull(clickCount, "clickCount"); - Utils.checkNotNull(similarQueries, "similarQueries"); - this.query = query; - this.searchCount = searchCount; - this.searchorCount = searchorCount; - this.searchWithClickCount = searchWithClickCount; - this.clickCount = clickCount; - this.similarQueries = similarQueries; - } - - public QueryInsight( - String query) { - this(query, Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * The query string the information is about. - */ - @JsonIgnore - public String query() { - return query; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional searchCount() { - return (Optional) searchCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional searchorCount() { - return (Optional) searchorCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional searchWithClickCount() { - return (Optional) searchWithClickCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional clickCount() { - return (Optional) clickCount; - } - - /** - * list of similar queries to current one. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> similarQueries() { - return (Optional>) similarQueries; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * The query string the information is about. - */ - public QueryInsight withQuery(String query) { - Utils.checkNotNull(query, "query"); - this.query = query; - return this; - } - - public QueryInsight withSearchCount(CountInfo searchCount) { - Utils.checkNotNull(searchCount, "searchCount"); - this.searchCount = Optional.ofNullable(searchCount); - return this; - } - - - public QueryInsight withSearchCount(Optional searchCount) { - Utils.checkNotNull(searchCount, "searchCount"); - this.searchCount = searchCount; - return this; - } - - public QueryInsight withSearchorCount(CountInfo searchorCount) { - Utils.checkNotNull(searchorCount, "searchorCount"); - this.searchorCount = Optional.ofNullable(searchorCount); - return this; - } - - - public QueryInsight withSearchorCount(Optional searchorCount) { - Utils.checkNotNull(searchorCount, "searchorCount"); - this.searchorCount = searchorCount; - return this; - } - - public QueryInsight withSearchWithClickCount(CountInfo searchWithClickCount) { - Utils.checkNotNull(searchWithClickCount, "searchWithClickCount"); - this.searchWithClickCount = Optional.ofNullable(searchWithClickCount); - return this; - } - - - public QueryInsight withSearchWithClickCount(Optional searchWithClickCount) { - Utils.checkNotNull(searchWithClickCount, "searchWithClickCount"); - this.searchWithClickCount = searchWithClickCount; - return this; - } - - public QueryInsight withClickCount(CountInfo clickCount) { - Utils.checkNotNull(clickCount, "clickCount"); - this.clickCount = Optional.ofNullable(clickCount); - return this; - } - - - public QueryInsight withClickCount(Optional clickCount) { - Utils.checkNotNull(clickCount, "clickCount"); - this.clickCount = clickCount; - return this; - } - - /** - * list of similar queries to current one. - */ - public QueryInsight withSimilarQueries(List similarQueries) { - Utils.checkNotNull(similarQueries, "similarQueries"); - this.similarQueries = Optional.ofNullable(similarQueries); - return this; - } - - - /** - * list of similar queries to current one. - */ - public QueryInsight withSimilarQueries(Optional> similarQueries) { - Utils.checkNotNull(similarQueries, "similarQueries"); - this.similarQueries = similarQueries; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - QueryInsight other = (QueryInsight) o; - return - Utils.enhancedDeepEquals(this.query, other.query) && - Utils.enhancedDeepEquals(this.searchCount, other.searchCount) && - Utils.enhancedDeepEquals(this.searchorCount, other.searchorCount) && - Utils.enhancedDeepEquals(this.searchWithClickCount, other.searchWithClickCount) && - Utils.enhancedDeepEquals(this.clickCount, other.clickCount) && - Utils.enhancedDeepEquals(this.similarQueries, other.similarQueries); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - query, searchCount, searchorCount, - searchWithClickCount, clickCount, similarQueries); - } - - @Override - public String toString() { - return Utils.toString(QueryInsight.class, - "query", query, - "searchCount", searchCount, - "searchorCount", searchorCount, - "searchWithClickCount", searchWithClickCount, - "clickCount", clickCount, - "similarQueries", similarQueries); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private String query; - - private Optional searchCount = Optional.empty(); - - private Optional searchorCount = Optional.empty(); - - private Optional searchWithClickCount = Optional.empty(); - - private Optional clickCount = Optional.empty(); - - private Optional> similarQueries = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - /** - * The query string the information is about. - */ - public Builder query(String query) { - Utils.checkNotNull(query, "query"); - this.query = query; - return this; - } - - - public Builder searchCount(CountInfo searchCount) { - Utils.checkNotNull(searchCount, "searchCount"); - this.searchCount = Optional.ofNullable(searchCount); - return this; - } - - public Builder searchCount(Optional searchCount) { - Utils.checkNotNull(searchCount, "searchCount"); - this.searchCount = searchCount; - return this; - } - - - public Builder searchorCount(CountInfo searchorCount) { - Utils.checkNotNull(searchorCount, "searchorCount"); - this.searchorCount = Optional.ofNullable(searchorCount); - return this; - } - - public Builder searchorCount(Optional searchorCount) { - Utils.checkNotNull(searchorCount, "searchorCount"); - this.searchorCount = searchorCount; - return this; - } - - - public Builder searchWithClickCount(CountInfo searchWithClickCount) { - Utils.checkNotNull(searchWithClickCount, "searchWithClickCount"); - this.searchWithClickCount = Optional.ofNullable(searchWithClickCount); - return this; - } - - public Builder searchWithClickCount(Optional searchWithClickCount) { - Utils.checkNotNull(searchWithClickCount, "searchWithClickCount"); - this.searchWithClickCount = searchWithClickCount; - return this; - } - - - public Builder clickCount(CountInfo clickCount) { - Utils.checkNotNull(clickCount, "clickCount"); - this.clickCount = Optional.ofNullable(clickCount); - return this; - } - - public Builder clickCount(Optional clickCount) { - Utils.checkNotNull(clickCount, "clickCount"); - this.clickCount = clickCount; - return this; - } - - - /** - * list of similar queries to current one. - */ - public Builder similarQueries(List similarQueries) { - Utils.checkNotNull(similarQueries, "similarQueries"); - this.similarQueries = Optional.ofNullable(similarQueries); - return this; - } - - /** - * list of similar queries to current one. - */ - public Builder similarQueries(Optional> similarQueries) { - Utils.checkNotNull(similarQueries, "similarQueries"); - this.similarQueries = similarQueries; - return this; - } - - public QueryInsight build() { - - return new QueryInsight( - query, searchCount, searchorCount, - searchWithClickCount, clickCount, similarQueries); - } - - } -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/QueryInsightsResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/QueryInsightsResponse.java deleted file mode 100644 index 4e1f7421..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/QueryInsightsResponse.java +++ /dev/null @@ -1,377 +0,0 @@ -/* - * 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.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Optional; - - -public class QueryInsightsResponse { - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastLogTimestamp") - private Optional lastLogTimestamp; - - /** - * Insights for queries. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("queryInsights") - private Optional> queryInsights; - - /** - * Insights for low performing queries without good results. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lowPerformingQueryInsights") - private Optional> lowPerformingQueryInsights; - - /** - * list of departments applicable for queries tab. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("departments") - private Optional> departments; - - /** - * Min threshold in number of visitors while populating results, otherwise 0. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("minVisitorThreshold") - private Optional minVisitorThreshold; - - @JsonCreator - public QueryInsightsResponse( - @JsonProperty("lastLogTimestamp") Optional lastLogTimestamp, - @JsonProperty("queryInsights") Optional> queryInsights, - @JsonProperty("lowPerformingQueryInsights") Optional> lowPerformingQueryInsights, - @JsonProperty("departments") Optional> departments, - @JsonProperty("minVisitorThreshold") Optional minVisitorThreshold) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - Utils.checkNotNull(queryInsights, "queryInsights"); - Utils.checkNotNull(lowPerformingQueryInsights, "lowPerformingQueryInsights"); - Utils.checkNotNull(departments, "departments"); - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.lastLogTimestamp = lastLogTimestamp; - this.queryInsights = queryInsights; - this.lowPerformingQueryInsights = lowPerformingQueryInsights; - this.departments = departments; - this.minVisitorThreshold = minVisitorThreshold; - } - - public QueryInsightsResponse() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty()); - } - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - @JsonIgnore - public Optional lastLogTimestamp() { - return lastLogTimestamp; - } - - /** - * Insights for queries. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> queryInsights() { - return (Optional>) queryInsights; - } - - /** - * Insights for low performing queries without good results. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> lowPerformingQueryInsights() { - return (Optional>) lowPerformingQueryInsights; - } - - /** - * list of departments applicable for queries tab. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> departments() { - return (Optional>) departments; - } - - /** - * Min threshold in number of visitors while populating results, otherwise 0. - */ - @JsonIgnore - public Optional minVisitorThreshold() { - return minVisitorThreshold; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public QueryInsightsResponse withLastLogTimestamp(long lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = Optional.ofNullable(lastLogTimestamp); - return this; - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public QueryInsightsResponse withLastLogTimestamp(Optional lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = lastLogTimestamp; - return this; - } - - /** - * Insights for queries. - */ - public QueryInsightsResponse withQueryInsights(List queryInsights) { - Utils.checkNotNull(queryInsights, "queryInsights"); - this.queryInsights = Optional.ofNullable(queryInsights); - return this; - } - - - /** - * Insights for queries. - */ - public QueryInsightsResponse withQueryInsights(Optional> queryInsights) { - Utils.checkNotNull(queryInsights, "queryInsights"); - this.queryInsights = queryInsights; - return this; - } - - /** - * Insights for low performing queries without good results. - */ - public QueryInsightsResponse withLowPerformingQueryInsights(List lowPerformingQueryInsights) { - Utils.checkNotNull(lowPerformingQueryInsights, "lowPerformingQueryInsights"); - this.lowPerformingQueryInsights = Optional.ofNullable(lowPerformingQueryInsights); - return this; - } - - - /** - * Insights for low performing queries without good results. - */ - public QueryInsightsResponse withLowPerformingQueryInsights(Optional> lowPerformingQueryInsights) { - Utils.checkNotNull(lowPerformingQueryInsights, "lowPerformingQueryInsights"); - this.lowPerformingQueryInsights = lowPerformingQueryInsights; - return this; - } - - /** - * list of departments applicable for queries tab. - */ - public QueryInsightsResponse withDepartments(List departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = Optional.ofNullable(departments); - return this; - } - - - /** - * list of departments applicable for queries tab. - */ - public QueryInsightsResponse withDepartments(Optional> departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = departments; - return this; - } - - /** - * Min threshold in number of visitors while populating results, otherwise 0. - */ - public QueryInsightsResponse withMinVisitorThreshold(long minVisitorThreshold) { - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.minVisitorThreshold = Optional.ofNullable(minVisitorThreshold); - return this; - } - - - /** - * Min threshold in number of visitors while populating results, otherwise 0. - */ - public QueryInsightsResponse withMinVisitorThreshold(Optional minVisitorThreshold) { - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.minVisitorThreshold = minVisitorThreshold; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - QueryInsightsResponse other = (QueryInsightsResponse) o; - return - Utils.enhancedDeepEquals(this.lastLogTimestamp, other.lastLogTimestamp) && - Utils.enhancedDeepEquals(this.queryInsights, other.queryInsights) && - Utils.enhancedDeepEquals(this.lowPerformingQueryInsights, other.lowPerformingQueryInsights) && - Utils.enhancedDeepEquals(this.departments, other.departments) && - Utils.enhancedDeepEquals(this.minVisitorThreshold, other.minVisitorThreshold); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - lastLogTimestamp, queryInsights, lowPerformingQueryInsights, - departments, minVisitorThreshold); - } - - @Override - public String toString() { - return Utils.toString(QueryInsightsResponse.class, - "lastLogTimestamp", lastLogTimestamp, - "queryInsights", queryInsights, - "lowPerformingQueryInsights", lowPerformingQueryInsights, - "departments", departments, - "minVisitorThreshold", minVisitorThreshold); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional lastLogTimestamp = Optional.empty(); - - private Optional> queryInsights = Optional.empty(); - - private Optional> lowPerformingQueryInsights = Optional.empty(); - - private Optional> departments = Optional.empty(); - - private Optional minVisitorThreshold = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public Builder lastLogTimestamp(long lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = Optional.ofNullable(lastLogTimestamp); - return this; - } - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public Builder lastLogTimestamp(Optional lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = lastLogTimestamp; - return this; - } - - - /** - * Insights for queries. - */ - public Builder queryInsights(List queryInsights) { - Utils.checkNotNull(queryInsights, "queryInsights"); - this.queryInsights = Optional.ofNullable(queryInsights); - return this; - } - - /** - * Insights for queries. - */ - public Builder queryInsights(Optional> queryInsights) { - Utils.checkNotNull(queryInsights, "queryInsights"); - this.queryInsights = queryInsights; - return this; - } - - - /** - * Insights for low performing queries without good results. - */ - public Builder lowPerformingQueryInsights(List lowPerformingQueryInsights) { - Utils.checkNotNull(lowPerformingQueryInsights, "lowPerformingQueryInsights"); - this.lowPerformingQueryInsights = Optional.ofNullable(lowPerformingQueryInsights); - return this; - } - - /** - * Insights for low performing queries without good results. - */ - public Builder lowPerformingQueryInsights(Optional> lowPerformingQueryInsights) { - Utils.checkNotNull(lowPerformingQueryInsights, "lowPerformingQueryInsights"); - this.lowPerformingQueryInsights = lowPerformingQueryInsights; - return this; - } - - - /** - * list of departments applicable for queries tab. - */ - public Builder departments(List departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = Optional.ofNullable(departments); - return this; - } - - /** - * list of departments applicable for queries tab. - */ - public Builder departments(Optional> departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = departments; - return this; - } - - - /** - * Min threshold in number of visitors while populating results, otherwise 0. - */ - public Builder minVisitorThreshold(long minVisitorThreshold) { - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.minVisitorThreshold = Optional.ofNullable(minVisitorThreshold); - return this; - } - - /** - * Min threshold in number of visitors while populating results, otherwise 0. - */ - public Builder minVisitorThreshold(Optional minVisitorThreshold) { - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.minVisitorThreshold = minVisitorThreshold; - return this; - } - - public QueryInsightsResponse build() { - - return new QueryInsightsResponse( - lastLogTimestamp, queryInsights, lowPerformingQueryInsights, - departments, minVisitorThreshold); - } - - } -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ShortcutInsight.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ShortcutInsight.java deleted file mode 100644 index 3582296f..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ShortcutInsight.java +++ /dev/null @@ -1,187 +0,0 @@ -/* - * 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.Optional; - - -public class ShortcutInsight { - - @JsonProperty("shortcut") - private Shortcut shortcut; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("visitCount") - private Optional visitCount; - - - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("visitorCount") - private Optional visitorCount; - - @JsonCreator - public ShortcutInsight( - @JsonProperty("shortcut") Shortcut shortcut, - @JsonProperty("visitCount") Optional visitCount, - @JsonProperty("visitorCount") Optional visitorCount) { - Utils.checkNotNull(shortcut, "shortcut"); - Utils.checkNotNull(visitCount, "visitCount"); - Utils.checkNotNull(visitorCount, "visitorCount"); - this.shortcut = shortcut; - this.visitCount = visitCount; - this.visitorCount = visitorCount; - } - - public ShortcutInsight( - Shortcut shortcut) { - this(shortcut, Optional.empty(), Optional.empty()); - } - - @JsonIgnore - public Shortcut shortcut() { - return shortcut; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional visitCount() { - return (Optional) visitCount; - } - - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional visitorCount() { - return (Optional) visitorCount; - } - - public static Builder builder() { - return new Builder(); - } - - - public ShortcutInsight withShortcut(Shortcut shortcut) { - Utils.checkNotNull(shortcut, "shortcut"); - this.shortcut = shortcut; - return this; - } - - public ShortcutInsight withVisitCount(CountInfo visitCount) { - Utils.checkNotNull(visitCount, "visitCount"); - this.visitCount = Optional.ofNullable(visitCount); - return this; - } - - - public ShortcutInsight withVisitCount(Optional visitCount) { - Utils.checkNotNull(visitCount, "visitCount"); - this.visitCount = visitCount; - return this; - } - - public ShortcutInsight withVisitorCount(CountInfo visitorCount) { - Utils.checkNotNull(visitorCount, "visitorCount"); - this.visitorCount = Optional.ofNullable(visitorCount); - return this; - } - - - public ShortcutInsight withVisitorCount(Optional visitorCount) { - Utils.checkNotNull(visitorCount, "visitorCount"); - this.visitorCount = visitorCount; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ShortcutInsight other = (ShortcutInsight) o; - return - Utils.enhancedDeepEquals(this.shortcut, other.shortcut) && - Utils.enhancedDeepEquals(this.visitCount, other.visitCount) && - Utils.enhancedDeepEquals(this.visitorCount, other.visitorCount); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - shortcut, visitCount, visitorCount); - } - - @Override - public String toString() { - return Utils.toString(ShortcutInsight.class, - "shortcut", shortcut, - "visitCount", visitCount, - "visitorCount", visitorCount); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Shortcut shortcut; - - private Optional visitCount = Optional.empty(); - - private Optional visitorCount = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - public Builder shortcut(Shortcut shortcut) { - Utils.checkNotNull(shortcut, "shortcut"); - this.shortcut = shortcut; - return this; - } - - - public Builder visitCount(CountInfo visitCount) { - Utils.checkNotNull(visitCount, "visitCount"); - this.visitCount = Optional.ofNullable(visitCount); - return this; - } - - public Builder visitCount(Optional visitCount) { - Utils.checkNotNull(visitCount, "visitCount"); - this.visitCount = visitCount; - return this; - } - - - public Builder visitorCount(CountInfo visitorCount) { - Utils.checkNotNull(visitorCount, "visitorCount"); - this.visitorCount = Optional.ofNullable(visitorCount); - return this; - } - - public Builder visitorCount(Optional visitorCount) { - Utils.checkNotNull(visitorCount, "visitorCount"); - this.visitorCount = visitorCount; - return this; - } - - public ShortcutInsight build() { - - return new ShortcutInsight( - shortcut, visitCount, visitorCount); - } - - } -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/ShortcutInsightsResponse.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/ShortcutInsightsResponse.java deleted file mode 100644 index 30254b20..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/ShortcutInsightsResponse.java +++ /dev/null @@ -1,316 +0,0 @@ -/* - * 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.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Optional; - - -public class ShortcutInsightsResponse { - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastLogTimestamp") - private Optional lastLogTimestamp; - - /** - * Insights for shortcuts. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("shortcutInsights") - private Optional> shortcutInsights; - - /** - * list of departments applicable for shortcuts tab. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("departments") - private Optional> departments; - - /** - * Min threshold in number of visitors while populating results, otherwise 0. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("minVisitorThreshold") - private Optional minVisitorThreshold; - - @JsonCreator - public ShortcutInsightsResponse( - @JsonProperty("lastLogTimestamp") Optional lastLogTimestamp, - @JsonProperty("shortcutInsights") Optional> shortcutInsights, - @JsonProperty("departments") Optional> departments, - @JsonProperty("minVisitorThreshold") Optional minVisitorThreshold) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - Utils.checkNotNull(shortcutInsights, "shortcutInsights"); - Utils.checkNotNull(departments, "departments"); - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.lastLogTimestamp = lastLogTimestamp; - this.shortcutInsights = shortcutInsights; - this.departments = departments; - this.minVisitorThreshold = minVisitorThreshold; - } - - public ShortcutInsightsResponse() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty()); - } - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - @JsonIgnore - public Optional lastLogTimestamp() { - return lastLogTimestamp; - } - - /** - * Insights for shortcuts. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> shortcutInsights() { - return (Optional>) shortcutInsights; - } - - /** - * list of departments applicable for shortcuts tab. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> departments() { - return (Optional>) departments; - } - - /** - * Min threshold in number of visitors while populating results, otherwise 0. - */ - @JsonIgnore - public Optional minVisitorThreshold() { - return minVisitorThreshold; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public ShortcutInsightsResponse withLastLogTimestamp(long lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = Optional.ofNullable(lastLogTimestamp); - return this; - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public ShortcutInsightsResponse withLastLogTimestamp(Optional lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = lastLogTimestamp; - return this; - } - - /** - * Insights for shortcuts. - */ - public ShortcutInsightsResponse withShortcutInsights(List shortcutInsights) { - Utils.checkNotNull(shortcutInsights, "shortcutInsights"); - this.shortcutInsights = Optional.ofNullable(shortcutInsights); - return this; - } - - - /** - * Insights for shortcuts. - */ - public ShortcutInsightsResponse withShortcutInsights(Optional> shortcutInsights) { - Utils.checkNotNull(shortcutInsights, "shortcutInsights"); - this.shortcutInsights = shortcutInsights; - return this; - } - - /** - * list of departments applicable for shortcuts tab. - */ - public ShortcutInsightsResponse withDepartments(List departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = Optional.ofNullable(departments); - return this; - } - - - /** - * list of departments applicable for shortcuts tab. - */ - public ShortcutInsightsResponse withDepartments(Optional> departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = departments; - return this; - } - - /** - * Min threshold in number of visitors while populating results, otherwise 0. - */ - public ShortcutInsightsResponse withMinVisitorThreshold(long minVisitorThreshold) { - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.minVisitorThreshold = Optional.ofNullable(minVisitorThreshold); - return this; - } - - - /** - * Min threshold in number of visitors while populating results, otherwise 0. - */ - public ShortcutInsightsResponse withMinVisitorThreshold(Optional minVisitorThreshold) { - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.minVisitorThreshold = minVisitorThreshold; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ShortcutInsightsResponse other = (ShortcutInsightsResponse) o; - return - Utils.enhancedDeepEquals(this.lastLogTimestamp, other.lastLogTimestamp) && - Utils.enhancedDeepEquals(this.shortcutInsights, other.shortcutInsights) && - Utils.enhancedDeepEquals(this.departments, other.departments) && - Utils.enhancedDeepEquals(this.minVisitorThreshold, other.minVisitorThreshold); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - lastLogTimestamp, shortcutInsights, departments, - minVisitorThreshold); - } - - @Override - public String toString() { - return Utils.toString(ShortcutInsightsResponse.class, - "lastLogTimestamp", lastLogTimestamp, - "shortcutInsights", shortcutInsights, - "departments", departments, - "minVisitorThreshold", minVisitorThreshold); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional lastLogTimestamp = Optional.empty(); - - private Optional> shortcutInsights = Optional.empty(); - - private Optional> departments = Optional.empty(); - - private Optional minVisitorThreshold = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public Builder lastLogTimestamp(long lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = Optional.ofNullable(lastLogTimestamp); - return this; - } - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public Builder lastLogTimestamp(Optional lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = lastLogTimestamp; - return this; - } - - - /** - * Insights for shortcuts. - */ - public Builder shortcutInsights(List shortcutInsights) { - Utils.checkNotNull(shortcutInsights, "shortcutInsights"); - this.shortcutInsights = Optional.ofNullable(shortcutInsights); - return this; - } - - /** - * Insights for shortcuts. - */ - public Builder shortcutInsights(Optional> shortcutInsights) { - Utils.checkNotNull(shortcutInsights, "shortcutInsights"); - this.shortcutInsights = shortcutInsights; - return this; - } - - - /** - * list of departments applicable for shortcuts tab. - */ - public Builder departments(List departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = Optional.ofNullable(departments); - return this; - } - - /** - * list of departments applicable for shortcuts tab. - */ - public Builder departments(Optional> departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = departments; - return this; - } - - - /** - * Min threshold in number of visitors while populating results, otherwise 0. - */ - public Builder minVisitorThreshold(long minVisitorThreshold) { - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.minVisitorThreshold = Optional.ofNullable(minVisitorThreshold); - return this; - } - - /** - * Min threshold in number of visitors while populating results, otherwise 0. - */ - public Builder minVisitorThreshold(Optional minVisitorThreshold) { - Utils.checkNotNull(minVisitorThreshold, "minVisitorThreshold"); - this.minVisitorThreshold = minVisitorThreshold; - return this; - } - - public ShortcutInsightsResponse build() { - - return new ShortcutInsightsResponse( - lastLogTimestamp, shortcutInsights, departments, - minVisitorThreshold); - } - - } -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/UgcType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/UgcType.java index 050128b8..0857214d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/UgcType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/UgcType.java @@ -14,7 +14,8 @@ public enum UgcType { COLLECTIONS_TYPE("COLLECTIONS_TYPE"), SHORTCUTS_TYPE("SHORTCUTS_TYPE"), WORKFLOWS_TYPE("WORKFLOWS_TYPE"), - PROMPT_TEMPLATES_TYPE("PROMPT_TEMPLATES_TYPE"); + PROMPT_TEMPLATES_TYPE("PROMPT_TEMPLATES_TYPE"), + PRISM_VIEWS_TYPE("PRISM_VIEWS_TYPE"); @JsonValue private final String value; 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 deleted file mode 100644 index 235acd43..00000000 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/UserInsightsResponse.java +++ /dev/null @@ -1,443 +0,0 @@ -/* - * 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.Long; -import java.lang.Override; -import java.lang.String; -import java.lang.SuppressWarnings; -import java.util.List; -import java.util.Optional; - - -public class UserInsightsResponse { - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("lastLogTimestamp") - private Optional lastLogTimestamp; - - /** - * Insights for all active users with respect to set of actions. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("activityInsights") - 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. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("inactiveInsights") - private Optional> inactiveInsights; - - /** - * Total number of teammates that have logged in to the product, that are still valid teammates. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalTeammates") - private Optional totalTeammates; - - /** - * Total number of active users in the requested period. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("totalActiveUsers") - private Optional totalActiveUsers; - - /** - * list of departments applicable for users tab. - */ - @JsonInclude(Include.NON_ABSENT) - @JsonProperty("departments") - private Optional> departments; - - @JsonCreator - public UserInsightsResponse( - @JsonProperty("lastLogTimestamp") Optional lastLogTimestamp, - @JsonProperty("activityInsights") Optional> activityInsights, - @JsonProperty("inactiveInsights") Optional> inactiveInsights, - @JsonProperty("totalTeammates") Optional totalTeammates, - @JsonProperty("totalActiveUsers") Optional totalActiveUsers, - @JsonProperty("departments") Optional> departments) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - Utils.checkNotNull(activityInsights, "activityInsights"); - Utils.checkNotNull(inactiveInsights, "inactiveInsights"); - Utils.checkNotNull(totalTeammates, "totalTeammates"); - Utils.checkNotNull(totalActiveUsers, "totalActiveUsers"); - Utils.checkNotNull(departments, "departments"); - this.lastLogTimestamp = lastLogTimestamp; - this.activityInsights = activityInsights; - this.inactiveInsights = inactiveInsights; - this.totalTeammates = totalTeammates; - this.totalActiveUsers = totalActiveUsers; - this.departments = departments; - } - - public UserInsightsResponse() { - this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty(), Optional.empty(), Optional.empty()); - } - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - @JsonIgnore - public Optional lastLogTimestamp() { - return lastLogTimestamp; - } - - /** - * Insights for all active users with respect to set of actions. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> activityInsights() { - return (Optional>) activityInsights; - } - - /** - * 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 - public Optional> inactiveInsights() { - return (Optional>) inactiveInsights; - } - - /** - * Total number of teammates that have logged in to the product, that are still valid teammates. - */ - @JsonIgnore - public Optional totalTeammates() { - return totalTeammates; - } - - /** - * Total number of active users in the requested period. - */ - @JsonIgnore - public Optional totalActiveUsers() { - return totalActiveUsers; - } - - /** - * list of departments applicable for users tab. - */ - @SuppressWarnings("unchecked") - @JsonIgnore - public Optional> departments() { - return (Optional>) departments; - } - - public static Builder builder() { - return new Builder(); - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public UserInsightsResponse withLastLogTimestamp(long lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = Optional.ofNullable(lastLogTimestamp); - return this; - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public UserInsightsResponse withLastLogTimestamp(Optional lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = lastLogTimestamp; - return this; - } - - /** - * Insights for all active users with respect to set of actions. - */ - public UserInsightsResponse withActivityInsights(List activityInsights) { - Utils.checkNotNull(activityInsights, "activityInsights"); - this.activityInsights = Optional.ofNullable(activityInsights); - return this; - } - - - /** - * Insights for all active users with respect to set of actions. - */ - public UserInsightsResponse withActivityInsights(Optional> activityInsights) { - Utils.checkNotNull(activityInsights, "activityInsights"); - this.activityInsights = activityInsights; - return this; - } - - /** - * 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(List inactiveInsights) { - Utils.checkNotNull(inactiveInsights, "inactiveInsights"); - this.inactiveInsights = Optional.ofNullable(inactiveInsights); - return this; - } - - - /** - * 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"); - this.inactiveInsights = inactiveInsights; - return this; - } - - /** - * Total number of teammates that have logged in to the product, that are still valid teammates. - */ - public UserInsightsResponse withTotalTeammates(long totalTeammates) { - Utils.checkNotNull(totalTeammates, "totalTeammates"); - this.totalTeammates = Optional.ofNullable(totalTeammates); - return this; - } - - - /** - * Total number of teammates that have logged in to the product, that are still valid teammates. - */ - public UserInsightsResponse withTotalTeammates(Optional totalTeammates) { - Utils.checkNotNull(totalTeammates, "totalTeammates"); - this.totalTeammates = totalTeammates; - return this; - } - - /** - * Total number of active users in the requested period. - */ - public UserInsightsResponse withTotalActiveUsers(long totalActiveUsers) { - Utils.checkNotNull(totalActiveUsers, "totalActiveUsers"); - this.totalActiveUsers = Optional.ofNullable(totalActiveUsers); - return this; - } - - - /** - * Total number of active users in the requested period. - */ - public UserInsightsResponse withTotalActiveUsers(Optional totalActiveUsers) { - Utils.checkNotNull(totalActiveUsers, "totalActiveUsers"); - this.totalActiveUsers = totalActiveUsers; - return this; - } - - /** - * list of departments applicable for users tab. - */ - public UserInsightsResponse withDepartments(List departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = Optional.ofNullable(departments); - return this; - } - - - /** - * list of departments applicable for users tab. - */ - public UserInsightsResponse withDepartments(Optional> departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = departments; - return this; - } - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UserInsightsResponse other = (UserInsightsResponse) o; - return - Utils.enhancedDeepEquals(this.lastLogTimestamp, other.lastLogTimestamp) && - Utils.enhancedDeepEquals(this.activityInsights, other.activityInsights) && - Utils.enhancedDeepEquals(this.inactiveInsights, other.inactiveInsights) && - Utils.enhancedDeepEquals(this.totalTeammates, other.totalTeammates) && - Utils.enhancedDeepEquals(this.totalActiveUsers, other.totalActiveUsers) && - Utils.enhancedDeepEquals(this.departments, other.departments); - } - - @Override - public int hashCode() { - return Utils.enhancedHash( - lastLogTimestamp, activityInsights, inactiveInsights, - totalTeammates, totalActiveUsers, departments); - } - - @Override - public String toString() { - return Utils.toString(UserInsightsResponse.class, - "lastLogTimestamp", lastLogTimestamp, - "activityInsights", activityInsights, - "inactiveInsights", inactiveInsights, - "totalTeammates", totalTeammates, - "totalActiveUsers", totalActiveUsers, - "departments", departments); - } - - @SuppressWarnings("UnusedReturnValue") - public final static class Builder { - - private Optional lastLogTimestamp = Optional.empty(); - - private Optional> activityInsights = Optional.empty(); - - private Optional> inactiveInsights = Optional.empty(); - - private Optional totalTeammates = Optional.empty(); - - private Optional totalActiveUsers = Optional.empty(); - - private Optional> departments = Optional.empty(); - - private Builder() { - // force use of static builder() method - } - - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public Builder lastLogTimestamp(long lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = Optional.ofNullable(lastLogTimestamp); - return this; - } - - /** - * Unix timestamp of the last activity processed to make the response (in seconds since epoch UTC). - */ - public Builder lastLogTimestamp(Optional lastLogTimestamp) { - Utils.checkNotNull(lastLogTimestamp, "lastLogTimestamp"); - this.lastLogTimestamp = lastLogTimestamp; - return this; - } - - - /** - * Insights for all active users with respect to set of actions. - */ - public Builder activityInsights(List activityInsights) { - Utils.checkNotNull(activityInsights, "activityInsights"); - this.activityInsights = Optional.ofNullable(activityInsights); - return this; - } - - /** - * Insights for all active users with respect to set of actions. - */ - public Builder activityInsights(Optional> activityInsights) { - Utils.checkNotNull(activityInsights, "activityInsights"); - this.activityInsights = activityInsights; - return this; - } - - - /** - * 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"); - this.inactiveInsights = Optional.ofNullable(inactiveInsights); - return this; - } - - /** - * 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"); - this.inactiveInsights = inactiveInsights; - return this; - } - - - /** - * Total number of teammates that have logged in to the product, that are still valid teammates. - */ - public Builder totalTeammates(long totalTeammates) { - Utils.checkNotNull(totalTeammates, "totalTeammates"); - this.totalTeammates = Optional.ofNullable(totalTeammates); - return this; - } - - /** - * Total number of teammates that have logged in to the product, that are still valid teammates. - */ - public Builder totalTeammates(Optional totalTeammates) { - Utils.checkNotNull(totalTeammates, "totalTeammates"); - this.totalTeammates = totalTeammates; - return this; - } - - - /** - * Total number of active users in the requested period. - */ - public Builder totalActiveUsers(long totalActiveUsers) { - Utils.checkNotNull(totalActiveUsers, "totalActiveUsers"); - this.totalActiveUsers = Optional.ofNullable(totalActiveUsers); - return this; - } - - /** - * Total number of active users in the requested period. - */ - public Builder totalActiveUsers(Optional totalActiveUsers) { - Utils.checkNotNull(totalActiveUsers, "totalActiveUsers"); - this.totalActiveUsers = totalActiveUsers; - return this; - } - - - /** - * list of departments applicable for users tab. - */ - public Builder departments(List departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = Optional.ofNullable(departments); - return this; - } - - /** - * list of departments applicable for users tab. - */ - public Builder departments(Optional> departments) { - Utils.checkNotNull(departments, "departments"); - this.departments = departments; - return this; - } - - public UserInsightsResponse build() { - - return new UserInsightsResponse( - lastLogTimestamp, activityInsights, inactiveInsights, - totalTeammates, totalActiveUsers, departments); - } - - } -} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/errors/GleanDataError.java b/src/main/java/com/glean/api_client/glean_api_client/models/errors/GleanDataError.java index d51520b7..c60e3cc4 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/errors/GleanDataError.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/errors/GleanDataError.java @@ -129,6 +129,14 @@ public Optional> errorMessages() { return data().flatMap(Data::errorMessages); } + /** + * Indicates the federated search results could not be fetched due to rate limiting. + */ + @Deprecated + public Optional federatedSearchRateLimitError() { + return data().flatMap(Data::federatedSearchRateLimitError); + } + public Optional data() { return Optional.ofNullable(data); } @@ -167,25 +175,35 @@ public static class Data { @JsonProperty("errorMessages") private Optional> errorMessages; + /** + * Indicates the federated search results could not be fetched due to rate limiting. + */ + @JsonInclude(Include.NON_ABSENT) + @JsonProperty("federatedSearchRateLimitError") + private Optional federatedSearchRateLimitError; + @JsonCreator public Data( @JsonProperty("badGmailToken") Optional badGmailToken, @JsonProperty("badOutlookToken") Optional badOutlookToken, @JsonProperty("invalidOperators") Optional> invalidOperators, - @JsonProperty("errorMessages") Optional> errorMessages) { + @JsonProperty("errorMessages") Optional> errorMessages, + @JsonProperty("federatedSearchRateLimitError") Optional federatedSearchRateLimitError) { Utils.checkNotNull(badGmailToken, "badGmailToken"); Utils.checkNotNull(badOutlookToken, "badOutlookToken"); Utils.checkNotNull(invalidOperators, "invalidOperators"); Utils.checkNotNull(errorMessages, "errorMessages"); + Utils.checkNotNull(federatedSearchRateLimitError, "federatedSearchRateLimitError"); this.badGmailToken = badGmailToken; this.badOutlookToken = badOutlookToken; this.invalidOperators = invalidOperators; this.errorMessages = errorMessages; + this.federatedSearchRateLimitError = federatedSearchRateLimitError; } public Data() { this(Optional.empty(), Optional.empty(), Optional.empty(), - Optional.empty()); + Optional.empty(), Optional.empty()); } /** @@ -219,6 +237,14 @@ public Optional> errorMessages() { return (Optional>) errorMessages; } + /** + * Indicates the federated search results could not be fetched due to rate limiting. + */ + @JsonIgnore + public Optional federatedSearchRateLimitError() { + return federatedSearchRateLimitError; + } + public static Builder builder() { return new Builder(); } @@ -294,6 +320,25 @@ public Data withErrorMessages(Optional> errorMessag return this; } + /** + * Indicates the federated search results could not be fetched due to rate limiting. + */ + public Data withFederatedSearchRateLimitError(boolean federatedSearchRateLimitError) { + Utils.checkNotNull(federatedSearchRateLimitError, "federatedSearchRateLimitError"); + this.federatedSearchRateLimitError = Optional.ofNullable(federatedSearchRateLimitError); + return this; + } + + + /** + * Indicates the federated search results could not be fetched due to rate limiting. + */ + public Data withFederatedSearchRateLimitError(Optional federatedSearchRateLimitError) { + Utils.checkNotNull(federatedSearchRateLimitError, "federatedSearchRateLimitError"); + this.federatedSearchRateLimitError = federatedSearchRateLimitError; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -307,14 +352,15 @@ public boolean equals(java.lang.Object o) { Utils.enhancedDeepEquals(this.badGmailToken, other.badGmailToken) && Utils.enhancedDeepEquals(this.badOutlookToken, other.badOutlookToken) && Utils.enhancedDeepEquals(this.invalidOperators, other.invalidOperators) && - Utils.enhancedDeepEquals(this.errorMessages, other.errorMessages); + Utils.enhancedDeepEquals(this.errorMessages, other.errorMessages) && + Utils.enhancedDeepEquals(this.federatedSearchRateLimitError, other.federatedSearchRateLimitError); } @Override public int hashCode() { return Utils.enhancedHash( badGmailToken, badOutlookToken, invalidOperators, - errorMessages); + errorMessages, federatedSearchRateLimitError); } @Override @@ -323,7 +369,8 @@ public String toString() { "badGmailToken", badGmailToken, "badOutlookToken", badOutlookToken, "invalidOperators", invalidOperators, - "errorMessages", errorMessages); + "errorMessages", errorMessages, + "federatedSearchRateLimitError", federatedSearchRateLimitError); } @SuppressWarnings("UnusedReturnValue") @@ -337,6 +384,8 @@ public final static class Builder { private Optional> errorMessages = Optional.empty(); + private Optional federatedSearchRateLimitError = Optional.empty(); + private Builder() { // force use of static builder() method } @@ -411,11 +460,30 @@ public Builder errorMessages(Optional> errorMessage return this; } + + /** + * Indicates the federated search results could not be fetched due to rate limiting. + */ + public Builder federatedSearchRateLimitError(boolean federatedSearchRateLimitError) { + Utils.checkNotNull(federatedSearchRateLimitError, "federatedSearchRateLimitError"); + this.federatedSearchRateLimitError = Optional.ofNullable(federatedSearchRateLimitError); + return this; + } + + /** + * Indicates the federated search results could not be fetched due to rate limiting. + */ + public Builder federatedSearchRateLimitError(Optional federatedSearchRateLimitError) { + Utils.checkNotNull(federatedSearchRateLimitError, "federatedSearchRateLimitError"); + this.federatedSearchRateLimitError = federatedSearchRateLimitError; + return this; + } + public Data build() { return new Data( badGmailToken, badOutlookToken, invalidOperators, - errorMessages); + errorMessages, federatedSearchRateLimitError); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddcollectionitemsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddcollectionitemsRequest.java new file mode 100644 index 00000000..901d0b57 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddcollectionitemsRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.AddCollectionItemsRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class AddcollectionitemsRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Data describing the add operation. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private AddCollectionItemsRequest addCollectionItemsRequest; + + @JsonCreator + public AddcollectionitemsRequest( + Optional locale, + AddCollectionItemsRequest addCollectionItemsRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(addCollectionItemsRequest, "addCollectionItemsRequest"); + this.locale = locale; + this.addCollectionItemsRequest = addCollectionItemsRequest; + } + + public AddcollectionitemsRequest( + AddCollectionItemsRequest addCollectionItemsRequest) { + this(Optional.empty(), addCollectionItemsRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Data describing the add operation. + */ + @JsonIgnore + public AddCollectionItemsRequest addCollectionItemsRequest() { + return addCollectionItemsRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public AddcollectionitemsRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public AddcollectionitemsRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Data describing the add operation. + */ + public AddcollectionitemsRequest withAddCollectionItemsRequest(AddCollectionItemsRequest addCollectionItemsRequest) { + Utils.checkNotNull(addCollectionItemsRequest, "addCollectionItemsRequest"); + this.addCollectionItemsRequest = addCollectionItemsRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddcollectionitemsRequest other = (AddcollectionitemsRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.addCollectionItemsRequest, other.addCollectionItemsRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, addCollectionItemsRequest); + } + + @Override + public String toString() { + return Utils.toString(AddcollectionitemsRequest.class, + "locale", locale, + "addCollectionItemsRequest", addCollectionItemsRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private AddCollectionItemsRequest addCollectionItemsRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Data describing the add operation. + */ + public Builder addCollectionItemsRequest(AddCollectionItemsRequest addCollectionItemsRequest) { + Utils.checkNotNull(addCollectionItemsRequest, "addCollectionItemsRequest"); + this.addCollectionItemsRequest = addCollectionItemsRequest; + return this; + } + + public AddcollectionitemsRequest build() { + + return new AddcollectionitemsRequest( + locale, addCollectionItemsRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddcollectionitemsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddcollectionitemsRequestBuilder.java index 78cbf222..d9da798f 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddcollectionitemsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddcollectionitemsRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Addcollectionitems; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class AddcollectionitemsRequestBuilder { - private AddCollectionItemsRequest request; + private Optional locale = Optional.empty(); + private AddCollectionItemsRequest addCollectionItemsRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public AddcollectionitemsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public AddcollectionitemsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public AddcollectionitemsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public AddcollectionitemsRequestBuilder request(AddCollectionItemsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public AddcollectionitemsRequestBuilder addCollectionItemsRequest(AddCollectionItemsRequest addCollectionItemsRequest) { + Utils.checkNotNull(addCollectionItemsRequest, "addCollectionItemsRequest"); + this.addCollectionItemsRequest = addCollectionItemsRequest; return this; } + + private AddcollectionitemsRequest buildRequest() { + + AddcollectionitemsRequest request = new AddcollectionitemsRequest(locale, + addCollectionItemsRequest); + + return request; + } + public AddcollectionitemsResponse call() { - RequestOperation operation + RequestOperation operation = new Addcollectionitems.Sync(sdkConfiguration, _headers); + AddcollectionitemsRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddverificationreminderRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddverificationreminderRequest.java new file mode 100644 index 00000000..efda8d90 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddverificationreminderRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.ReminderRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class AddverificationreminderRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Details about the reminder. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private ReminderRequest reminderRequest; + + @JsonCreator + public AddverificationreminderRequest( + Optional locale, + ReminderRequest reminderRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(reminderRequest, "reminderRequest"); + this.locale = locale; + this.reminderRequest = reminderRequest; + } + + public AddverificationreminderRequest( + ReminderRequest reminderRequest) { + this(Optional.empty(), reminderRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Details about the reminder. + */ + @JsonIgnore + public ReminderRequest reminderRequest() { + return reminderRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public AddverificationreminderRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public AddverificationreminderRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Details about the reminder. + */ + public AddverificationreminderRequest withReminderRequest(ReminderRequest reminderRequest) { + Utils.checkNotNull(reminderRequest, "reminderRequest"); + this.reminderRequest = reminderRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddverificationreminderRequest other = (AddverificationreminderRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.reminderRequest, other.reminderRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, reminderRequest); + } + + @Override + public String toString() { + return Utils.toString(AddverificationreminderRequest.class, + "locale", locale, + "reminderRequest", reminderRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private ReminderRequest reminderRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Details about the reminder. + */ + public Builder reminderRequest(ReminderRequest reminderRequest) { + Utils.checkNotNull(reminderRequest, "reminderRequest"); + this.reminderRequest = reminderRequest; + return this; + } + + public AddverificationreminderRequest build() { + + return new AddverificationreminderRequest( + locale, reminderRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddverificationreminderRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddverificationreminderRequestBuilder.java index 9facda2a..9680b96b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddverificationreminderRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AddverificationreminderRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Addverificationreminder; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class AddverificationreminderRequestBuilder { - private ReminderRequest request; + private Optional locale = Optional.empty(); + private ReminderRequest reminderRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public AddverificationreminderRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public AddverificationreminderRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public AddverificationreminderRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public AddverificationreminderRequestBuilder request(ReminderRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public AddverificationreminderRequestBuilder reminderRequest(ReminderRequest reminderRequest) { + Utils.checkNotNull(reminderRequest, "reminderRequest"); + this.reminderRequest = reminderRequest; return this; } + + private AddverificationreminderRequest buildRequest() { + + AddverificationreminderRequest request = new AddverificationreminderRequest(locale, + reminderRequest); + + return request; + } + public AddverificationreminderResponse call() { - RequestOperation operation + RequestOperation operation = new Addverificationreminder.Sync(sdkConfiguration, _headers); + AddverificationreminderRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/AdminsearchRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AdminsearchRequest.java new file mode 100644 index 00000000..7f39119b --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AdminsearchRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.SearchRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class AdminsearchRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Admin search request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private SearchRequest searchRequest; + + @JsonCreator + public AdminsearchRequest( + Optional locale, + SearchRequest searchRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(searchRequest, "searchRequest"); + this.locale = locale; + this.searchRequest = searchRequest; + } + + public AdminsearchRequest( + SearchRequest searchRequest) { + this(Optional.empty(), searchRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Admin search request + */ + @JsonIgnore + public SearchRequest searchRequest() { + return searchRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public AdminsearchRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public AdminsearchRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Admin search request + */ + public AdminsearchRequest withSearchRequest(SearchRequest searchRequest) { + Utils.checkNotNull(searchRequest, "searchRequest"); + this.searchRequest = searchRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AdminsearchRequest other = (AdminsearchRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.searchRequest, other.searchRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, searchRequest); + } + + @Override + public String toString() { + return Utils.toString(AdminsearchRequest.class, + "locale", locale, + "searchRequest", searchRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private SearchRequest searchRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Admin search request + */ + public Builder searchRequest(SearchRequest searchRequest) { + Utils.checkNotNull(searchRequest, "searchRequest"); + this.searchRequest = searchRequest; + return this; + } + + public AdminsearchRequest build() { + + return new AdminsearchRequest( + locale, searchRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/AdminsearchRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AdminsearchRequestBuilder.java index e7fe3ad1..85e3b59d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/AdminsearchRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AdminsearchRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Adminsearch; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class AdminsearchRequestBuilder { - private SearchRequest request; + private Optional locale = Optional.empty(); + private SearchRequest searchRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public AdminsearchRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public AdminsearchRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public AdminsearchRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public AdminsearchRequestBuilder request(SearchRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public AdminsearchRequestBuilder searchRequest(SearchRequest searchRequest) { + Utils.checkNotNull(searchRequest, "searchRequest"); + this.searchRequest = searchRequest; return this; } + + private AdminsearchRequest buildRequest() { + + AdminsearchRequest request = new AdminsearchRequest(locale, + searchRequest); + + return request; + } + public AdminsearchResponse call() { - RequestOperation operation + RequestOperation operation = new Adminsearch.Sync(sdkConfiguration, _headers); + AdminsearchRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/AutocompleteRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AutocompleteRequest.java new file mode 100644 index 00000000..ba6f6703 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AutocompleteRequest.java @@ -0,0 +1,184 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class AutocompleteRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Autocomplete request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private com.glean.api_client.glean_api_client.models.components.AutocompleteRequest autocompleteRequest; + + @JsonCreator + public AutocompleteRequest( + Optional locale, + com.glean.api_client.glean_api_client.models.components.AutocompleteRequest autocompleteRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(autocompleteRequest, "autocompleteRequest"); + this.locale = locale; + this.autocompleteRequest = autocompleteRequest; + } + + public AutocompleteRequest( + com.glean.api_client.glean_api_client.models.components.AutocompleteRequest autocompleteRequest) { + this(Optional.empty(), autocompleteRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Autocomplete request + */ + @JsonIgnore + public com.glean.api_client.glean_api_client.models.components.AutocompleteRequest autocompleteRequest() { + return autocompleteRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public AutocompleteRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public AutocompleteRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Autocomplete request + */ + public AutocompleteRequest withAutocompleteRequest(com.glean.api_client.glean_api_client.models.components.AutocompleteRequest autocompleteRequest) { + Utils.checkNotNull(autocompleteRequest, "autocompleteRequest"); + this.autocompleteRequest = autocompleteRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutocompleteRequest other = (AutocompleteRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.autocompleteRequest, other.autocompleteRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, autocompleteRequest); + } + + @Override + public String toString() { + return Utils.toString(AutocompleteRequest.class, + "locale", locale, + "autocompleteRequest", autocompleteRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private com.glean.api_client.glean_api_client.models.components.AutocompleteRequest autocompleteRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Autocomplete request + */ + public Builder autocompleteRequest(com.glean.api_client.glean_api_client.models.components.AutocompleteRequest autocompleteRequest) { + Utils.checkNotNull(autocompleteRequest, "autocompleteRequest"); + this.autocompleteRequest = autocompleteRequest; + return this; + } + + public AutocompleteRequest build() { + + return new AutocompleteRequest( + locale, autocompleteRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/AutocompleteRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AutocompleteRequestBuilder.java index 4ecb30de..3f7c2f40 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/AutocompleteRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/AutocompleteRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Autocomplete; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class AutocompleteRequestBuilder { - private AutocompleteRequest request; + private Optional locale = Optional.empty(); + private AutocompleteRequest autocompleteRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public AutocompleteRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public AutocompleteRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public AutocompleteRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public AutocompleteRequestBuilder request(AutocompleteRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public AutocompleteRequestBuilder autocompleteRequest(AutocompleteRequest autocompleteRequest) { + Utils.checkNotNull(autocompleteRequest, "autocompleteRequest"); + this.autocompleteRequest = autocompleteRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest request = new com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest(locale, + autocompleteRequest); + + return request; + } + public AutocompleteResponse call() { - RequestOperation operation + RequestOperation operation = new Autocomplete.Sync(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } 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 61e409a2..99f779c9 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 @@ -14,6 +14,15 @@ public class ChatRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -29,17 +38,31 @@ public class ChatRequest { @JsonCreator public ChatRequest( + Optional locale, Optional timezoneOffset, com.glean.api_client.glean_api_client.models.components.ChatRequest chatRequest) { + Utils.checkNotNull(locale, "locale"); Utils.checkNotNull(timezoneOffset, "timezoneOffset"); Utils.checkNotNull(chatRequest, "chatRequest"); + this.locale = locale; this.timezoneOffset = timezoneOffset; this.chatRequest = chatRequest; } public ChatRequest( com.glean.api_client.glean_api_client.models.components.ChatRequest chatRequest) { - this(Optional.empty(), chatRequest); + this(Optional.empty(), Optional.empty(), chatRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; } /** @@ -64,6 +87,31 @@ public static Builder builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ChatRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ChatRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -104,6 +152,7 @@ public boolean equals(java.lang.Object o) { } ChatRequest other = (ChatRequest) o; return + Utils.enhancedDeepEquals(this.locale, other.locale) && Utils.enhancedDeepEquals(this.timezoneOffset, other.timezoneOffset) && Utils.enhancedDeepEquals(this.chatRequest, other.chatRequest); } @@ -111,12 +160,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - timezoneOffset, chatRequest); + locale, timezoneOffset, chatRequest); } @Override public String toString() { return Utils.toString(ChatRequest.class, + "locale", locale, "timezoneOffset", timezoneOffset, "chatRequest", chatRequest); } @@ -124,6 +174,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional locale = Optional.empty(); + private Optional timezoneOffset = Optional.empty(); private com.glean.api_client.glean_api_client.models.components.ChatRequest chatRequest; @@ -133,6 +185,31 @@ private Builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -166,7 +243,7 @@ public Builder chatRequest(com.glean.api_client.glean_api_client.models.componen public ChatRequest build() { return new ChatRequest( - timezoneOffset, chatRequest); + locale, timezoneOffset, chatRequest); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatRequestBuilder.java index e6de45a5..74437347 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ChatRequestBuilder.java @@ -11,10 +11,12 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; public class ChatRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private ChatRequest chatRequest; private final SDKConfiguration sdkConfiguration; @@ -24,6 +26,18 @@ public ChatRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public ChatRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ChatRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public ChatRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -45,7 +59,8 @@ public ChatRequestBuilder chatRequest(ChatRequest chatRequest) { private com.glean.api_client.glean_api_client.models.operations.ChatRequest buildRequest() { - com.glean.api_client.glean_api_client.models.operations.ChatRequest request = new com.glean.api_client.glean_api_client.models.operations.ChatRequest(timezoneOffset, + com.glean.api_client.glean_api_client.models.operations.ChatRequest request = new com.glean.api_client.glean_api_client.models.operations.ChatRequest(locale, + timezoneOffset, chatRequest); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateannouncementRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateannouncementRequest.java new file mode 100644 index 00000000..bbbd2688 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateannouncementRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.CreateAnnouncementRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class CreateannouncementRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Announcement content + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private CreateAnnouncementRequest createAnnouncementRequest; + + @JsonCreator + public CreateannouncementRequest( + Optional locale, + CreateAnnouncementRequest createAnnouncementRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(createAnnouncementRequest, "createAnnouncementRequest"); + this.locale = locale; + this.createAnnouncementRequest = createAnnouncementRequest; + } + + public CreateannouncementRequest( + CreateAnnouncementRequest createAnnouncementRequest) { + this(Optional.empty(), createAnnouncementRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Announcement content + */ + @JsonIgnore + public CreateAnnouncementRequest createAnnouncementRequest() { + return createAnnouncementRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public CreateannouncementRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public CreateannouncementRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Announcement content + */ + public CreateannouncementRequest withCreateAnnouncementRequest(CreateAnnouncementRequest createAnnouncementRequest) { + Utils.checkNotNull(createAnnouncementRequest, "createAnnouncementRequest"); + this.createAnnouncementRequest = createAnnouncementRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateannouncementRequest other = (CreateannouncementRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.createAnnouncementRequest, other.createAnnouncementRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, createAnnouncementRequest); + } + + @Override + public String toString() { + return Utils.toString(CreateannouncementRequest.class, + "locale", locale, + "createAnnouncementRequest", createAnnouncementRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private CreateAnnouncementRequest createAnnouncementRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Announcement content + */ + public Builder createAnnouncementRequest(CreateAnnouncementRequest createAnnouncementRequest) { + Utils.checkNotNull(createAnnouncementRequest, "createAnnouncementRequest"); + this.createAnnouncementRequest = createAnnouncementRequest; + return this; + } + + public CreateannouncementRequest build() { + + return new CreateannouncementRequest( + locale, createAnnouncementRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateannouncementRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateannouncementRequestBuilder.java index db590f0a..2444d313 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateannouncementRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateannouncementRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Createannouncement; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreateannouncementRequestBuilder { - private CreateAnnouncementRequest request; + private Optional locale = Optional.empty(); + private CreateAnnouncementRequest createAnnouncementRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public CreateannouncementRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public CreateannouncementRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public CreateannouncementRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public CreateannouncementRequestBuilder request(CreateAnnouncementRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public CreateannouncementRequestBuilder createAnnouncementRequest(CreateAnnouncementRequest createAnnouncementRequest) { + Utils.checkNotNull(createAnnouncementRequest, "createAnnouncementRequest"); + this.createAnnouncementRequest = createAnnouncementRequest; return this; } + + private CreateannouncementRequest buildRequest() { + + CreateannouncementRequest request = new CreateannouncementRequest(locale, + createAnnouncementRequest); + + return request; + } + public CreateannouncementResponse call() { - RequestOperation operation + RequestOperation operation = new Createannouncement.Sync(sdkConfiguration, _headers); + CreateannouncementRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateanswerRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateanswerRequest.java new file mode 100644 index 00000000..24519412 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateanswerRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.CreateAnswerRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class CreateanswerRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * CreateAnswer request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private CreateAnswerRequest createAnswerRequest; + + @JsonCreator + public CreateanswerRequest( + Optional locale, + CreateAnswerRequest createAnswerRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(createAnswerRequest, "createAnswerRequest"); + this.locale = locale; + this.createAnswerRequest = createAnswerRequest; + } + + public CreateanswerRequest( + CreateAnswerRequest createAnswerRequest) { + this(Optional.empty(), createAnswerRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * CreateAnswer request + */ + @JsonIgnore + public CreateAnswerRequest createAnswerRequest() { + return createAnswerRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public CreateanswerRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public CreateanswerRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * CreateAnswer request + */ + public CreateanswerRequest withCreateAnswerRequest(CreateAnswerRequest createAnswerRequest) { + Utils.checkNotNull(createAnswerRequest, "createAnswerRequest"); + this.createAnswerRequest = createAnswerRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateanswerRequest other = (CreateanswerRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.createAnswerRequest, other.createAnswerRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, createAnswerRequest); + } + + @Override + public String toString() { + return Utils.toString(CreateanswerRequest.class, + "locale", locale, + "createAnswerRequest", createAnswerRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private CreateAnswerRequest createAnswerRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * CreateAnswer request + */ + public Builder createAnswerRequest(CreateAnswerRequest createAnswerRequest) { + Utils.checkNotNull(createAnswerRequest, "createAnswerRequest"); + this.createAnswerRequest = createAnswerRequest; + return this; + } + + public CreateanswerRequest build() { + + return new CreateanswerRequest( + locale, createAnswerRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateanswerRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateanswerRequestBuilder.java index 6466d662..999ca531 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateanswerRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateanswerRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Createanswer; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreateanswerRequestBuilder { - private CreateAnswerRequest request; + private Optional locale = Optional.empty(); + private CreateAnswerRequest createAnswerRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public CreateanswerRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public CreateanswerRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public CreateanswerRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public CreateanswerRequestBuilder request(CreateAnswerRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public CreateanswerRequestBuilder createAnswerRequest(CreateAnswerRequest createAnswerRequest) { + Utils.checkNotNull(createAnswerRequest, "createAnswerRequest"); + this.createAnswerRequest = createAnswerRequest; return this; } + + private CreateanswerRequest buildRequest() { + + CreateanswerRequest request = new CreateanswerRequest(locale, + createAnswerRequest); + + return request; + } + public CreateanswerResponse call() { - RequestOperation operation + RequestOperation operation = new Createanswer.Sync(sdkConfiguration, _headers); + CreateanswerRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreatecollectionRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreatecollectionRequest.java new file mode 100644 index 00000000..78876770 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreatecollectionRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.CreateCollectionRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class CreatecollectionRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Collection content plus any additional metadata for the request. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private CreateCollectionRequest createCollectionRequest; + + @JsonCreator + public CreatecollectionRequest( + Optional locale, + CreateCollectionRequest createCollectionRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(createCollectionRequest, "createCollectionRequest"); + this.locale = locale; + this.createCollectionRequest = createCollectionRequest; + } + + public CreatecollectionRequest( + CreateCollectionRequest createCollectionRequest) { + this(Optional.empty(), createCollectionRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Collection content plus any additional metadata for the request. + */ + @JsonIgnore + public CreateCollectionRequest createCollectionRequest() { + return createCollectionRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public CreatecollectionRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public CreatecollectionRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Collection content plus any additional metadata for the request. + */ + public CreatecollectionRequest withCreateCollectionRequest(CreateCollectionRequest createCollectionRequest) { + Utils.checkNotNull(createCollectionRequest, "createCollectionRequest"); + this.createCollectionRequest = createCollectionRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreatecollectionRequest other = (CreatecollectionRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.createCollectionRequest, other.createCollectionRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, createCollectionRequest); + } + + @Override + public String toString() { + return Utils.toString(CreatecollectionRequest.class, + "locale", locale, + "createCollectionRequest", createCollectionRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private CreateCollectionRequest createCollectionRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Collection content plus any additional metadata for the request. + */ + public Builder createCollectionRequest(CreateCollectionRequest createCollectionRequest) { + Utils.checkNotNull(createCollectionRequest, "createCollectionRequest"); + this.createCollectionRequest = createCollectionRequest; + return this; + } + + public CreatecollectionRequest build() { + + return new CreatecollectionRequest( + locale, createCollectionRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreatecollectionRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreatecollectionRequestBuilder.java index e8be8da8..108fa8e1 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreatecollectionRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreatecollectionRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Createcollection; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreatecollectionRequestBuilder { - private CreateCollectionRequest request; + private Optional locale = Optional.empty(); + private CreateCollectionRequest createCollectionRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public CreatecollectionRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public CreatecollectionRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public CreatecollectionRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public CreatecollectionRequestBuilder request(CreateCollectionRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public CreatecollectionRequestBuilder createCollectionRequest(CreateCollectionRequest createCollectionRequest) { + Utils.checkNotNull(createCollectionRequest, "createCollectionRequest"); + this.createCollectionRequest = createCollectionRequest; return this; } + + private CreatecollectionRequest buildRequest() { + + CreatecollectionRequest request = new CreatecollectionRequest(locale, + createCollectionRequest); + + return request; + } + public CreatecollectionResponse call() { - RequestOperation operation + RequestOperation operation = new Createcollection.Sync(sdkConfiguration, _headers); + CreatecollectionRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateshortcutRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateshortcutRequest.java new file mode 100644 index 00000000..05c5fa23 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateshortcutRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.CreateShortcutRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class CreateshortcutRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * CreateShortcut request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private CreateShortcutRequest createShortcutRequest; + + @JsonCreator + public CreateshortcutRequest( + Optional locale, + CreateShortcutRequest createShortcutRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(createShortcutRequest, "createShortcutRequest"); + this.locale = locale; + this.createShortcutRequest = createShortcutRequest; + } + + public CreateshortcutRequest( + CreateShortcutRequest createShortcutRequest) { + this(Optional.empty(), createShortcutRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * CreateShortcut request + */ + @JsonIgnore + public CreateShortcutRequest createShortcutRequest() { + return createShortcutRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public CreateshortcutRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public CreateshortcutRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * CreateShortcut request + */ + public CreateshortcutRequest withCreateShortcutRequest(CreateShortcutRequest createShortcutRequest) { + Utils.checkNotNull(createShortcutRequest, "createShortcutRequest"); + this.createShortcutRequest = createShortcutRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateshortcutRequest other = (CreateshortcutRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.createShortcutRequest, other.createShortcutRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, createShortcutRequest); + } + + @Override + public String toString() { + return Utils.toString(CreateshortcutRequest.class, + "locale", locale, + "createShortcutRequest", createShortcutRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private CreateShortcutRequest createShortcutRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * CreateShortcut request + */ + public Builder createShortcutRequest(CreateShortcutRequest createShortcutRequest) { + Utils.checkNotNull(createShortcutRequest, "createShortcutRequest"); + this.createShortcutRequest = createShortcutRequest; + return this; + } + + public CreateshortcutRequest build() { + + return new CreateshortcutRequest( + locale, createShortcutRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateshortcutRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateshortcutRequestBuilder.java index 2a81d599..4eac7138 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateshortcutRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/CreateshortcutRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Createshortcut; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class CreateshortcutRequestBuilder { - private CreateShortcutRequest request; + private Optional locale = Optional.empty(); + private CreateShortcutRequest createShortcutRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public CreateshortcutRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public CreateshortcutRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public CreateshortcutRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public CreateshortcutRequestBuilder request(CreateShortcutRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public CreateshortcutRequestBuilder createShortcutRequest(CreateShortcutRequest createShortcutRequest) { + Utils.checkNotNull(createShortcutRequest, "createShortcutRequest"); + this.createShortcutRequest = createShortcutRequest; return this; } + + private CreateshortcutRequest buildRequest() { + + CreateshortcutRequest request = new CreateshortcutRequest(locale, + createShortcutRequest); + + return request; + } + public CreateshortcutResponse call() { - RequestOperation operation + RequestOperation operation = new Createshortcut.Sync(sdkConfiguration, _headers); + CreateshortcutRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } 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 dc907bad..20e77011 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 @@ -14,6 +14,15 @@ public class DeleteallchatsRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -23,13 +32,27 @@ public class DeleteallchatsRequest { @JsonCreator public DeleteallchatsRequest( + Optional locale, Optional timezoneOffset) { + Utils.checkNotNull(locale, "locale"); Utils.checkNotNull(timezoneOffset, "timezoneOffset"); + this.locale = locale; this.timezoneOffset = timezoneOffset; } public DeleteallchatsRequest() { - this(Optional.empty()); + this(Optional.empty(), Optional.empty()); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; } /** @@ -46,6 +69,31 @@ public static Builder builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeleteallchatsRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeleteallchatsRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -77,24 +125,28 @@ public boolean equals(java.lang.Object o) { } DeleteallchatsRequest other = (DeleteallchatsRequest) o; return + Utils.enhancedDeepEquals(this.locale, other.locale) && Utils.enhancedDeepEquals(this.timezoneOffset, other.timezoneOffset); } @Override public int hashCode() { return Utils.enhancedHash( - timezoneOffset); + locale, timezoneOffset); } @Override public String toString() { return Utils.toString(DeleteallchatsRequest.class, + "locale", locale, "timezoneOffset", timezoneOffset); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional locale = Optional.empty(); + private Optional timezoneOffset = Optional.empty(); private Builder() { @@ -102,6 +154,31 @@ private Builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -125,7 +202,7 @@ public Builder timezoneOffset(Optional timezoneOffset) { public DeleteallchatsRequest build() { return new DeleteallchatsRequest( - timezoneOffset); + locale, timezoneOffset); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteallchatsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteallchatsRequestBuilder.java index 7ccb501d..aae854c9 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteallchatsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteallchatsRequestBuilder.java @@ -10,10 +10,12 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; public class DeleteallchatsRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -22,6 +24,18 @@ public DeleteallchatsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public DeleteallchatsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeleteallchatsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public DeleteallchatsRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -37,7 +51,8 @@ public DeleteallchatsRequestBuilder timezoneOffset(Optional timezoneOffset private DeleteallchatsRequest buildRequest() { - DeleteallchatsRequest request = new DeleteallchatsRequest(timezoneOffset); + DeleteallchatsRequest request = new DeleteallchatsRequest(locale, + timezoneOffset); return request; } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteannouncementRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteannouncementRequest.java new file mode 100644 index 00000000..aa945d9e --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteannouncementRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.DeleteAnnouncementRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class DeleteannouncementRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Delete announcement request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private DeleteAnnouncementRequest deleteAnnouncementRequest; + + @JsonCreator + public DeleteannouncementRequest( + Optional locale, + DeleteAnnouncementRequest deleteAnnouncementRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(deleteAnnouncementRequest, "deleteAnnouncementRequest"); + this.locale = locale; + this.deleteAnnouncementRequest = deleteAnnouncementRequest; + } + + public DeleteannouncementRequest( + DeleteAnnouncementRequest deleteAnnouncementRequest) { + this(Optional.empty(), deleteAnnouncementRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Delete announcement request + */ + @JsonIgnore + public DeleteAnnouncementRequest deleteAnnouncementRequest() { + return deleteAnnouncementRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeleteannouncementRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeleteannouncementRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Delete announcement request + */ + public DeleteannouncementRequest withDeleteAnnouncementRequest(DeleteAnnouncementRequest deleteAnnouncementRequest) { + Utils.checkNotNull(deleteAnnouncementRequest, "deleteAnnouncementRequest"); + this.deleteAnnouncementRequest = deleteAnnouncementRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteannouncementRequest other = (DeleteannouncementRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.deleteAnnouncementRequest, other.deleteAnnouncementRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, deleteAnnouncementRequest); + } + + @Override + public String toString() { + return Utils.toString(DeleteannouncementRequest.class, + "locale", locale, + "deleteAnnouncementRequest", deleteAnnouncementRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private DeleteAnnouncementRequest deleteAnnouncementRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Delete announcement request + */ + public Builder deleteAnnouncementRequest(DeleteAnnouncementRequest deleteAnnouncementRequest) { + Utils.checkNotNull(deleteAnnouncementRequest, "deleteAnnouncementRequest"); + this.deleteAnnouncementRequest = deleteAnnouncementRequest; + return this; + } + + public DeleteannouncementRequest build() { + + return new DeleteannouncementRequest( + locale, deleteAnnouncementRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteannouncementRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteannouncementRequestBuilder.java index 81127ece..ae652db6 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteannouncementRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteannouncementRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Deleteannouncement; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeleteannouncementRequestBuilder { - private DeleteAnnouncementRequest request; + private Optional locale = Optional.empty(); + private DeleteAnnouncementRequest deleteAnnouncementRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public DeleteannouncementRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public DeleteannouncementRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeleteannouncementRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public DeleteannouncementRequestBuilder request(DeleteAnnouncementRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public DeleteannouncementRequestBuilder deleteAnnouncementRequest(DeleteAnnouncementRequest deleteAnnouncementRequest) { + Utils.checkNotNull(deleteAnnouncementRequest, "deleteAnnouncementRequest"); + this.deleteAnnouncementRequest = deleteAnnouncementRequest; return this; } + + private DeleteannouncementRequest buildRequest() { + + DeleteannouncementRequest request = new DeleteannouncementRequest(locale, + deleteAnnouncementRequest); + + return request; + } + public DeleteannouncementResponse call() { - RequestOperation operation + RequestOperation operation = new Deleteannouncement.Sync(sdkConfiguration, _headers); + DeleteannouncementRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteanswerRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteanswerRequest.java new file mode 100644 index 00000000..23ef82d4 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteanswerRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.DeleteAnswerRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class DeleteanswerRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * DeleteAnswer request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private DeleteAnswerRequest deleteAnswerRequest; + + @JsonCreator + public DeleteanswerRequest( + Optional locale, + DeleteAnswerRequest deleteAnswerRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(deleteAnswerRequest, "deleteAnswerRequest"); + this.locale = locale; + this.deleteAnswerRequest = deleteAnswerRequest; + } + + public DeleteanswerRequest( + DeleteAnswerRequest deleteAnswerRequest) { + this(Optional.empty(), deleteAnswerRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * DeleteAnswer request + */ + @JsonIgnore + public DeleteAnswerRequest deleteAnswerRequest() { + return deleteAnswerRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeleteanswerRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeleteanswerRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * DeleteAnswer request + */ + public DeleteanswerRequest withDeleteAnswerRequest(DeleteAnswerRequest deleteAnswerRequest) { + Utils.checkNotNull(deleteAnswerRequest, "deleteAnswerRequest"); + this.deleteAnswerRequest = deleteAnswerRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteanswerRequest other = (DeleteanswerRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.deleteAnswerRequest, other.deleteAnswerRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, deleteAnswerRequest); + } + + @Override + public String toString() { + return Utils.toString(DeleteanswerRequest.class, + "locale", locale, + "deleteAnswerRequest", deleteAnswerRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private DeleteAnswerRequest deleteAnswerRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * DeleteAnswer request + */ + public Builder deleteAnswerRequest(DeleteAnswerRequest deleteAnswerRequest) { + Utils.checkNotNull(deleteAnswerRequest, "deleteAnswerRequest"); + this.deleteAnswerRequest = deleteAnswerRequest; + return this; + } + + public DeleteanswerRequest build() { + + return new DeleteanswerRequest( + locale, deleteAnswerRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteanswerRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteanswerRequestBuilder.java index 2648e7af..5488d0ae 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteanswerRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteanswerRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Deleteanswer; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeleteanswerRequestBuilder { - private DeleteAnswerRequest request; + private Optional locale = Optional.empty(); + private DeleteAnswerRequest deleteAnswerRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public DeleteanswerRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public DeleteanswerRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeleteanswerRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public DeleteanswerRequestBuilder request(DeleteAnswerRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public DeleteanswerRequestBuilder deleteAnswerRequest(DeleteAnswerRequest deleteAnswerRequest) { + Utils.checkNotNull(deleteAnswerRequest, "deleteAnswerRequest"); + this.deleteAnswerRequest = deleteAnswerRequest; return this; } + + private DeleteanswerRequest buildRequest() { + + DeleteanswerRequest request = new DeleteanswerRequest(locale, + deleteAnswerRequest); + + return request; + } + public DeleteanswerResponse call() { - RequestOperation operation + RequestOperation operation = new Deleteanswer.Sync(sdkConfiguration, _headers); + DeleteanswerRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } 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 a17bd69f..95838cd8 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 @@ -15,6 +15,15 @@ public class DeletechatfilesRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -28,17 +37,31 @@ public class DeletechatfilesRequest { @JsonCreator public DeletechatfilesRequest( + Optional locale, Optional timezoneOffset, DeleteChatFilesRequest deleteChatFilesRequest) { + Utils.checkNotNull(locale, "locale"); Utils.checkNotNull(timezoneOffset, "timezoneOffset"); Utils.checkNotNull(deleteChatFilesRequest, "deleteChatFilesRequest"); + this.locale = locale; this.timezoneOffset = timezoneOffset; this.deleteChatFilesRequest = deleteChatFilesRequest; } public DeletechatfilesRequest( DeleteChatFilesRequest deleteChatFilesRequest) { - this(Optional.empty(), deleteChatFilesRequest); + this(Optional.empty(), Optional.empty(), deleteChatFilesRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; } /** @@ -60,6 +83,31 @@ public static Builder builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeletechatfilesRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeletechatfilesRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -97,6 +145,7 @@ public boolean equals(java.lang.Object o) { } DeletechatfilesRequest other = (DeletechatfilesRequest) o; return + Utils.enhancedDeepEquals(this.locale, other.locale) && Utils.enhancedDeepEquals(this.timezoneOffset, other.timezoneOffset) && Utils.enhancedDeepEquals(this.deleteChatFilesRequest, other.deleteChatFilesRequest); } @@ -104,12 +153,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - timezoneOffset, deleteChatFilesRequest); + locale, timezoneOffset, deleteChatFilesRequest); } @Override public String toString() { return Utils.toString(DeletechatfilesRequest.class, + "locale", locale, "timezoneOffset", timezoneOffset, "deleteChatFilesRequest", deleteChatFilesRequest); } @@ -117,6 +167,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional locale = Optional.empty(); + private Optional timezoneOffset = Optional.empty(); private DeleteChatFilesRequest deleteChatFilesRequest; @@ -126,6 +178,31 @@ private Builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -156,7 +233,7 @@ public Builder deleteChatFilesRequest(DeleteChatFilesRequest deleteChatFilesRequ public DeletechatfilesRequest build() { return new DeletechatfilesRequest( - timezoneOffset, deleteChatFilesRequest); + locale, timezoneOffset, deleteChatFilesRequest); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatfilesRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatfilesRequestBuilder.java index ff60807b..af57be54 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatfilesRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatfilesRequestBuilder.java @@ -11,10 +11,12 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; public class DeletechatfilesRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private DeleteChatFilesRequest deleteChatFilesRequest; private final SDKConfiguration sdkConfiguration; @@ -24,6 +26,18 @@ public DeletechatfilesRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public DeletechatfilesRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeletechatfilesRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public DeletechatfilesRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -45,7 +59,8 @@ public DeletechatfilesRequestBuilder deleteChatFilesRequest(DeleteChatFilesReque private DeletechatfilesRequest buildRequest() { - DeletechatfilesRequest request = new DeletechatfilesRequest(timezoneOffset, + DeletechatfilesRequest request = new DeletechatfilesRequest(locale, + timezoneOffset, deleteChatFilesRequest); return request; 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 5d6a848b..af5dfd56 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 @@ -15,6 +15,15 @@ public class DeletechatsRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -28,17 +37,31 @@ public class DeletechatsRequest { @JsonCreator public DeletechatsRequest( + Optional locale, Optional timezoneOffset, DeleteChatsRequest deleteChatsRequest) { + Utils.checkNotNull(locale, "locale"); Utils.checkNotNull(timezoneOffset, "timezoneOffset"); Utils.checkNotNull(deleteChatsRequest, "deleteChatsRequest"); + this.locale = locale; this.timezoneOffset = timezoneOffset; this.deleteChatsRequest = deleteChatsRequest; } public DeletechatsRequest( DeleteChatsRequest deleteChatsRequest) { - this(Optional.empty(), deleteChatsRequest); + this(Optional.empty(), Optional.empty(), deleteChatsRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; } /** @@ -60,6 +83,31 @@ public static Builder builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeletechatsRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeletechatsRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -97,6 +145,7 @@ public boolean equals(java.lang.Object o) { } DeletechatsRequest other = (DeletechatsRequest) o; return + Utils.enhancedDeepEquals(this.locale, other.locale) && Utils.enhancedDeepEquals(this.timezoneOffset, other.timezoneOffset) && Utils.enhancedDeepEquals(this.deleteChatsRequest, other.deleteChatsRequest); } @@ -104,12 +153,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - timezoneOffset, deleteChatsRequest); + locale, timezoneOffset, deleteChatsRequest); } @Override public String toString() { return Utils.toString(DeletechatsRequest.class, + "locale", locale, "timezoneOffset", timezoneOffset, "deleteChatsRequest", deleteChatsRequest); } @@ -117,6 +167,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional locale = Optional.empty(); + private Optional timezoneOffset = Optional.empty(); private DeleteChatsRequest deleteChatsRequest; @@ -126,6 +178,31 @@ private Builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -156,7 +233,7 @@ public Builder deleteChatsRequest(DeleteChatsRequest deleteChatsRequest) { public DeletechatsRequest build() { return new DeletechatsRequest( - timezoneOffset, deleteChatsRequest); + locale, timezoneOffset, deleteChatsRequest); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatsRequestBuilder.java index ffbf6a3a..5866ac97 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletechatsRequestBuilder.java @@ -11,10 +11,12 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; public class DeletechatsRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private DeleteChatsRequest deleteChatsRequest; private final SDKConfiguration sdkConfiguration; @@ -24,6 +26,18 @@ public DeletechatsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public DeletechatsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeletechatsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public DeletechatsRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -45,7 +59,8 @@ public DeletechatsRequestBuilder deleteChatsRequest(DeleteChatsRequest deleteCha private DeletechatsRequest buildRequest() { - DeletechatsRequest request = new DeletechatsRequest(timezoneOffset, + DeletechatsRequest request = new DeletechatsRequest(locale, + timezoneOffset, deleteChatsRequest); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionRequest.java new file mode 100644 index 00000000..48ded486 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.DeleteCollectionRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class DeletecollectionRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * DeleteCollection request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private DeleteCollectionRequest deleteCollectionRequest; + + @JsonCreator + public DeletecollectionRequest( + Optional locale, + DeleteCollectionRequest deleteCollectionRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(deleteCollectionRequest, "deleteCollectionRequest"); + this.locale = locale; + this.deleteCollectionRequest = deleteCollectionRequest; + } + + public DeletecollectionRequest( + DeleteCollectionRequest deleteCollectionRequest) { + this(Optional.empty(), deleteCollectionRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * DeleteCollection request + */ + @JsonIgnore + public DeleteCollectionRequest deleteCollectionRequest() { + return deleteCollectionRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeletecollectionRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeletecollectionRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * DeleteCollection request + */ + public DeletecollectionRequest withDeleteCollectionRequest(DeleteCollectionRequest deleteCollectionRequest) { + Utils.checkNotNull(deleteCollectionRequest, "deleteCollectionRequest"); + this.deleteCollectionRequest = deleteCollectionRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeletecollectionRequest other = (DeletecollectionRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.deleteCollectionRequest, other.deleteCollectionRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, deleteCollectionRequest); + } + + @Override + public String toString() { + return Utils.toString(DeletecollectionRequest.class, + "locale", locale, + "deleteCollectionRequest", deleteCollectionRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private DeleteCollectionRequest deleteCollectionRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * DeleteCollection request + */ + public Builder deleteCollectionRequest(DeleteCollectionRequest deleteCollectionRequest) { + Utils.checkNotNull(deleteCollectionRequest, "deleteCollectionRequest"); + this.deleteCollectionRequest = deleteCollectionRequest; + return this; + } + + public DeletecollectionRequest build() { + + return new DeletecollectionRequest( + locale, deleteCollectionRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionRequestBuilder.java index 8e45027d..154576bd 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Deletecollection; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeletecollectionRequestBuilder { - private DeleteCollectionRequest request; + private Optional locale = Optional.empty(); + private DeleteCollectionRequest deleteCollectionRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public DeletecollectionRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public DeletecollectionRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeletecollectionRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public DeletecollectionRequestBuilder request(DeleteCollectionRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public DeletecollectionRequestBuilder deleteCollectionRequest(DeleteCollectionRequest deleteCollectionRequest) { + Utils.checkNotNull(deleteCollectionRequest, "deleteCollectionRequest"); + this.deleteCollectionRequest = deleteCollectionRequest; return this; } + + private DeletecollectionRequest buildRequest() { + + DeletecollectionRequest request = new DeletecollectionRequest(locale, + deleteCollectionRequest); + + return request; + } + public DeletecollectionResponse call() { - RequestOperation operation + RequestOperation operation = new Deletecollection.Sync(sdkConfiguration, _headers); + DeletecollectionRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionitemRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionitemRequest.java new file mode 100644 index 00000000..01e481b4 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionitemRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.DeleteCollectionItemRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class DeletecollectionitemRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Data describing the delete operation. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private DeleteCollectionItemRequest deleteCollectionItemRequest; + + @JsonCreator + public DeletecollectionitemRequest( + Optional locale, + DeleteCollectionItemRequest deleteCollectionItemRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(deleteCollectionItemRequest, "deleteCollectionItemRequest"); + this.locale = locale; + this.deleteCollectionItemRequest = deleteCollectionItemRequest; + } + + public DeletecollectionitemRequest( + DeleteCollectionItemRequest deleteCollectionItemRequest) { + this(Optional.empty(), deleteCollectionItemRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Data describing the delete operation. + */ + @JsonIgnore + public DeleteCollectionItemRequest deleteCollectionItemRequest() { + return deleteCollectionItemRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeletecollectionitemRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeletecollectionitemRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Data describing the delete operation. + */ + public DeletecollectionitemRequest withDeleteCollectionItemRequest(DeleteCollectionItemRequest deleteCollectionItemRequest) { + Utils.checkNotNull(deleteCollectionItemRequest, "deleteCollectionItemRequest"); + this.deleteCollectionItemRequest = deleteCollectionItemRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeletecollectionitemRequest other = (DeletecollectionitemRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.deleteCollectionItemRequest, other.deleteCollectionItemRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, deleteCollectionItemRequest); + } + + @Override + public String toString() { + return Utils.toString(DeletecollectionitemRequest.class, + "locale", locale, + "deleteCollectionItemRequest", deleteCollectionItemRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private DeleteCollectionItemRequest deleteCollectionItemRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Data describing the delete operation. + */ + public Builder deleteCollectionItemRequest(DeleteCollectionItemRequest deleteCollectionItemRequest) { + Utils.checkNotNull(deleteCollectionItemRequest, "deleteCollectionItemRequest"); + this.deleteCollectionItemRequest = deleteCollectionItemRequest; + return this; + } + + public DeletecollectionitemRequest build() { + + return new DeletecollectionitemRequest( + locale, deleteCollectionItemRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionitemRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionitemRequestBuilder.java index 03b54da7..7439eb79 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionitemRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeletecollectionitemRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Deletecollectionitem; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeletecollectionitemRequestBuilder { - private DeleteCollectionItemRequest request; + private Optional locale = Optional.empty(); + private DeleteCollectionItemRequest deleteCollectionItemRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public DeletecollectionitemRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public DeletecollectionitemRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeletecollectionitemRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public DeletecollectionitemRequestBuilder request(DeleteCollectionItemRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public DeletecollectionitemRequestBuilder deleteCollectionItemRequest(DeleteCollectionItemRequest deleteCollectionItemRequest) { + Utils.checkNotNull(deleteCollectionItemRequest, "deleteCollectionItemRequest"); + this.deleteCollectionItemRequest = deleteCollectionItemRequest; return this; } + + private DeletecollectionitemRequest buildRequest() { + + DeletecollectionitemRequest request = new DeletecollectionitemRequest(locale, + deleteCollectionItemRequest); + + return request; + } + public DeletecollectionitemResponse call() { - RequestOperation operation + RequestOperation operation = new Deletecollectionitem.Sync(sdkConfiguration, _headers); + DeletecollectionitemRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteshortcutRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteshortcutRequest.java new file mode 100644 index 00000000..28b2e7a6 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteshortcutRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.DeleteShortcutRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class DeleteshortcutRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * DeleteShortcut request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private DeleteShortcutRequest deleteShortcutRequest; + + @JsonCreator + public DeleteshortcutRequest( + Optional locale, + DeleteShortcutRequest deleteShortcutRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(deleteShortcutRequest, "deleteShortcutRequest"); + this.locale = locale; + this.deleteShortcutRequest = deleteShortcutRequest; + } + + public DeleteshortcutRequest( + DeleteShortcutRequest deleteShortcutRequest) { + this(Optional.empty(), deleteShortcutRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * DeleteShortcut request + */ + @JsonIgnore + public DeleteShortcutRequest deleteShortcutRequest() { + return deleteShortcutRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeleteshortcutRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public DeleteshortcutRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * DeleteShortcut request + */ + public DeleteshortcutRequest withDeleteShortcutRequest(DeleteShortcutRequest deleteShortcutRequest) { + Utils.checkNotNull(deleteShortcutRequest, "deleteShortcutRequest"); + this.deleteShortcutRequest = deleteShortcutRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteshortcutRequest other = (DeleteshortcutRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.deleteShortcutRequest, other.deleteShortcutRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, deleteShortcutRequest); + } + + @Override + public String toString() { + return Utils.toString(DeleteshortcutRequest.class, + "locale", locale, + "deleteShortcutRequest", deleteShortcutRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private DeleteShortcutRequest deleteShortcutRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * DeleteShortcut request + */ + public Builder deleteShortcutRequest(DeleteShortcutRequest deleteShortcutRequest) { + Utils.checkNotNull(deleteShortcutRequest, "deleteShortcutRequest"); + this.deleteShortcutRequest = deleteShortcutRequest; + return this; + } + + public DeleteshortcutRequest build() { + + return new DeleteshortcutRequest( + locale, deleteShortcutRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteshortcutRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteshortcutRequestBuilder.java index 53c02652..18ef890b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteshortcutRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/DeleteshortcutRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Deleteshortcut; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class DeleteshortcutRequestBuilder { - private DeleteShortcutRequest request; + private Optional locale = Optional.empty(); + private DeleteShortcutRequest deleteShortcutRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public DeleteshortcutRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public DeleteshortcutRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeleteshortcutRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public DeleteshortcutRequestBuilder request(DeleteShortcutRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public DeleteshortcutRequestBuilder deleteShortcutRequest(DeleteShortcutRequest deleteShortcutRequest) { + Utils.checkNotNull(deleteShortcutRequest, "deleteShortcutRequest"); + this.deleteShortcutRequest = deleteShortcutRequest; return this; } + + private DeleteshortcutRequest buildRequest() { + + DeleteshortcutRequest request = new DeleteshortcutRequest(locale, + deleteShortcutRequest); + + return request; + } + public DeleteshortcutResponse call() { - RequestOperation operation + RequestOperation operation = new Deleteshortcut.Sync(sdkConfiguration, _headers); + DeleteshortcutRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditanswerRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditanswerRequest.java new file mode 100644 index 00000000..a21001d9 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditanswerRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.EditAnswerRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class EditanswerRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * EditAnswer request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private EditAnswerRequest editAnswerRequest; + + @JsonCreator + public EditanswerRequest( + Optional locale, + EditAnswerRequest editAnswerRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(editAnswerRequest, "editAnswerRequest"); + this.locale = locale; + this.editAnswerRequest = editAnswerRequest; + } + + public EditanswerRequest( + EditAnswerRequest editAnswerRequest) { + this(Optional.empty(), editAnswerRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * EditAnswer request + */ + @JsonIgnore + public EditAnswerRequest editAnswerRequest() { + return editAnswerRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public EditanswerRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public EditanswerRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * EditAnswer request + */ + public EditanswerRequest withEditAnswerRequest(EditAnswerRequest editAnswerRequest) { + Utils.checkNotNull(editAnswerRequest, "editAnswerRequest"); + this.editAnswerRequest = editAnswerRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EditanswerRequest other = (EditanswerRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.editAnswerRequest, other.editAnswerRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, editAnswerRequest); + } + + @Override + public String toString() { + return Utils.toString(EditanswerRequest.class, + "locale", locale, + "editAnswerRequest", editAnswerRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private EditAnswerRequest editAnswerRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * EditAnswer request + */ + public Builder editAnswerRequest(EditAnswerRequest editAnswerRequest) { + Utils.checkNotNull(editAnswerRequest, "editAnswerRequest"); + this.editAnswerRequest = editAnswerRequest; + return this; + } + + public EditanswerRequest build() { + + return new EditanswerRequest( + locale, editAnswerRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditanswerRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditanswerRequestBuilder.java index bbae853f..f2427208 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditanswerRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditanswerRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Editanswer; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class EditanswerRequestBuilder { - private EditAnswerRequest request; + private Optional locale = Optional.empty(); + private EditAnswerRequest editAnswerRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public EditanswerRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public EditanswerRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public EditanswerRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public EditanswerRequestBuilder request(EditAnswerRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public EditanswerRequestBuilder editAnswerRequest(EditAnswerRequest editAnswerRequest) { + Utils.checkNotNull(editAnswerRequest, "editAnswerRequest"); + this.editAnswerRequest = editAnswerRequest; return this; } + + private EditanswerRequest buildRequest() { + + EditanswerRequest request = new EditanswerRequest(locale, + editAnswerRequest); + + return request; + } + public EditanswerResponse call() { - RequestOperation operation + RequestOperation operation = new Editanswer.Sync(sdkConfiguration, _headers); + EditanswerRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionRequest.java new file mode 100644 index 00000000..45d9f278 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.EditCollectionRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class EditcollectionRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Collection content plus any additional metadata for the request. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private EditCollectionRequest editCollectionRequest; + + @JsonCreator + public EditcollectionRequest( + Optional locale, + EditCollectionRequest editCollectionRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(editCollectionRequest, "editCollectionRequest"); + this.locale = locale; + this.editCollectionRequest = editCollectionRequest; + } + + public EditcollectionRequest( + EditCollectionRequest editCollectionRequest) { + this(Optional.empty(), editCollectionRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Collection content plus any additional metadata for the request. + */ + @JsonIgnore + public EditCollectionRequest editCollectionRequest() { + return editCollectionRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public EditcollectionRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public EditcollectionRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Collection content plus any additional metadata for the request. + */ + public EditcollectionRequest withEditCollectionRequest(EditCollectionRequest editCollectionRequest) { + Utils.checkNotNull(editCollectionRequest, "editCollectionRequest"); + this.editCollectionRequest = editCollectionRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EditcollectionRequest other = (EditcollectionRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.editCollectionRequest, other.editCollectionRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, editCollectionRequest); + } + + @Override + public String toString() { + return Utils.toString(EditcollectionRequest.class, + "locale", locale, + "editCollectionRequest", editCollectionRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private EditCollectionRequest editCollectionRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Collection content plus any additional metadata for the request. + */ + public Builder editCollectionRequest(EditCollectionRequest editCollectionRequest) { + Utils.checkNotNull(editCollectionRequest, "editCollectionRequest"); + this.editCollectionRequest = editCollectionRequest; + return this; + } + + public EditcollectionRequest build() { + + return new EditcollectionRequest( + locale, editCollectionRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionRequestBuilder.java index 2886f145..512104eb 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Editcollection; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class EditcollectionRequestBuilder { - private EditCollectionRequest request; + private Optional locale = Optional.empty(); + private EditCollectionRequest editCollectionRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public EditcollectionRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public EditcollectionRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public EditcollectionRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public EditcollectionRequestBuilder request(EditCollectionRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public EditcollectionRequestBuilder editCollectionRequest(EditCollectionRequest editCollectionRequest) { + Utils.checkNotNull(editCollectionRequest, "editCollectionRequest"); + this.editCollectionRequest = editCollectionRequest; return this; } + + private EditcollectionRequest buildRequest() { + + EditcollectionRequest request = new EditcollectionRequest(locale, + editCollectionRequest); + + return request; + } + public EditcollectionResponse call() { - RequestOperation operation + RequestOperation operation = new Editcollection.Sync(sdkConfiguration, _headers); + EditcollectionRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionitemRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionitemRequest.java new file mode 100644 index 00000000..8b024fd0 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionitemRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.EditCollectionItemRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class EditcollectionitemRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Edit Collection Items request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private EditCollectionItemRequest editCollectionItemRequest; + + @JsonCreator + public EditcollectionitemRequest( + Optional locale, + EditCollectionItemRequest editCollectionItemRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(editCollectionItemRequest, "editCollectionItemRequest"); + this.locale = locale; + this.editCollectionItemRequest = editCollectionItemRequest; + } + + public EditcollectionitemRequest( + EditCollectionItemRequest editCollectionItemRequest) { + this(Optional.empty(), editCollectionItemRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Edit Collection Items request + */ + @JsonIgnore + public EditCollectionItemRequest editCollectionItemRequest() { + return editCollectionItemRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public EditcollectionitemRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public EditcollectionitemRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Edit Collection Items request + */ + public EditcollectionitemRequest withEditCollectionItemRequest(EditCollectionItemRequest editCollectionItemRequest) { + Utils.checkNotNull(editCollectionItemRequest, "editCollectionItemRequest"); + this.editCollectionItemRequest = editCollectionItemRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EditcollectionitemRequest other = (EditcollectionitemRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.editCollectionItemRequest, other.editCollectionItemRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, editCollectionItemRequest); + } + + @Override + public String toString() { + return Utils.toString(EditcollectionitemRequest.class, + "locale", locale, + "editCollectionItemRequest", editCollectionItemRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private EditCollectionItemRequest editCollectionItemRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Edit Collection Items request + */ + public Builder editCollectionItemRequest(EditCollectionItemRequest editCollectionItemRequest) { + Utils.checkNotNull(editCollectionItemRequest, "editCollectionItemRequest"); + this.editCollectionItemRequest = editCollectionItemRequest; + return this; + } + + public EditcollectionitemRequest build() { + + return new EditcollectionitemRequest( + locale, editCollectionItemRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionitemRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionitemRequestBuilder.java index c0a51ade..d8ce095a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionitemRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditcollectionitemRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Editcollectionitem; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class EditcollectionitemRequestBuilder { - private EditCollectionItemRequest request; + private Optional locale = Optional.empty(); + private EditCollectionItemRequest editCollectionItemRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public EditcollectionitemRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public EditcollectionitemRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public EditcollectionitemRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public EditcollectionitemRequestBuilder request(EditCollectionItemRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public EditcollectionitemRequestBuilder editCollectionItemRequest(EditCollectionItemRequest editCollectionItemRequest) { + Utils.checkNotNull(editCollectionItemRequest, "editCollectionItemRequest"); + this.editCollectionItemRequest = editCollectionItemRequest; return this; } + + private EditcollectionitemRequest buildRequest() { + + EditcollectionitemRequest request = new EditcollectionitemRequest(locale, + editCollectionItemRequest); + + return request; + } + public EditcollectionitemResponse call() { - RequestOperation operation + RequestOperation operation = new Editcollectionitem.Sync(sdkConfiguration, _headers); + EditcollectionitemRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditpinRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditpinRequest.java new file mode 100644 index 00000000..60ec9cca --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditpinRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.EditPinRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class EditpinRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Edit pins request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private EditPinRequest editPinRequest; + + @JsonCreator + public EditpinRequest( + Optional locale, + EditPinRequest editPinRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(editPinRequest, "editPinRequest"); + this.locale = locale; + this.editPinRequest = editPinRequest; + } + + public EditpinRequest( + EditPinRequest editPinRequest) { + this(Optional.empty(), editPinRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Edit pins request + */ + @JsonIgnore + public EditPinRequest editPinRequest() { + return editPinRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public EditpinRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public EditpinRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Edit pins request + */ + public EditpinRequest withEditPinRequest(EditPinRequest editPinRequest) { + Utils.checkNotNull(editPinRequest, "editPinRequest"); + this.editPinRequest = editPinRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EditpinRequest other = (EditpinRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.editPinRequest, other.editPinRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, editPinRequest); + } + + @Override + public String toString() { + return Utils.toString(EditpinRequest.class, + "locale", locale, + "editPinRequest", editPinRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private EditPinRequest editPinRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Edit pins request + */ + public Builder editPinRequest(EditPinRequest editPinRequest) { + Utils.checkNotNull(editPinRequest, "editPinRequest"); + this.editPinRequest = editPinRequest; + return this; + } + + public EditpinRequest build() { + + return new EditpinRequest( + locale, editPinRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditpinRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditpinRequestBuilder.java index 48b4986f..024f742a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditpinRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/EditpinRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Editpin; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class EditpinRequestBuilder { - private EditPinRequest request; + private Optional locale = Optional.empty(); + private EditPinRequest editPinRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public EditpinRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public EditpinRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public EditpinRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public EditpinRequestBuilder request(EditPinRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public EditpinRequestBuilder editPinRequest(EditPinRequest editPinRequest) { + Utils.checkNotNull(editPinRequest, "editPinRequest"); + this.editPinRequest = editPinRequest; return this; } + + private EditpinRequest buildRequest() { + + EditpinRequest request = new EditpinRequest(locale, + editPinRequest); + + return request; + } + public EditpinResponse call() { - RequestOperation operation + RequestOperation operation = new Editpin.Sync(sdkConfiguration, _headers); + EditpinRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/FeedRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/FeedRequest.java new file mode 100644 index 00000000..cbfbd526 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/FeedRequest.java @@ -0,0 +1,184 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class FeedRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Includes request params, client data and more for making user's feed. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private com.glean.api_client.glean_api_client.models.components.FeedRequest feedRequest; + + @JsonCreator + public FeedRequest( + Optional locale, + com.glean.api_client.glean_api_client.models.components.FeedRequest feedRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(feedRequest, "feedRequest"); + this.locale = locale; + this.feedRequest = feedRequest; + } + + public FeedRequest( + com.glean.api_client.glean_api_client.models.components.FeedRequest feedRequest) { + this(Optional.empty(), feedRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Includes request params, client data and more for making user's feed. + */ + @JsonIgnore + public com.glean.api_client.glean_api_client.models.components.FeedRequest feedRequest() { + return feedRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public FeedRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public FeedRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Includes request params, client data and more for making user's feed. + */ + public FeedRequest withFeedRequest(com.glean.api_client.glean_api_client.models.components.FeedRequest feedRequest) { + Utils.checkNotNull(feedRequest, "feedRequest"); + this.feedRequest = feedRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FeedRequest other = (FeedRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.feedRequest, other.feedRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, feedRequest); + } + + @Override + public String toString() { + return Utils.toString(FeedRequest.class, + "locale", locale, + "feedRequest", feedRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private com.glean.api_client.glean_api_client.models.components.FeedRequest feedRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Includes request params, client data and more for making user's feed. + */ + public Builder feedRequest(com.glean.api_client.glean_api_client.models.components.FeedRequest feedRequest) { + Utils.checkNotNull(feedRequest, "feedRequest"); + this.feedRequest = feedRequest; + return this; + } + + public FeedRequest build() { + + return new FeedRequest( + locale, feedRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/FeedRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/FeedRequestBuilder.java index 0ca73873..9845f2c5 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/FeedRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/FeedRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Feed; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class FeedRequestBuilder { - private FeedRequest request; + private Optional locale = Optional.empty(); + private FeedRequest feedRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public FeedRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public FeedRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public FeedRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public FeedRequestBuilder request(FeedRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public FeedRequestBuilder feedRequest(FeedRequest feedRequest) { + Utils.checkNotNull(feedRequest, "feedRequest"); + this.feedRequest = feedRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.FeedRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.FeedRequest request = new com.glean.api_client.glean_api_client.models.operations.FeedRequest(locale, + feedRequest); + + return request; + } + public FeedResponse call() { - RequestOperation operation + RequestOperation operation = new Feed.Sync(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.FeedRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } 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 4336a3bb..bea9866b 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 @@ -14,6 +14,15 @@ public class GetAgentRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -29,17 +38,31 @@ public class GetAgentRequest { @JsonCreator public GetAgentRequest( + Optional locale, Optional timezoneOffset, String agentId) { + Utils.checkNotNull(locale, "locale"); Utils.checkNotNull(timezoneOffset, "timezoneOffset"); Utils.checkNotNull(agentId, "agentId"); + this.locale = locale; this.timezoneOffset = timezoneOffset; this.agentId = agentId; } public GetAgentRequest( String agentId) { - this(Optional.empty(), agentId); + this(Optional.empty(), Optional.empty(), agentId); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; } /** @@ -64,6 +87,31 @@ public static Builder builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetAgentRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetAgentRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -104,6 +152,7 @@ public boolean equals(java.lang.Object o) { } GetAgentRequest other = (GetAgentRequest) o; return + Utils.enhancedDeepEquals(this.locale, other.locale) && Utils.enhancedDeepEquals(this.timezoneOffset, other.timezoneOffset) && Utils.enhancedDeepEquals(this.agentId, other.agentId); } @@ -111,12 +160,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - timezoneOffset, agentId); + locale, timezoneOffset, agentId); } @Override public String toString() { return Utils.toString(GetAgentRequest.class, + "locale", locale, "timezoneOffset", timezoneOffset, "agentId", agentId); } @@ -124,6 +174,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional locale = Optional.empty(); + private Optional timezoneOffset = Optional.empty(); private String agentId; @@ -133,6 +185,31 @@ private Builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -166,7 +243,7 @@ public Builder agentId(String agentId) { public GetAgentRequest build() { return new GetAgentRequest( - timezoneOffset, agentId); + locale, timezoneOffset, agentId); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentRequestBuilder.java index 12e5a29d..f8ef0b7f 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentRequestBuilder.java @@ -15,6 +15,7 @@ public class GetAgentRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private String agentId; private final SDKConfiguration sdkConfiguration; @@ -24,6 +25,18 @@ public GetAgentRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public GetAgentRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetAgentRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public GetAgentRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -45,7 +58,8 @@ public GetAgentRequestBuilder agentId(String agentId) { private GetAgentRequest buildRequest() { - GetAgentRequest request = new GetAgentRequest(timezoneOffset, + GetAgentRequest request = new GetAgentRequest(locale, + timezoneOffset, agentId); return request; 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 2a7a3900..6206e105 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 @@ -14,6 +14,15 @@ public class GetAgentSchemasRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -29,17 +38,31 @@ public class GetAgentSchemasRequest { @JsonCreator public GetAgentSchemasRequest( + Optional locale, Optional timezoneOffset, String agentId) { + Utils.checkNotNull(locale, "locale"); Utils.checkNotNull(timezoneOffset, "timezoneOffset"); Utils.checkNotNull(agentId, "agentId"); + this.locale = locale; this.timezoneOffset = timezoneOffset; this.agentId = agentId; } public GetAgentSchemasRequest( String agentId) { - this(Optional.empty(), agentId); + this(Optional.empty(), Optional.empty(), agentId); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; } /** @@ -64,6 +87,31 @@ public static Builder builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetAgentSchemasRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetAgentSchemasRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -104,6 +152,7 @@ public boolean equals(java.lang.Object o) { } GetAgentSchemasRequest other = (GetAgentSchemasRequest) o; return + Utils.enhancedDeepEquals(this.locale, other.locale) && Utils.enhancedDeepEquals(this.timezoneOffset, other.timezoneOffset) && Utils.enhancedDeepEquals(this.agentId, other.agentId); } @@ -111,12 +160,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - timezoneOffset, agentId); + locale, timezoneOffset, agentId); } @Override public String toString() { return Utils.toString(GetAgentSchemasRequest.class, + "locale", locale, "timezoneOffset", timezoneOffset, "agentId", agentId); } @@ -124,6 +174,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional locale = Optional.empty(); + private Optional timezoneOffset = Optional.empty(); private String agentId; @@ -133,6 +185,31 @@ private Builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -166,7 +243,7 @@ public Builder agentId(String agentId) { public GetAgentSchemasRequest build() { return new GetAgentSchemasRequest( - timezoneOffset, agentId); + locale, timezoneOffset, agentId); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentSchemasRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentSchemasRequestBuilder.java index 085c171b..a3899d16 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentSchemasRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetAgentSchemasRequestBuilder.java @@ -15,6 +15,7 @@ public class GetAgentSchemasRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private String agentId; private final SDKConfiguration sdkConfiguration; @@ -24,6 +25,18 @@ public GetAgentSchemasRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public GetAgentSchemasRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetAgentSchemasRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public GetAgentSchemasRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -45,7 +58,8 @@ public GetAgentSchemasRequestBuilder agentId(String agentId) { private GetAgentSchemasRequest buildRequest() { - GetAgentSchemasRequest request = new GetAgentSchemasRequest(timezoneOffset, + GetAgentSchemasRequest request = new GetAgentSchemasRequest(locale, + timezoneOffset, agentId); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetanswerRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetanswerRequest.java new file mode 100644 index 00000000..d07a4f1b --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetanswerRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.GetAnswerRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class GetanswerRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * GetAnswer request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private GetAnswerRequest getAnswerRequest; + + @JsonCreator + public GetanswerRequest( + Optional locale, + GetAnswerRequest getAnswerRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(getAnswerRequest, "getAnswerRequest"); + this.locale = locale; + this.getAnswerRequest = getAnswerRequest; + } + + public GetanswerRequest( + GetAnswerRequest getAnswerRequest) { + this(Optional.empty(), getAnswerRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * GetAnswer request + */ + @JsonIgnore + public GetAnswerRequest getAnswerRequest() { + return getAnswerRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetanswerRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetanswerRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * GetAnswer request + */ + public GetanswerRequest withGetAnswerRequest(GetAnswerRequest getAnswerRequest) { + Utils.checkNotNull(getAnswerRequest, "getAnswerRequest"); + this.getAnswerRequest = getAnswerRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetanswerRequest other = (GetanswerRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.getAnswerRequest, other.getAnswerRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, getAnswerRequest); + } + + @Override + public String toString() { + return Utils.toString(GetanswerRequest.class, + "locale", locale, + "getAnswerRequest", getAnswerRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private GetAnswerRequest getAnswerRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * GetAnswer request + */ + public Builder getAnswerRequest(GetAnswerRequest getAnswerRequest) { + Utils.checkNotNull(getAnswerRequest, "getAnswerRequest"); + this.getAnswerRequest = getAnswerRequest; + return this; + } + + public GetanswerRequest build() { + + return new GetanswerRequest( + locale, getAnswerRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetanswerRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetanswerRequestBuilder.java index ed86573f..8ff4325a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetanswerRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetanswerRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Getanswer; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetanswerRequestBuilder { - private GetAnswerRequest request; + private Optional locale = Optional.empty(); + private GetAnswerRequest getAnswerRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetanswerRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetanswerRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetanswerRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public GetanswerRequestBuilder request(GetAnswerRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetanswerRequestBuilder getAnswerRequest(GetAnswerRequest getAnswerRequest) { + Utils.checkNotNull(getAnswerRequest, "getAnswerRequest"); + this.getAnswerRequest = getAnswerRequest; return this; } + + private GetanswerRequest buildRequest() { + + GetanswerRequest request = new GetanswerRequest(locale, + getAnswerRequest); + + return request; + } + public GetanswerResponse call() { - RequestOperation operation + RequestOperation operation = new Getanswer.Sync(sdkConfiguration, _headers); + GetanswerRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } 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 c19d2e05..990bb8a0 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 @@ -15,6 +15,15 @@ public class GetchatRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -28,17 +37,31 @@ public class GetchatRequest { @JsonCreator public GetchatRequest( + Optional locale, Optional timezoneOffset, GetChatRequest getChatRequest) { + Utils.checkNotNull(locale, "locale"); Utils.checkNotNull(timezoneOffset, "timezoneOffset"); Utils.checkNotNull(getChatRequest, "getChatRequest"); + this.locale = locale; this.timezoneOffset = timezoneOffset; this.getChatRequest = getChatRequest; } public GetchatRequest( GetChatRequest getChatRequest) { - this(Optional.empty(), getChatRequest); + this(Optional.empty(), Optional.empty(), getChatRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; } /** @@ -60,6 +83,31 @@ public static Builder builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetchatRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetchatRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -97,6 +145,7 @@ public boolean equals(java.lang.Object o) { } GetchatRequest other = (GetchatRequest) o; return + Utils.enhancedDeepEquals(this.locale, other.locale) && Utils.enhancedDeepEquals(this.timezoneOffset, other.timezoneOffset) && Utils.enhancedDeepEquals(this.getChatRequest, other.getChatRequest); } @@ -104,12 +153,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - timezoneOffset, getChatRequest); + locale, timezoneOffset, getChatRequest); } @Override public String toString() { return Utils.toString(GetchatRequest.class, + "locale", locale, "timezoneOffset", timezoneOffset, "getChatRequest", getChatRequest); } @@ -117,6 +167,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional locale = Optional.empty(); + private Optional timezoneOffset = Optional.empty(); private GetChatRequest getChatRequest; @@ -126,6 +178,31 @@ private Builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -156,7 +233,7 @@ public Builder getChatRequest(GetChatRequest getChatRequest) { public GetchatRequest build() { return new GetchatRequest( - timezoneOffset, getChatRequest); + locale, timezoneOffset, getChatRequest); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatRequestBuilder.java index 7ee3d3bf..80b53cba 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatRequestBuilder.java @@ -11,10 +11,12 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; public class GetchatRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private GetChatRequest getChatRequest; private final SDKConfiguration sdkConfiguration; @@ -24,6 +26,18 @@ public GetchatRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public GetchatRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetchatRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public GetchatRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -45,7 +59,8 @@ public GetchatRequestBuilder getChatRequest(GetChatRequest getChatRequest) { private GetchatRequest buildRequest() { - GetchatRequest request = new GetchatRequest(timezoneOffset, + GetchatRequest request = new GetchatRequest(locale, + timezoneOffset, getChatRequest); return request; 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 bf95bda9..c058d362 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 @@ -15,6 +15,15 @@ public class GetchatapplicationRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -28,17 +37,31 @@ public class GetchatapplicationRequest { @JsonCreator public GetchatapplicationRequest( + Optional locale, Optional timezoneOffset, GetChatApplicationRequest getChatApplicationRequest) { + Utils.checkNotNull(locale, "locale"); Utils.checkNotNull(timezoneOffset, "timezoneOffset"); Utils.checkNotNull(getChatApplicationRequest, "getChatApplicationRequest"); + this.locale = locale; this.timezoneOffset = timezoneOffset; this.getChatApplicationRequest = getChatApplicationRequest; } public GetchatapplicationRequest( GetChatApplicationRequest getChatApplicationRequest) { - this(Optional.empty(), getChatApplicationRequest); + this(Optional.empty(), Optional.empty(), getChatApplicationRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; } /** @@ -60,6 +83,31 @@ public static Builder builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetchatapplicationRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetchatapplicationRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -97,6 +145,7 @@ public boolean equals(java.lang.Object o) { } GetchatapplicationRequest other = (GetchatapplicationRequest) o; return + Utils.enhancedDeepEquals(this.locale, other.locale) && Utils.enhancedDeepEquals(this.timezoneOffset, other.timezoneOffset) && Utils.enhancedDeepEquals(this.getChatApplicationRequest, other.getChatApplicationRequest); } @@ -104,12 +153,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - timezoneOffset, getChatApplicationRequest); + locale, timezoneOffset, getChatApplicationRequest); } @Override public String toString() { return Utils.toString(GetchatapplicationRequest.class, + "locale", locale, "timezoneOffset", timezoneOffset, "getChatApplicationRequest", getChatApplicationRequest); } @@ -117,6 +167,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional locale = Optional.empty(); + private Optional timezoneOffset = Optional.empty(); private GetChatApplicationRequest getChatApplicationRequest; @@ -126,6 +178,31 @@ private Builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -156,7 +233,7 @@ public Builder getChatApplicationRequest(GetChatApplicationRequest getChatApplic public GetchatapplicationRequest build() { return new GetchatapplicationRequest( - timezoneOffset, getChatApplicationRequest); + locale, timezoneOffset, getChatApplicationRequest); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatapplicationRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatapplicationRequestBuilder.java index ab3f2c07..e82bcd21 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatapplicationRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatapplicationRequestBuilder.java @@ -11,10 +11,12 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; public class GetchatapplicationRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private GetChatApplicationRequest getChatApplicationRequest; private final SDKConfiguration sdkConfiguration; @@ -24,6 +26,18 @@ public GetchatapplicationRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public GetchatapplicationRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetchatapplicationRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public GetchatapplicationRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -45,7 +59,8 @@ public GetchatapplicationRequestBuilder getChatApplicationRequest(GetChatApplica private GetchatapplicationRequest buildRequest() { - GetchatapplicationRequest request = new GetchatapplicationRequest(timezoneOffset, + GetchatapplicationRequest request = new GetchatapplicationRequest(locale, + timezoneOffset, getChatApplicationRequest); return request; 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 e8dc151d..1c003b67 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 @@ -15,6 +15,15 @@ public class GetchatfilesRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -28,17 +37,31 @@ public class GetchatfilesRequest { @JsonCreator public GetchatfilesRequest( + Optional locale, Optional timezoneOffset, GetChatFilesRequest getChatFilesRequest) { + Utils.checkNotNull(locale, "locale"); Utils.checkNotNull(timezoneOffset, "timezoneOffset"); Utils.checkNotNull(getChatFilesRequest, "getChatFilesRequest"); + this.locale = locale; this.timezoneOffset = timezoneOffset; this.getChatFilesRequest = getChatFilesRequest; } public GetchatfilesRequest( GetChatFilesRequest getChatFilesRequest) { - this(Optional.empty(), getChatFilesRequest); + this(Optional.empty(), Optional.empty(), getChatFilesRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; } /** @@ -60,6 +83,31 @@ public static Builder builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetchatfilesRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetchatfilesRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -97,6 +145,7 @@ public boolean equals(java.lang.Object o) { } GetchatfilesRequest other = (GetchatfilesRequest) o; return + Utils.enhancedDeepEquals(this.locale, other.locale) && Utils.enhancedDeepEquals(this.timezoneOffset, other.timezoneOffset) && Utils.enhancedDeepEquals(this.getChatFilesRequest, other.getChatFilesRequest); } @@ -104,12 +153,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - timezoneOffset, getChatFilesRequest); + locale, timezoneOffset, getChatFilesRequest); } @Override public String toString() { return Utils.toString(GetchatfilesRequest.class, + "locale", locale, "timezoneOffset", timezoneOffset, "getChatFilesRequest", getChatFilesRequest); } @@ -117,6 +167,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional locale = Optional.empty(); + private Optional timezoneOffset = Optional.empty(); private GetChatFilesRequest getChatFilesRequest; @@ -126,6 +178,31 @@ private Builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -156,7 +233,7 @@ public Builder getChatFilesRequest(GetChatFilesRequest getChatFilesRequest) { public GetchatfilesRequest build() { return new GetchatfilesRequest( - timezoneOffset, getChatFilesRequest); + locale, timezoneOffset, getChatFilesRequest); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatfilesRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatfilesRequestBuilder.java index 3a3f54c3..7dd5f66a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatfilesRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetchatfilesRequestBuilder.java @@ -11,10 +11,12 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; public class GetchatfilesRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private GetChatFilesRequest getChatFilesRequest; private final SDKConfiguration sdkConfiguration; @@ -24,6 +26,18 @@ public GetchatfilesRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public GetchatfilesRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetchatfilesRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public GetchatfilesRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -45,7 +59,8 @@ public GetchatfilesRequestBuilder getChatFilesRequest(GetChatFilesRequest getCha private GetchatfilesRequest buildRequest() { - GetchatfilesRequest request = new GetchatfilesRequest(timezoneOffset, + GetchatfilesRequest request = new GetchatfilesRequest(locale, + timezoneOffset, getChatFilesRequest); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetcollectionRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetcollectionRequest.java new file mode 100644 index 00000000..a8d4a92e --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetcollectionRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.GetCollectionRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class GetcollectionRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * GetCollection request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private GetCollectionRequest getCollectionRequest; + + @JsonCreator + public GetcollectionRequest( + Optional locale, + GetCollectionRequest getCollectionRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(getCollectionRequest, "getCollectionRequest"); + this.locale = locale; + this.getCollectionRequest = getCollectionRequest; + } + + public GetcollectionRequest( + GetCollectionRequest getCollectionRequest) { + this(Optional.empty(), getCollectionRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * GetCollection request + */ + @JsonIgnore + public GetCollectionRequest getCollectionRequest() { + return getCollectionRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetcollectionRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetcollectionRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * GetCollection request + */ + public GetcollectionRequest withGetCollectionRequest(GetCollectionRequest getCollectionRequest) { + Utils.checkNotNull(getCollectionRequest, "getCollectionRequest"); + this.getCollectionRequest = getCollectionRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetcollectionRequest other = (GetcollectionRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.getCollectionRequest, other.getCollectionRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, getCollectionRequest); + } + + @Override + public String toString() { + return Utils.toString(GetcollectionRequest.class, + "locale", locale, + "getCollectionRequest", getCollectionRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private GetCollectionRequest getCollectionRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * GetCollection request + */ + public Builder getCollectionRequest(GetCollectionRequest getCollectionRequest) { + Utils.checkNotNull(getCollectionRequest, "getCollectionRequest"); + this.getCollectionRequest = getCollectionRequest; + return this; + } + + public GetcollectionRequest build() { + + return new GetcollectionRequest( + locale, getCollectionRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetcollectionRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetcollectionRequestBuilder.java index a9ea86b1..c06e833b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetcollectionRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetcollectionRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Getcollection; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetcollectionRequestBuilder { - private GetCollectionRequest request; + private Optional locale = Optional.empty(); + private GetCollectionRequest getCollectionRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetcollectionRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetcollectionRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetcollectionRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public GetcollectionRequestBuilder request(GetCollectionRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetcollectionRequestBuilder getCollectionRequest(GetCollectionRequest getCollectionRequest) { + Utils.checkNotNull(getCollectionRequest, "getCollectionRequest"); + this.getCollectionRequest = getCollectionRequest; return this; } + + private GetcollectionRequest buildRequest() { + + GetcollectionRequest request = new GetcollectionRequest(locale, + getCollectionRequest); + + return request; + } + public GetcollectionResponse call() { - RequestOperation operation + RequestOperation operation = new Getcollection.Sync(sdkConfiguration, _headers); + GetcollectionRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocpermissionsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocpermissionsRequest.java new file mode 100644 index 00000000..f03a5524 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocpermissionsRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.GetDocPermissionsRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class GetdocpermissionsRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Document permissions request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private GetDocPermissionsRequest getDocPermissionsRequest; + + @JsonCreator + public GetdocpermissionsRequest( + Optional locale, + GetDocPermissionsRequest getDocPermissionsRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(getDocPermissionsRequest, "getDocPermissionsRequest"); + this.locale = locale; + this.getDocPermissionsRequest = getDocPermissionsRequest; + } + + public GetdocpermissionsRequest( + GetDocPermissionsRequest getDocPermissionsRequest) { + this(Optional.empty(), getDocPermissionsRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Document permissions request + */ + @JsonIgnore + public GetDocPermissionsRequest getDocPermissionsRequest() { + return getDocPermissionsRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetdocpermissionsRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetdocpermissionsRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Document permissions request + */ + public GetdocpermissionsRequest withGetDocPermissionsRequest(GetDocPermissionsRequest getDocPermissionsRequest) { + Utils.checkNotNull(getDocPermissionsRequest, "getDocPermissionsRequest"); + this.getDocPermissionsRequest = getDocPermissionsRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetdocpermissionsRequest other = (GetdocpermissionsRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.getDocPermissionsRequest, other.getDocPermissionsRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, getDocPermissionsRequest); + } + + @Override + public String toString() { + return Utils.toString(GetdocpermissionsRequest.class, + "locale", locale, + "getDocPermissionsRequest", getDocPermissionsRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private GetDocPermissionsRequest getDocPermissionsRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Document permissions request + */ + public Builder getDocPermissionsRequest(GetDocPermissionsRequest getDocPermissionsRequest) { + Utils.checkNotNull(getDocPermissionsRequest, "getDocPermissionsRequest"); + this.getDocPermissionsRequest = getDocPermissionsRequest; + return this; + } + + public GetdocpermissionsRequest build() { + + return new GetdocpermissionsRequest( + locale, getDocPermissionsRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocpermissionsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocpermissionsRequestBuilder.java index c4460f8a..30a65102 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocpermissionsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocpermissionsRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Getdocpermissions; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetdocpermissionsRequestBuilder { - private GetDocPermissionsRequest request; + private Optional locale = Optional.empty(); + private GetDocPermissionsRequest getDocPermissionsRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetdocpermissionsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetdocpermissionsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetdocpermissionsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public GetdocpermissionsRequestBuilder request(GetDocPermissionsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetdocpermissionsRequestBuilder getDocPermissionsRequest(GetDocPermissionsRequest getDocPermissionsRequest) { + Utils.checkNotNull(getDocPermissionsRequest, "getDocPermissionsRequest"); + this.getDocPermissionsRequest = getDocPermissionsRequest; return this; } + + private GetdocpermissionsRequest buildRequest() { + + GetdocpermissionsRequest request = new GetdocpermissionsRequest(locale, + getDocPermissionsRequest); + + return request; + } + public GetdocpermissionsResponse call() { - RequestOperation operation + RequestOperation operation = new Getdocpermissions.Sync(sdkConfiguration, _headers); + GetdocpermissionsRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsRequest.java new file mode 100644 index 00000000..33dbbf07 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsRequest.java @@ -0,0 +1,205 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.GetDocumentsRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +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.Optional; + + +public class GetdocumentsRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Information about documents requested. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional getDocumentsRequest; + + @JsonCreator + public GetdocumentsRequest( + Optional locale, + Optional getDocumentsRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(getDocumentsRequest, "getDocumentsRequest"); + this.locale = locale; + this.getDocumentsRequest = getDocumentsRequest; + } + + public GetdocumentsRequest() { + this(Optional.empty(), Optional.empty()); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Information about documents requested. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional getDocumentsRequest() { + return (Optional) getDocumentsRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetdocumentsRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetdocumentsRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Information about documents requested. + */ + public GetdocumentsRequest withGetDocumentsRequest(GetDocumentsRequest getDocumentsRequest) { + Utils.checkNotNull(getDocumentsRequest, "getDocumentsRequest"); + this.getDocumentsRequest = Optional.ofNullable(getDocumentsRequest); + return this; + } + + + /** + * Information about documents requested. + */ + public GetdocumentsRequest withGetDocumentsRequest(Optional getDocumentsRequest) { + Utils.checkNotNull(getDocumentsRequest, "getDocumentsRequest"); + this.getDocumentsRequest = getDocumentsRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetdocumentsRequest other = (GetdocumentsRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.getDocumentsRequest, other.getDocumentsRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, getDocumentsRequest); + } + + @Override + public String toString() { + return Utils.toString(GetdocumentsRequest.class, + "locale", locale, + "getDocumentsRequest", getDocumentsRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private Optional getDocumentsRequest = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Information about documents requested. + */ + public Builder getDocumentsRequest(GetDocumentsRequest getDocumentsRequest) { + Utils.checkNotNull(getDocumentsRequest, "getDocumentsRequest"); + this.getDocumentsRequest = Optional.ofNullable(getDocumentsRequest); + return this; + } + + /** + * Information about documents requested. + */ + public Builder getDocumentsRequest(Optional getDocumentsRequest) { + Utils.checkNotNull(getDocumentsRequest, "getDocumentsRequest"); + this.getDocumentsRequest = getDocumentsRequest; + return this; + } + + public GetdocumentsRequest build() { + + return new GetdocumentsRequest( + locale, getDocumentsRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsRequestBuilder.java index 87871890..0d507bf3 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsRequestBuilder.java @@ -10,11 +10,13 @@ import com.glean.api_client.glean_api_client.operations.Getdocuments; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; import java.util.Optional; public class GetdocumentsRequestBuilder { - private Optional request = Optional.empty(); + private Optional locale = Optional.empty(); + private Optional getDocumentsRequest = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -22,22 +24,44 @@ public GetdocumentsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } - public GetdocumentsRequestBuilder request(GetDocumentsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); + public GetdocumentsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); return this; } - public GetdocumentsRequestBuilder request(Optional request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetdocumentsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; return this; } + + public GetdocumentsRequestBuilder getDocumentsRequest(GetDocumentsRequest getDocumentsRequest) { + Utils.checkNotNull(getDocumentsRequest, "getDocumentsRequest"); + this.getDocumentsRequest = Optional.of(getDocumentsRequest); + return this; + } + + public GetdocumentsRequestBuilder getDocumentsRequest(Optional getDocumentsRequest) { + Utils.checkNotNull(getDocumentsRequest, "getDocumentsRequest"); + this.getDocumentsRequest = getDocumentsRequest; + return this; + } + + + private GetdocumentsRequest buildRequest() { + + GetdocumentsRequest request = new GetdocumentsRequest(locale, + getDocumentsRequest); + + return request; + } public GetdocumentsResponse call() { - RequestOperation, GetdocumentsResponse> operation + RequestOperation operation = new Getdocuments.Sync(sdkConfiguration, _headers); + GetdocumentsRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsbyfacetsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsbyfacetsRequest.java new file mode 100644 index 00000000..2e71598e --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsbyfacetsRequest.java @@ -0,0 +1,205 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.GetDocumentsByFacetsRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +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.Optional; + + +public class GetdocumentsbyfacetsRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Information about facet conditions for documents to be retrieved. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private Optional getDocumentsByFacetsRequest; + + @JsonCreator + public GetdocumentsbyfacetsRequest( + Optional locale, + Optional getDocumentsByFacetsRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(getDocumentsByFacetsRequest, "getDocumentsByFacetsRequest"); + this.locale = locale; + this.getDocumentsByFacetsRequest = getDocumentsByFacetsRequest; + } + + public GetdocumentsbyfacetsRequest() { + this(Optional.empty(), Optional.empty()); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Information about facet conditions for documents to be retrieved. + */ + @SuppressWarnings("unchecked") + @JsonIgnore + public Optional getDocumentsByFacetsRequest() { + return (Optional) getDocumentsByFacetsRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetdocumentsbyfacetsRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetdocumentsbyfacetsRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Information about facet conditions for documents to be retrieved. + */ + public GetdocumentsbyfacetsRequest withGetDocumentsByFacetsRequest(GetDocumentsByFacetsRequest getDocumentsByFacetsRequest) { + Utils.checkNotNull(getDocumentsByFacetsRequest, "getDocumentsByFacetsRequest"); + this.getDocumentsByFacetsRequest = Optional.ofNullable(getDocumentsByFacetsRequest); + return this; + } + + + /** + * Information about facet conditions for documents to be retrieved. + */ + public GetdocumentsbyfacetsRequest withGetDocumentsByFacetsRequest(Optional getDocumentsByFacetsRequest) { + Utils.checkNotNull(getDocumentsByFacetsRequest, "getDocumentsByFacetsRequest"); + this.getDocumentsByFacetsRequest = getDocumentsByFacetsRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetdocumentsbyfacetsRequest other = (GetdocumentsbyfacetsRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.getDocumentsByFacetsRequest, other.getDocumentsByFacetsRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, getDocumentsByFacetsRequest); + } + + @Override + public String toString() { + return Utils.toString(GetdocumentsbyfacetsRequest.class, + "locale", locale, + "getDocumentsByFacetsRequest", getDocumentsByFacetsRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private Optional getDocumentsByFacetsRequest = Optional.empty(); + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Information about facet conditions for documents to be retrieved. + */ + public Builder getDocumentsByFacetsRequest(GetDocumentsByFacetsRequest getDocumentsByFacetsRequest) { + Utils.checkNotNull(getDocumentsByFacetsRequest, "getDocumentsByFacetsRequest"); + this.getDocumentsByFacetsRequest = Optional.ofNullable(getDocumentsByFacetsRequest); + return this; + } + + /** + * Information about facet conditions for documents to be retrieved. + */ + public Builder getDocumentsByFacetsRequest(Optional getDocumentsByFacetsRequest) { + Utils.checkNotNull(getDocumentsByFacetsRequest, "getDocumentsByFacetsRequest"); + this.getDocumentsByFacetsRequest = getDocumentsByFacetsRequest; + return this; + } + + public GetdocumentsbyfacetsRequest build() { + + return new GetdocumentsbyfacetsRequest( + locale, getDocumentsByFacetsRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsbyfacetsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsbyfacetsRequestBuilder.java index cdb12b2c..f613c134 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsbyfacetsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetdocumentsbyfacetsRequestBuilder.java @@ -10,11 +10,13 @@ import com.glean.api_client.glean_api_client.operations.Getdocumentsbyfacets; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; import java.util.Optional; public class GetdocumentsbyfacetsRequestBuilder { - private Optional request = Optional.empty(); + private Optional locale = Optional.empty(); + private Optional getDocumentsByFacetsRequest = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -22,22 +24,44 @@ public GetdocumentsbyfacetsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } - public GetdocumentsbyfacetsRequestBuilder request(GetDocumentsByFacetsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); + public GetdocumentsbyfacetsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); return this; } - public GetdocumentsbyfacetsRequestBuilder request(Optional request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetdocumentsbyfacetsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; return this; } + + public GetdocumentsbyfacetsRequestBuilder getDocumentsByFacetsRequest(GetDocumentsByFacetsRequest getDocumentsByFacetsRequest) { + Utils.checkNotNull(getDocumentsByFacetsRequest, "getDocumentsByFacetsRequest"); + this.getDocumentsByFacetsRequest = Optional.of(getDocumentsByFacetsRequest); + return this; + } + + public GetdocumentsbyfacetsRequestBuilder getDocumentsByFacetsRequest(Optional getDocumentsByFacetsRequest) { + Utils.checkNotNull(getDocumentsByFacetsRequest, "getDocumentsByFacetsRequest"); + this.getDocumentsByFacetsRequest = getDocumentsByFacetsRequest; + return this; + } + + + private GetdocumentsbyfacetsRequest buildRequest() { + + GetdocumentsbyfacetsRequest request = new GetdocumentsbyfacetsRequest(locale, + getDocumentsByFacetsRequest); + + return request; + } public GetdocumentsbyfacetsResponse call() { - RequestOperation, GetdocumentsbyfacetsResponse> operation + RequestOperation operation = new Getdocumentsbyfacets.Sync(sdkConfiguration, _headers); + GetdocumentsbyfacetsRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpinRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpinRequest.java new file mode 100644 index 00000000..c14465a4 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpinRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.GetPinRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class GetpinRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Get pin request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private GetPinRequest getPinRequest; + + @JsonCreator + public GetpinRequest( + Optional locale, + GetPinRequest getPinRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(getPinRequest, "getPinRequest"); + this.locale = locale; + this.getPinRequest = getPinRequest; + } + + public GetpinRequest( + GetPinRequest getPinRequest) { + this(Optional.empty(), getPinRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Get pin request + */ + @JsonIgnore + public GetPinRequest getPinRequest() { + return getPinRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetpinRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetpinRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Get pin request + */ + public GetpinRequest withGetPinRequest(GetPinRequest getPinRequest) { + Utils.checkNotNull(getPinRequest, "getPinRequest"); + this.getPinRequest = getPinRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetpinRequest other = (GetpinRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.getPinRequest, other.getPinRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, getPinRequest); + } + + @Override + public String toString() { + return Utils.toString(GetpinRequest.class, + "locale", locale, + "getPinRequest", getPinRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private GetPinRequest getPinRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Get pin request + */ + public Builder getPinRequest(GetPinRequest getPinRequest) { + Utils.checkNotNull(getPinRequest, "getPinRequest"); + this.getPinRequest = getPinRequest; + return this; + } + + public GetpinRequest build() { + + return new GetpinRequest( + locale, getPinRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpinRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpinRequestBuilder.java index df7e7206..90922298 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpinRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetpinRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Getpin; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetpinRequestBuilder { - private GetPinRequest request; + private Optional locale = Optional.empty(); + private GetPinRequest getPinRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetpinRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetpinRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetpinRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public GetpinRequestBuilder request(GetPinRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetpinRequestBuilder getPinRequest(GetPinRequest getPinRequest) { + Utils.checkNotNull(getPinRequest, "getPinRequest"); + this.getPinRequest = getPinRequest; return this; } + + private GetpinRequest buildRequest() { + + GetpinRequest request = new GetpinRequest(locale, + getPinRequest); + + return request; + } + public GetpinResponse call() { - RequestOperation operation + RequestOperation operation = new Getpin.Sync(sdkConfiguration, _headers); + GetpinRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetshortcutRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetshortcutRequest.java new file mode 100644 index 00000000..b2d1a17a --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetshortcutRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.GetShortcutRequestUnion; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class GetshortcutRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * GetShortcut request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private GetShortcutRequestUnion getShortcutRequest; + + @JsonCreator + public GetshortcutRequest( + Optional locale, + GetShortcutRequestUnion getShortcutRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(getShortcutRequest, "getShortcutRequest"); + this.locale = locale; + this.getShortcutRequest = getShortcutRequest; + } + + public GetshortcutRequest( + GetShortcutRequestUnion getShortcutRequest) { + this(Optional.empty(), getShortcutRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * GetShortcut request + */ + @JsonIgnore + public GetShortcutRequestUnion getShortcutRequest() { + return getShortcutRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetshortcutRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public GetshortcutRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * GetShortcut request + */ + public GetshortcutRequest withGetShortcutRequest(GetShortcutRequestUnion getShortcutRequest) { + Utils.checkNotNull(getShortcutRequest, "getShortcutRequest"); + this.getShortcutRequest = getShortcutRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetshortcutRequest other = (GetshortcutRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.getShortcutRequest, other.getShortcutRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, getShortcutRequest); + } + + @Override + public String toString() { + return Utils.toString(GetshortcutRequest.class, + "locale", locale, + "getShortcutRequest", getShortcutRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private GetShortcutRequestUnion getShortcutRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * GetShortcut request + */ + public Builder getShortcutRequest(GetShortcutRequestUnion getShortcutRequest) { + Utils.checkNotNull(getShortcutRequest, "getShortcutRequest"); + this.getShortcutRequest = getShortcutRequest; + return this; + } + + public GetshortcutRequest build() { + + return new GetshortcutRequest( + locale, getShortcutRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetshortcutRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetshortcutRequestBuilder.java index 56849c1f..55ed3269 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetshortcutRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/GetshortcutRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Getshortcut; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class GetshortcutRequestBuilder { - private GetShortcutRequestUnion request; + private Optional locale = Optional.empty(); + private GetShortcutRequestUnion getShortcutRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetshortcutRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetshortcutRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetshortcutRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public GetshortcutRequestBuilder request(GetShortcutRequestUnion request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetshortcutRequestBuilder getShortcutRequest(GetShortcutRequestUnion getShortcutRequest) { + Utils.checkNotNull(getShortcutRequest, "getShortcutRequest"); + this.getShortcutRequest = getShortcutRequest; return this; } + + private GetshortcutRequest buildRequest() { + + GetshortcutRequest request = new GetshortcutRequest(locale, + getShortcutRequest); + + return request; + } + public GetshortcutResponse call() { - RequestOperation operation + RequestOperation operation = new Getshortcut.Sync(sdkConfiguration, _headers); + GetshortcutRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/InsightsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/InsightsRequest.java new file mode 100644 index 00000000..d410117b --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/InsightsRequest.java @@ -0,0 +1,184 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class InsightsRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Includes request parameters for insights requests. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private com.glean.api_client.glean_api_client.models.components.InsightsRequest insightsRequest; + + @JsonCreator + public InsightsRequest( + Optional locale, + com.glean.api_client.glean_api_client.models.components.InsightsRequest insightsRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(insightsRequest, "insightsRequest"); + this.locale = locale; + this.insightsRequest = insightsRequest; + } + + public InsightsRequest( + com.glean.api_client.glean_api_client.models.components.InsightsRequest insightsRequest) { + this(Optional.empty(), insightsRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Includes request parameters for insights requests. + */ + @JsonIgnore + public com.glean.api_client.glean_api_client.models.components.InsightsRequest insightsRequest() { + return insightsRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public InsightsRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public InsightsRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Includes request parameters for insights requests. + */ + public InsightsRequest withInsightsRequest(com.glean.api_client.glean_api_client.models.components.InsightsRequest insightsRequest) { + Utils.checkNotNull(insightsRequest, "insightsRequest"); + this.insightsRequest = insightsRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InsightsRequest other = (InsightsRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.insightsRequest, other.insightsRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, insightsRequest); + } + + @Override + public String toString() { + return Utils.toString(InsightsRequest.class, + "locale", locale, + "insightsRequest", insightsRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private com.glean.api_client.glean_api_client.models.components.InsightsRequest insightsRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Includes request parameters for insights requests. + */ + public Builder insightsRequest(com.glean.api_client.glean_api_client.models.components.InsightsRequest insightsRequest) { + Utils.checkNotNull(insightsRequest, "insightsRequest"); + this.insightsRequest = insightsRequest; + return this; + } + + public InsightsRequest build() { + + return new InsightsRequest( + locale, insightsRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/InsightsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/InsightsRequestBuilder.java index bdc7a0bf..4ff74d24 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/InsightsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/InsightsRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Insights; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class InsightsRequestBuilder { - private InsightsRequest request; + private Optional locale = Optional.empty(); + private InsightsRequest insightsRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public InsightsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public InsightsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public InsightsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public InsightsRequestBuilder request(InsightsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public InsightsRequestBuilder insightsRequest(InsightsRequest insightsRequest) { + Utils.checkNotNull(insightsRequest, "insightsRequest"); + this.insightsRequest = insightsRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.InsightsRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.InsightsRequest request = new com.glean.api_client.glean_api_client.models.operations.InsightsRequest(locale, + insightsRequest); + + return request; + } + public InsightsResponse call() { - RequestOperation operation + RequestOperation operation = new Insights.Sync(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.InsightsRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListanswersRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListanswersRequest.java new file mode 100644 index 00000000..d252aeb4 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListanswersRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.ListAnswersRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class ListanswersRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * ListAnswers request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private ListAnswersRequest listAnswersRequest; + + @JsonCreator + public ListanswersRequest( + Optional locale, + ListAnswersRequest listAnswersRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(listAnswersRequest, "listAnswersRequest"); + this.locale = locale; + this.listAnswersRequest = listAnswersRequest; + } + + public ListanswersRequest( + ListAnswersRequest listAnswersRequest) { + this(Optional.empty(), listAnswersRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * ListAnswers request + */ + @JsonIgnore + public ListAnswersRequest listAnswersRequest() { + return listAnswersRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListanswersRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListanswersRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * ListAnswers request + */ + public ListanswersRequest withListAnswersRequest(ListAnswersRequest listAnswersRequest) { + Utils.checkNotNull(listAnswersRequest, "listAnswersRequest"); + this.listAnswersRequest = listAnswersRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListanswersRequest other = (ListanswersRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.listAnswersRequest, other.listAnswersRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, listAnswersRequest); + } + + @Override + public String toString() { + return Utils.toString(ListanswersRequest.class, + "locale", locale, + "listAnswersRequest", listAnswersRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private ListAnswersRequest listAnswersRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * ListAnswers request + */ + public Builder listAnswersRequest(ListAnswersRequest listAnswersRequest) { + Utils.checkNotNull(listAnswersRequest, "listAnswersRequest"); + this.listAnswersRequest = listAnswersRequest; + return this; + } + + public ListanswersRequest build() { + + return new ListanswersRequest( + locale, listAnswersRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListanswersRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListanswersRequestBuilder.java index fe8cb4a5..d976fd86 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListanswersRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListanswersRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Listanswers; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListanswersRequestBuilder { - private ListAnswersRequest request; + private Optional locale = Optional.empty(); + private ListAnswersRequest listAnswersRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListanswersRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListanswersRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListanswersRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public ListanswersRequestBuilder request(ListAnswersRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public ListanswersRequestBuilder listAnswersRequest(ListAnswersRequest listAnswersRequest) { + Utils.checkNotNull(listAnswersRequest, "listAnswersRequest"); + this.listAnswersRequest = listAnswersRequest; return this; } + + private ListanswersRequest buildRequest() { + + ListanswersRequest request = new ListanswersRequest(locale, + listAnswersRequest); + + return request; + } + public ListanswersResponse call() { - RequestOperation operation + RequestOperation operation = new Listanswers.Sync(sdkConfiguration, _headers); + ListanswersRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } 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 e3ef5019..fcd83ff9 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 @@ -14,6 +14,15 @@ public class ListchatsRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -23,13 +32,27 @@ public class ListchatsRequest { @JsonCreator public ListchatsRequest( + Optional locale, Optional timezoneOffset) { + Utils.checkNotNull(locale, "locale"); Utils.checkNotNull(timezoneOffset, "timezoneOffset"); + this.locale = locale; this.timezoneOffset = timezoneOffset; } public ListchatsRequest() { - this(Optional.empty()); + this(Optional.empty(), Optional.empty()); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; } /** @@ -46,6 +69,31 @@ public static Builder builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListchatsRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListchatsRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -77,24 +125,28 @@ public boolean equals(java.lang.Object o) { } ListchatsRequest other = (ListchatsRequest) o; return + Utils.enhancedDeepEquals(this.locale, other.locale) && Utils.enhancedDeepEquals(this.timezoneOffset, other.timezoneOffset); } @Override public int hashCode() { return Utils.enhancedHash( - timezoneOffset); + locale, timezoneOffset); } @Override public String toString() { return Utils.toString(ListchatsRequest.class, + "locale", locale, "timezoneOffset", timezoneOffset); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional locale = Optional.empty(); + private Optional timezoneOffset = Optional.empty(); private Builder() { @@ -102,6 +154,31 @@ private Builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -125,7 +202,7 @@ public Builder timezoneOffset(Optional timezoneOffset) { public ListchatsRequest build() { return new ListchatsRequest( - timezoneOffset); + locale, timezoneOffset); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListchatsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListchatsRequestBuilder.java index faaeeec1..9545ca27 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListchatsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListchatsRequestBuilder.java @@ -10,10 +10,12 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; public class ListchatsRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -22,6 +24,18 @@ public ListchatsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public ListchatsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListchatsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public ListchatsRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -37,7 +51,8 @@ public ListchatsRequestBuilder timezoneOffset(Optional timezoneOffset) { private ListchatsRequest buildRequest() { - ListchatsRequest request = new ListchatsRequest(timezoneOffset); + ListchatsRequest request = new ListchatsRequest(locale, + timezoneOffset); return request; } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListcollectionsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListcollectionsRequest.java new file mode 100644 index 00000000..0e89bac3 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListcollectionsRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.ListCollectionsRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class ListcollectionsRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * ListCollections request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private ListCollectionsRequest listCollectionsRequest; + + @JsonCreator + public ListcollectionsRequest( + Optional locale, + ListCollectionsRequest listCollectionsRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(listCollectionsRequest, "listCollectionsRequest"); + this.locale = locale; + this.listCollectionsRequest = listCollectionsRequest; + } + + public ListcollectionsRequest( + ListCollectionsRequest listCollectionsRequest) { + this(Optional.empty(), listCollectionsRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * ListCollections request + */ + @JsonIgnore + public ListCollectionsRequest listCollectionsRequest() { + return listCollectionsRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListcollectionsRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListcollectionsRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * ListCollections request + */ + public ListcollectionsRequest withListCollectionsRequest(ListCollectionsRequest listCollectionsRequest) { + Utils.checkNotNull(listCollectionsRequest, "listCollectionsRequest"); + this.listCollectionsRequest = listCollectionsRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListcollectionsRequest other = (ListcollectionsRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.listCollectionsRequest, other.listCollectionsRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, listCollectionsRequest); + } + + @Override + public String toString() { + return Utils.toString(ListcollectionsRequest.class, + "locale", locale, + "listCollectionsRequest", listCollectionsRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private ListCollectionsRequest listCollectionsRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * ListCollections request + */ + public Builder listCollectionsRequest(ListCollectionsRequest listCollectionsRequest) { + Utils.checkNotNull(listCollectionsRequest, "listCollectionsRequest"); + this.listCollectionsRequest = listCollectionsRequest; + return this; + } + + public ListcollectionsRequest build() { + + return new ListcollectionsRequest( + locale, listCollectionsRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListcollectionsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListcollectionsRequestBuilder.java index 171dc5b4..61b18904 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListcollectionsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListcollectionsRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Listcollections; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListcollectionsRequestBuilder { - private ListCollectionsRequest request; + private Optional locale = Optional.empty(); + private ListCollectionsRequest listCollectionsRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListcollectionsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListcollectionsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListcollectionsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public ListcollectionsRequestBuilder request(ListCollectionsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public ListcollectionsRequestBuilder listCollectionsRequest(ListCollectionsRequest listCollectionsRequest) { + Utils.checkNotNull(listCollectionsRequest, "listCollectionsRequest"); + this.listCollectionsRequest = listCollectionsRequest; return this; } + + private ListcollectionsRequest buildRequest() { + + ListcollectionsRequest request = new ListcollectionsRequest(locale, + listCollectionsRequest); + + return request; + } + public ListcollectionsResponse call() { - RequestOperation operation + RequestOperation operation = new Listcollections.Sync(sdkConfiguration, _headers); + ListcollectionsRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListentitiesRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListentitiesRequest.java new file mode 100644 index 00000000..eddc4cb7 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListentitiesRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.ListEntitiesRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class ListentitiesRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * List people request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private ListEntitiesRequest listEntitiesRequest; + + @JsonCreator + public ListentitiesRequest( + Optional locale, + ListEntitiesRequest listEntitiesRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(listEntitiesRequest, "listEntitiesRequest"); + this.locale = locale; + this.listEntitiesRequest = listEntitiesRequest; + } + + public ListentitiesRequest( + ListEntitiesRequest listEntitiesRequest) { + this(Optional.empty(), listEntitiesRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * List people request + */ + @JsonIgnore + public ListEntitiesRequest listEntitiesRequest() { + return listEntitiesRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListentitiesRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListentitiesRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * List people request + */ + public ListentitiesRequest withListEntitiesRequest(ListEntitiesRequest listEntitiesRequest) { + Utils.checkNotNull(listEntitiesRequest, "listEntitiesRequest"); + this.listEntitiesRequest = listEntitiesRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListentitiesRequest other = (ListentitiesRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.listEntitiesRequest, other.listEntitiesRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, listEntitiesRequest); + } + + @Override + public String toString() { + return Utils.toString(ListentitiesRequest.class, + "locale", locale, + "listEntitiesRequest", listEntitiesRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private ListEntitiesRequest listEntitiesRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * List people request + */ + public Builder listEntitiesRequest(ListEntitiesRequest listEntitiesRequest) { + Utils.checkNotNull(listEntitiesRequest, "listEntitiesRequest"); + this.listEntitiesRequest = listEntitiesRequest; + return this; + } + + public ListentitiesRequest build() { + + return new ListentitiesRequest( + locale, listEntitiesRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListentitiesRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListentitiesRequestBuilder.java index ea1d8239..2b9d908e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListentitiesRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListentitiesRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Listentities; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListentitiesRequestBuilder { - private ListEntitiesRequest request; + private Optional locale = Optional.empty(); + private ListEntitiesRequest listEntitiesRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListentitiesRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListentitiesRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListentitiesRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public ListentitiesRequestBuilder request(ListEntitiesRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public ListentitiesRequestBuilder listEntitiesRequest(ListEntitiesRequest listEntitiesRequest) { + Utils.checkNotNull(listEntitiesRequest, "listEntitiesRequest"); + this.listEntitiesRequest = listEntitiesRequest; return this; } + + private ListentitiesRequest buildRequest() { + + ListentitiesRequest request = new ListentitiesRequest(locale, + listEntitiesRequest); + + return request; + } + public ListentitiesResponse call() { - RequestOperation operation + RequestOperation operation = new Listentities.Sync(sdkConfiguration, _headers); + ListentitiesRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequest.java index 4a93a79d..ff7ef784 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequest.java @@ -4,18 +4,62 @@ package com.glean.api_client.glean_api_client.models.operations; import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Override; import java.lang.String; +import java.util.Optional; + -/** - * ListpinsRequest - * - *

List pins request - */ public class ListpinsRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * List pins request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private ListpinsRequestBody requestBody; + @JsonCreator - public ListpinsRequest() { + public ListpinsRequest( + Optional locale, + ListpinsRequestBody requestBody) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(requestBody, "requestBody"); + this.locale = locale; + this.requestBody = requestBody; + } + + public ListpinsRequest( + ListpinsRequestBody requestBody) { + this(Optional.empty(), requestBody); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * List pins request + */ + @JsonIgnore + public ListpinsRequestBody requestBody() { + return requestBody; } public static Builder builder() { @@ -23,6 +67,40 @@ public static Builder builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListpinsRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListpinsRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * List pins request + */ + public ListpinsRequest withRequestBody(ListpinsRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -31,31 +109,75 @@ public boolean equals(java.lang.Object o) { if (o == null || getClass() != o.getClass()) { return false; } - return true; + ListpinsRequest other = (ListpinsRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.requestBody, other.requestBody); } @Override public int hashCode() { return Utils.enhancedHash( - ); + locale, requestBody); } @Override public String toString() { - return Utils.toString(ListpinsRequest.class); + return Utils.toString(ListpinsRequest.class, + "locale", locale, + "requestBody", requestBody); } @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional locale = Optional.empty(); + + private ListpinsRequestBody requestBody; + private Builder() { // force use of static builder() method } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * List pins request + */ + public Builder requestBody(ListpinsRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; + return this; + } + public ListpinsRequest build() { return new ListpinsRequest( - ); + locale, requestBody); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequestBody.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequestBody.java new file mode 100644 index 00000000..8b5eb3d3 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequestBody.java @@ -0,0 +1,62 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; + +/** + * ListpinsRequestBody + * + *

List pins request + */ +public class ListpinsRequestBody { + @JsonCreator + public ListpinsRequestBody() { + } + + public static Builder builder() { + return new Builder(); + } + + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + return true; + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + ); + } + + @Override + public String toString() { + return Utils.toString(ListpinsRequestBody.class); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Builder() { + // force use of static builder() method + } + + public ListpinsRequestBody build() { + + return new ListpinsRequestBody( + ); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequestBuilder.java index 0c255efd..57ac26e5 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListpinsRequestBuilder.java @@ -9,27 +9,52 @@ import com.glean.api_client.glean_api_client.operations.Listpins; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListpinsRequestBuilder { - private ListpinsRequest request; + private Optional locale = Optional.empty(); + private ListpinsRequestBody requestBody; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListpinsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListpinsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListpinsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public ListpinsRequestBuilder request(ListpinsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public ListpinsRequestBuilder requestBody(ListpinsRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; return this; } + + private ListpinsRequest buildRequest() { + + ListpinsRequest request = new ListpinsRequest(locale, + requestBody); + + return request; + } + public ListpinsResponse call() { RequestOperation operation = new Listpins.Sync(sdkConfiguration, _headers); + ListpinsRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListshortcutsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListshortcutsRequest.java new file mode 100644 index 00000000..a1c2fe3f --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListshortcutsRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.ListShortcutsPaginatedRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class ListshortcutsRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Filters, sorters, paging params required for pagination + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private ListShortcutsPaginatedRequest listShortcutsPaginatedRequest; + + @JsonCreator + public ListshortcutsRequest( + Optional locale, + ListShortcutsPaginatedRequest listShortcutsPaginatedRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(listShortcutsPaginatedRequest, "listShortcutsPaginatedRequest"); + this.locale = locale; + this.listShortcutsPaginatedRequest = listShortcutsPaginatedRequest; + } + + public ListshortcutsRequest( + ListShortcutsPaginatedRequest listShortcutsPaginatedRequest) { + this(Optional.empty(), listShortcutsPaginatedRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Filters, sorters, paging params required for pagination + */ + @JsonIgnore + public ListShortcutsPaginatedRequest listShortcutsPaginatedRequest() { + return listShortcutsPaginatedRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListshortcutsRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListshortcutsRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Filters, sorters, paging params required for pagination + */ + public ListshortcutsRequest withListShortcutsPaginatedRequest(ListShortcutsPaginatedRequest listShortcutsPaginatedRequest) { + Utils.checkNotNull(listShortcutsPaginatedRequest, "listShortcutsPaginatedRequest"); + this.listShortcutsPaginatedRequest = listShortcutsPaginatedRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListshortcutsRequest other = (ListshortcutsRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.listShortcutsPaginatedRequest, other.listShortcutsPaginatedRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, listShortcutsPaginatedRequest); + } + + @Override + public String toString() { + return Utils.toString(ListshortcutsRequest.class, + "locale", locale, + "listShortcutsPaginatedRequest", listShortcutsPaginatedRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private ListShortcutsPaginatedRequest listShortcutsPaginatedRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Filters, sorters, paging params required for pagination + */ + public Builder listShortcutsPaginatedRequest(ListShortcutsPaginatedRequest listShortcutsPaginatedRequest) { + Utils.checkNotNull(listShortcutsPaginatedRequest, "listShortcutsPaginatedRequest"); + this.listShortcutsPaginatedRequest = listShortcutsPaginatedRequest; + return this; + } + + public ListshortcutsRequest build() { + + return new ListshortcutsRequest( + locale, listShortcutsPaginatedRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListshortcutsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListshortcutsRequestBuilder.java index 71b6843e..b97b3055 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListshortcutsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListshortcutsRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Listshortcuts; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class ListshortcutsRequestBuilder { - private ListShortcutsPaginatedRequest request; + private Optional locale = Optional.empty(); + private ListShortcutsPaginatedRequest listShortcutsPaginatedRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListshortcutsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListshortcutsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListshortcutsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public ListshortcutsRequestBuilder request(ListShortcutsPaginatedRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public ListshortcutsRequestBuilder listShortcutsPaginatedRequest(ListShortcutsPaginatedRequest listShortcutsPaginatedRequest) { + Utils.checkNotNull(listShortcutsPaginatedRequest, "listShortcutsPaginatedRequest"); + this.listShortcutsPaginatedRequest = listShortcutsPaginatedRequest; return this; } + + private ListshortcutsRequest buildRequest() { + + ListshortcutsRequest request = new ListshortcutsRequest(locale, + listShortcutsPaginatedRequest); + + return request; + } + public ListshortcutsResponse call() { - RequestOperation operation + RequestOperation operation = new Listshortcuts.Sync(sdkConfiguration, _headers); + ListshortcutsRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListverificationsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListverificationsRequest.java index cf7697d9..c98489b6 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListverificationsRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListverificationsRequest.java @@ -20,15 +20,27 @@ public class ListverificationsRequest { @SpeakeasyMetadata("queryParam:style=form,explode=true,name=count") private Optional count; + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + @JsonCreator public ListverificationsRequest( - Optional count) { + Optional count, + Optional locale) { Utils.checkNotNull(count, "count"); + Utils.checkNotNull(locale, "locale"); this.count = count; + this.locale = locale; } public ListverificationsRequest() { - this(Optional.empty()); + this(Optional.empty(), Optional.empty()); } /** @@ -39,6 +51,17 @@ public Optional count() { return count; } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + public static Builder builder() { return new Builder(); } @@ -63,6 +86,31 @@ public ListverificationsRequest withCount(Optional count) { return this; } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListverificationsRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public ListverificationsRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -73,19 +121,21 @@ public boolean equals(java.lang.Object o) { } ListverificationsRequest other = (ListverificationsRequest) o; return - Utils.enhancedDeepEquals(this.count, other.count); + Utils.enhancedDeepEquals(this.count, other.count) && + Utils.enhancedDeepEquals(this.locale, other.locale); } @Override public int hashCode() { return Utils.enhancedHash( - count); + count, locale); } @Override public String toString() { return Utils.toString(ListverificationsRequest.class, - "count", count); + "count", count, + "locale", locale); } @SuppressWarnings("UnusedReturnValue") @@ -93,6 +143,8 @@ public final static class Builder { private Optional count = Optional.empty(); + private Optional locale = Optional.empty(); + private Builder() { // force use of static builder() method } @@ -116,10 +168,35 @@ public Builder count(Optional count) { return this; } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public ListverificationsRequest build() { return new ListverificationsRequest( - count); + count, locale); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListverificationsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListverificationsRequestBuilder.java index 008685a0..2bb78e75 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListverificationsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/ListverificationsRequestBuilder.java @@ -10,11 +10,13 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; public class ListverificationsRequestBuilder { private Optional count = Optional.empty(); + private Optional locale = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -33,11 +35,24 @@ public ListverificationsRequestBuilder count(Optional count) { this.count = count; return this; } + + public ListverificationsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListverificationsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } private ListverificationsRequest buildRequest() { - ListverificationsRequest request = new ListverificationsRequest(count); + ListverificationsRequest request = new ListverificationsRequest(count, + locale); return request; } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/MessagesRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/MessagesRequest.java new file mode 100644 index 00000000..bdb46f9c --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/MessagesRequest.java @@ -0,0 +1,184 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class MessagesRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Includes request params such as the id for channel/message and direction. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private com.glean.api_client.glean_api_client.models.components.MessagesRequest messagesRequest; + + @JsonCreator + public MessagesRequest( + Optional locale, + com.glean.api_client.glean_api_client.models.components.MessagesRequest messagesRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(messagesRequest, "messagesRequest"); + this.locale = locale; + this.messagesRequest = messagesRequest; + } + + public MessagesRequest( + com.glean.api_client.glean_api_client.models.components.MessagesRequest messagesRequest) { + this(Optional.empty(), messagesRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Includes request params such as the id for channel/message and direction. + */ + @JsonIgnore + public com.glean.api_client.glean_api_client.models.components.MessagesRequest messagesRequest() { + return messagesRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public MessagesRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public MessagesRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Includes request params such as the id for channel/message and direction. + */ + public MessagesRequest withMessagesRequest(com.glean.api_client.glean_api_client.models.components.MessagesRequest messagesRequest) { + Utils.checkNotNull(messagesRequest, "messagesRequest"); + this.messagesRequest = messagesRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MessagesRequest other = (MessagesRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.messagesRequest, other.messagesRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, messagesRequest); + } + + @Override + public String toString() { + return Utils.toString(MessagesRequest.class, + "locale", locale, + "messagesRequest", messagesRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private com.glean.api_client.glean_api_client.models.components.MessagesRequest messagesRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Includes request params such as the id for channel/message and direction. + */ + public Builder messagesRequest(com.glean.api_client.glean_api_client.models.components.MessagesRequest messagesRequest) { + Utils.checkNotNull(messagesRequest, "messagesRequest"); + this.messagesRequest = messagesRequest; + return this; + } + + public MessagesRequest build() { + + return new MessagesRequest( + locale, messagesRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/MessagesRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/MessagesRequestBuilder.java index 7d977642..4cfeb58a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/MessagesRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/MessagesRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Messages; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class MessagesRequestBuilder { - private MessagesRequest request; + private Optional locale = Optional.empty(); + private MessagesRequest messagesRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public MessagesRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public MessagesRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public MessagesRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public MessagesRequestBuilder request(MessagesRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public MessagesRequestBuilder messagesRequest(MessagesRequest messagesRequest) { + Utils.checkNotNull(messagesRequest, "messagesRequest"); + this.messagesRequest = messagesRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.MessagesRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.MessagesRequest request = new com.glean.api_client.glean_api_client.models.operations.MessagesRequest(locale, + messagesRequest); + + return request; + } + public MessagesResponse call() { - RequestOperation operation + RequestOperation operation = new Messages.Sync(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.MessagesRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PeopleRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PeopleRequest.java new file mode 100644 index 00000000..a890b09a --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PeopleRequest.java @@ -0,0 +1,184 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class PeopleRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * People request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private com.glean.api_client.glean_api_client.models.components.PeopleRequest peopleRequest; + + @JsonCreator + public PeopleRequest( + Optional locale, + com.glean.api_client.glean_api_client.models.components.PeopleRequest peopleRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(peopleRequest, "peopleRequest"); + this.locale = locale; + this.peopleRequest = peopleRequest; + } + + public PeopleRequest( + com.glean.api_client.glean_api_client.models.components.PeopleRequest peopleRequest) { + this(Optional.empty(), peopleRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * People request + */ + @JsonIgnore + public com.glean.api_client.glean_api_client.models.components.PeopleRequest peopleRequest() { + return peopleRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public PeopleRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public PeopleRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * People request + */ + public PeopleRequest withPeopleRequest(com.glean.api_client.glean_api_client.models.components.PeopleRequest peopleRequest) { + Utils.checkNotNull(peopleRequest, "peopleRequest"); + this.peopleRequest = peopleRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PeopleRequest other = (PeopleRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.peopleRequest, other.peopleRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, peopleRequest); + } + + @Override + public String toString() { + return Utils.toString(PeopleRequest.class, + "locale", locale, + "peopleRequest", peopleRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private com.glean.api_client.glean_api_client.models.components.PeopleRequest peopleRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * People request + */ + public Builder peopleRequest(com.glean.api_client.glean_api_client.models.components.PeopleRequest peopleRequest) { + Utils.checkNotNull(peopleRequest, "peopleRequest"); + this.peopleRequest = peopleRequest; + return this; + } + + public PeopleRequest build() { + + return new PeopleRequest( + locale, peopleRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PeopleRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PeopleRequestBuilder.java index e8365b46..b2447fcf 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PeopleRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PeopleRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.People; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class PeopleRequestBuilder { - private PeopleRequest request; + private Optional locale = Optional.empty(); + private PeopleRequest peopleRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public PeopleRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public PeopleRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public PeopleRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public PeopleRequestBuilder request(PeopleRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public PeopleRequestBuilder peopleRequest(PeopleRequest peopleRequest) { + Utils.checkNotNull(peopleRequest, "peopleRequest"); + this.peopleRequest = peopleRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.PeopleRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.PeopleRequest request = new com.glean.api_client.glean_api_client.models.operations.PeopleRequest(locale, + peopleRequest); + + return request; + } + public PeopleResponse call() { - RequestOperation operation + RequestOperation operation = new People.Sync(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.PeopleRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PinRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PinRequest.java new file mode 100644 index 00000000..3a01122f --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PinRequest.java @@ -0,0 +1,184 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class PinRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Details about the document and query for the pin. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private com.glean.api_client.glean_api_client.models.components.PinRequest pinRequest; + + @JsonCreator + public PinRequest( + Optional locale, + com.glean.api_client.glean_api_client.models.components.PinRequest pinRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(pinRequest, "pinRequest"); + this.locale = locale; + this.pinRequest = pinRequest; + } + + public PinRequest( + com.glean.api_client.glean_api_client.models.components.PinRequest pinRequest) { + this(Optional.empty(), pinRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Details about the document and query for the pin. + */ + @JsonIgnore + public com.glean.api_client.glean_api_client.models.components.PinRequest pinRequest() { + return pinRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public PinRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public PinRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Details about the document and query for the pin. + */ + public PinRequest withPinRequest(com.glean.api_client.glean_api_client.models.components.PinRequest pinRequest) { + Utils.checkNotNull(pinRequest, "pinRequest"); + this.pinRequest = pinRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PinRequest other = (PinRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.pinRequest, other.pinRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, pinRequest); + } + + @Override + public String toString() { + return Utils.toString(PinRequest.class, + "locale", locale, + "pinRequest", pinRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private com.glean.api_client.glean_api_client.models.components.PinRequest pinRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Details about the document and query for the pin. + */ + public Builder pinRequest(com.glean.api_client.glean_api_client.models.components.PinRequest pinRequest) { + Utils.checkNotNull(pinRequest, "pinRequest"); + this.pinRequest = pinRequest; + return this; + } + + public PinRequest build() { + + return new PinRequest( + locale, pinRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PinRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PinRequestBuilder.java index b10bdf28..ec083c63 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/PinRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/PinRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Pin; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class PinRequestBuilder { - private PinRequest request; + private Optional locale = Optional.empty(); + private PinRequest pinRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public PinRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public PinRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public PinRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public PinRequestBuilder request(PinRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public PinRequestBuilder pinRequest(PinRequest pinRequest) { + Utils.checkNotNull(pinRequest, "pinRequest"); + this.pinRequest = pinRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.PinRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.PinRequest request = new com.glean.api_client.glean_api_client.models.operations.PinRequest(locale, + pinRequest); + + return request; + } + public PinResponse call() { - RequestOperation operation + RequestOperation operation = new Pin.Sync(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.PinRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/RecommendationsRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/RecommendationsRequest.java new file mode 100644 index 00000000..0462a1fc --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/RecommendationsRequest.java @@ -0,0 +1,184 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class RecommendationsRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Recommendations request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private com.glean.api_client.glean_api_client.models.components.RecommendationsRequest recommendationsRequest; + + @JsonCreator + public RecommendationsRequest( + Optional locale, + com.glean.api_client.glean_api_client.models.components.RecommendationsRequest recommendationsRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(recommendationsRequest, "recommendationsRequest"); + this.locale = locale; + this.recommendationsRequest = recommendationsRequest; + } + + public RecommendationsRequest( + com.glean.api_client.glean_api_client.models.components.RecommendationsRequest recommendationsRequest) { + this(Optional.empty(), recommendationsRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Recommendations request + */ + @JsonIgnore + public com.glean.api_client.glean_api_client.models.components.RecommendationsRequest recommendationsRequest() { + return recommendationsRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public RecommendationsRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public RecommendationsRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Recommendations request + */ + public RecommendationsRequest withRecommendationsRequest(com.glean.api_client.glean_api_client.models.components.RecommendationsRequest recommendationsRequest) { + Utils.checkNotNull(recommendationsRequest, "recommendationsRequest"); + this.recommendationsRequest = recommendationsRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RecommendationsRequest other = (RecommendationsRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.recommendationsRequest, other.recommendationsRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, recommendationsRequest); + } + + @Override + public String toString() { + return Utils.toString(RecommendationsRequest.class, + "locale", locale, + "recommendationsRequest", recommendationsRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private com.glean.api_client.glean_api_client.models.components.RecommendationsRequest recommendationsRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Recommendations request + */ + public Builder recommendationsRequest(com.glean.api_client.glean_api_client.models.components.RecommendationsRequest recommendationsRequest) { + Utils.checkNotNull(recommendationsRequest, "recommendationsRequest"); + this.recommendationsRequest = recommendationsRequest; + return this; + } + + public RecommendationsRequest build() { + + return new RecommendationsRequest( + locale, recommendationsRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/RecommendationsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/RecommendationsRequestBuilder.java index 6eaf5a72..c2af4b98 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/RecommendationsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/RecommendationsRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Recommendations; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class RecommendationsRequestBuilder { - private RecommendationsRequest request; + private Optional locale = Optional.empty(); + private RecommendationsRequest recommendationsRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public RecommendationsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public RecommendationsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public RecommendationsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public RecommendationsRequestBuilder request(RecommendationsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public RecommendationsRequestBuilder recommendationsRequest(RecommendationsRequest recommendationsRequest) { + Utils.checkNotNull(recommendationsRequest, "recommendationsRequest"); + this.recommendationsRequest = recommendationsRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest request = new com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest(locale, + recommendationsRequest); + + return request; + } + public RecommendationsResponse call() { - RequestOperation operation + RequestOperation operation = new Recommendations.Sync(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/SearchRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/SearchRequest.java new file mode 100644 index 00000000..9f25a63c --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/SearchRequest.java @@ -0,0 +1,184 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class SearchRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Search request + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private com.glean.api_client.glean_api_client.models.components.SearchRequest searchRequest; + + @JsonCreator + public SearchRequest( + Optional locale, + com.glean.api_client.glean_api_client.models.components.SearchRequest searchRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(searchRequest, "searchRequest"); + this.locale = locale; + this.searchRequest = searchRequest; + } + + public SearchRequest( + com.glean.api_client.glean_api_client.models.components.SearchRequest searchRequest) { + this(Optional.empty(), searchRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Search request + */ + @JsonIgnore + public com.glean.api_client.glean_api_client.models.components.SearchRequest searchRequest() { + return searchRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public SearchRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public SearchRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Search request + */ + public SearchRequest withSearchRequest(com.glean.api_client.glean_api_client.models.components.SearchRequest searchRequest) { + Utils.checkNotNull(searchRequest, "searchRequest"); + this.searchRequest = searchRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SearchRequest other = (SearchRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.searchRequest, other.searchRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, searchRequest); + } + + @Override + public String toString() { + return Utils.toString(SearchRequest.class, + "locale", locale, + "searchRequest", searchRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private com.glean.api_client.glean_api_client.models.components.SearchRequest searchRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Search request + */ + public Builder searchRequest(com.glean.api_client.glean_api_client.models.components.SearchRequest searchRequest) { + Utils.checkNotNull(searchRequest, "searchRequest"); + this.searchRequest = searchRequest; + return this; + } + + public SearchRequest build() { + + return new SearchRequest( + locale, searchRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/SearchRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/SearchRequestBuilder.java index a460ea1d..a0b3d89c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/SearchRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/SearchRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Search; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class SearchRequestBuilder { - private SearchRequest request; + private Optional locale = Optional.empty(); + private SearchRequest searchRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public SearchRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public SearchRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public SearchRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public SearchRequestBuilder request(SearchRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public SearchRequestBuilder searchRequest(SearchRequest searchRequest) { + Utils.checkNotNull(searchRequest, "searchRequest"); + this.searchRequest = searchRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.SearchRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.SearchRequest request = new com.glean.api_client.glean_api_client.models.operations.SearchRequest(locale, + searchRequest); + + return request; + } + public SearchResponse call() { - RequestOperation operation + RequestOperation operation = new Search.Sync(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.SearchRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/SummarizeRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/SummarizeRequest.java new file mode 100644 index 00000000..a10593d6 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/SummarizeRequest.java @@ -0,0 +1,184 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class SummarizeRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Includes request params such as the query and specs of the documents to summarize. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private com.glean.api_client.glean_api_client.models.components.SummarizeRequest summarizeRequest; + + @JsonCreator + public SummarizeRequest( + Optional locale, + com.glean.api_client.glean_api_client.models.components.SummarizeRequest summarizeRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(summarizeRequest, "summarizeRequest"); + this.locale = locale; + this.summarizeRequest = summarizeRequest; + } + + public SummarizeRequest( + com.glean.api_client.glean_api_client.models.components.SummarizeRequest summarizeRequest) { + this(Optional.empty(), summarizeRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Includes request params such as the query and specs of the documents to summarize. + */ + @JsonIgnore + public com.glean.api_client.glean_api_client.models.components.SummarizeRequest summarizeRequest() { + return summarizeRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public SummarizeRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public SummarizeRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Includes request params such as the query and specs of the documents to summarize. + */ + public SummarizeRequest withSummarizeRequest(com.glean.api_client.glean_api_client.models.components.SummarizeRequest summarizeRequest) { + Utils.checkNotNull(summarizeRequest, "summarizeRequest"); + this.summarizeRequest = summarizeRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SummarizeRequest other = (SummarizeRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.summarizeRequest, other.summarizeRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, summarizeRequest); + } + + @Override + public String toString() { + return Utils.toString(SummarizeRequest.class, + "locale", locale, + "summarizeRequest", summarizeRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private com.glean.api_client.glean_api_client.models.components.SummarizeRequest summarizeRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Includes request params such as the query and specs of the documents to summarize. + */ + public Builder summarizeRequest(com.glean.api_client.glean_api_client.models.components.SummarizeRequest summarizeRequest) { + Utils.checkNotNull(summarizeRequest, "summarizeRequest"); + this.summarizeRequest = summarizeRequest; + return this; + } + + public SummarizeRequest build() { + + return new SummarizeRequest( + locale, summarizeRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/SummarizeRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/SummarizeRequestBuilder.java index cb19ccb6..fb3bd091 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/SummarizeRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/SummarizeRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Summarize; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class SummarizeRequestBuilder { - private SummarizeRequest request; + private Optional locale = Optional.empty(); + private SummarizeRequest summarizeRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public SummarizeRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public SummarizeRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public SummarizeRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public SummarizeRequestBuilder request(SummarizeRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public SummarizeRequestBuilder summarizeRequest(SummarizeRequest summarizeRequest) { + Utils.checkNotNull(summarizeRequest, "summarizeRequest"); + this.summarizeRequest = summarizeRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.SummarizeRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.SummarizeRequest request = new com.glean.api_client.glean_api_client.models.operations.SummarizeRequest(locale, + summarizeRequest); + + return request; + } + public SummarizeResponse call() { - RequestOperation operation + RequestOperation operation = new Summarize.Sync(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.SummarizeRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/UnpinRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UnpinRequest.java new file mode 100644 index 00000000..168cdc0b --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UnpinRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.Unpin; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class UnpinRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Details about the pin being unpinned. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private Unpin unpin; + + @JsonCreator + public UnpinRequest( + Optional locale, + Unpin unpin) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(unpin, "unpin"); + this.locale = locale; + this.unpin = unpin; + } + + public UnpinRequest( + Unpin unpin) { + this(Optional.empty(), unpin); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Details about the pin being unpinned. + */ + @JsonIgnore + public Unpin unpin() { + return unpin; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public UnpinRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public UnpinRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Details about the pin being unpinned. + */ + public UnpinRequest withUnpin(Unpin unpin) { + Utils.checkNotNull(unpin, "unpin"); + this.unpin = unpin; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnpinRequest other = (UnpinRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.unpin, other.unpin); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, unpin); + } + + @Override + public String toString() { + return Utils.toString(UnpinRequest.class, + "locale", locale, + "unpin", unpin); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private Unpin unpin; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Details about the pin being unpinned. + */ + public Builder unpin(Unpin unpin) { + Utils.checkNotNull(unpin, "unpin"); + this.unpin = unpin; + return this; + } + + public UnpinRequest build() { + + return new UnpinRequest( + locale, unpin); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/UnpinRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UnpinRequestBuilder.java index 213e2b33..38a81a86 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/UnpinRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UnpinRequestBuilder.java @@ -9,27 +9,52 @@ import com.glean.api_client.glean_api_client.models.components.Unpin; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UnpinRequestBuilder { - private Unpin request; + private Optional locale = Optional.empty(); + private Unpin unpin; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public UnpinRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public UnpinRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public UnpinRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public UnpinRequestBuilder request(Unpin request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public UnpinRequestBuilder unpin(Unpin unpin) { + Utils.checkNotNull(unpin, "unpin"); + this.unpin = unpin; return this; } + + private UnpinRequest buildRequest() { + + UnpinRequest request = new UnpinRequest(locale, + unpin); + + return request; + } + public UnpinResponse call() { - RequestOperation operation + RequestOperation operation = new com.glean.api_client.glean_api_client.operations.Unpin.Sync(sdkConfiguration, _headers); + UnpinRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateannouncementRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateannouncementRequest.java new file mode 100644 index 00000000..818fd3ab --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateannouncementRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.UpdateAnnouncementRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class UpdateannouncementRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Announcement content. Id need to be specified for the announcement. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private UpdateAnnouncementRequest updateAnnouncementRequest; + + @JsonCreator + public UpdateannouncementRequest( + Optional locale, + UpdateAnnouncementRequest updateAnnouncementRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(updateAnnouncementRequest, "updateAnnouncementRequest"); + this.locale = locale; + this.updateAnnouncementRequest = updateAnnouncementRequest; + } + + public UpdateannouncementRequest( + UpdateAnnouncementRequest updateAnnouncementRequest) { + this(Optional.empty(), updateAnnouncementRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Announcement content. Id need to be specified for the announcement. + */ + @JsonIgnore + public UpdateAnnouncementRequest updateAnnouncementRequest() { + return updateAnnouncementRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public UpdateannouncementRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public UpdateannouncementRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Announcement content. Id need to be specified for the announcement. + */ + public UpdateannouncementRequest withUpdateAnnouncementRequest(UpdateAnnouncementRequest updateAnnouncementRequest) { + Utils.checkNotNull(updateAnnouncementRequest, "updateAnnouncementRequest"); + this.updateAnnouncementRequest = updateAnnouncementRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateannouncementRequest other = (UpdateannouncementRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.updateAnnouncementRequest, other.updateAnnouncementRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, updateAnnouncementRequest); + } + + @Override + public String toString() { + return Utils.toString(UpdateannouncementRequest.class, + "locale", locale, + "updateAnnouncementRequest", updateAnnouncementRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private UpdateAnnouncementRequest updateAnnouncementRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Announcement content. Id need to be specified for the announcement. + */ + public Builder updateAnnouncementRequest(UpdateAnnouncementRequest updateAnnouncementRequest) { + Utils.checkNotNull(updateAnnouncementRequest, "updateAnnouncementRequest"); + this.updateAnnouncementRequest = updateAnnouncementRequest; + return this; + } + + public UpdateannouncementRequest build() { + + return new UpdateannouncementRequest( + locale, updateAnnouncementRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateannouncementRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateannouncementRequestBuilder.java index ede6eacd..66a7e0a6 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateannouncementRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateannouncementRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Updateannouncement; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UpdateannouncementRequestBuilder { - private UpdateAnnouncementRequest request; + private Optional locale = Optional.empty(); + private UpdateAnnouncementRequest updateAnnouncementRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public UpdateannouncementRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public UpdateannouncementRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public UpdateannouncementRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public UpdateannouncementRequestBuilder request(UpdateAnnouncementRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public UpdateannouncementRequestBuilder updateAnnouncementRequest(UpdateAnnouncementRequest updateAnnouncementRequest) { + Utils.checkNotNull(updateAnnouncementRequest, "updateAnnouncementRequest"); + this.updateAnnouncementRequest = updateAnnouncementRequest; return this; } + + private UpdateannouncementRequest buildRequest() { + + UpdateannouncementRequest request = new UpdateannouncementRequest(locale, + updateAnnouncementRequest); + + return request; + } + public UpdateannouncementResponse call() { - RequestOperation operation + RequestOperation operation = new Updateannouncement.Sync(sdkConfiguration, _headers); + UpdateannouncementRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateshortcutRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateshortcutRequest.java new file mode 100644 index 00000000..6faccff0 --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateshortcutRequest.java @@ -0,0 +1,185 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.models.components.UpdateShortcutRequest; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class UpdateshortcutRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Shortcut content. Id need to be specified for the shortcut. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private UpdateShortcutRequest updateShortcutRequest; + + @JsonCreator + public UpdateshortcutRequest( + Optional locale, + UpdateShortcutRequest updateShortcutRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(updateShortcutRequest, "updateShortcutRequest"); + this.locale = locale; + this.updateShortcutRequest = updateShortcutRequest; + } + + public UpdateshortcutRequest( + UpdateShortcutRequest updateShortcutRequest) { + this(Optional.empty(), updateShortcutRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Shortcut content. Id need to be specified for the shortcut. + */ + @JsonIgnore + public UpdateShortcutRequest updateShortcutRequest() { + return updateShortcutRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public UpdateshortcutRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public UpdateshortcutRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Shortcut content. Id need to be specified for the shortcut. + */ + public UpdateshortcutRequest withUpdateShortcutRequest(UpdateShortcutRequest updateShortcutRequest) { + Utils.checkNotNull(updateShortcutRequest, "updateShortcutRequest"); + this.updateShortcutRequest = updateShortcutRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateshortcutRequest other = (UpdateshortcutRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.updateShortcutRequest, other.updateShortcutRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, updateShortcutRequest); + } + + @Override + public String toString() { + return Utils.toString(UpdateshortcutRequest.class, + "locale", locale, + "updateShortcutRequest", updateShortcutRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private UpdateShortcutRequest updateShortcutRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Shortcut content. Id need to be specified for the shortcut. + */ + public Builder updateShortcutRequest(UpdateShortcutRequest updateShortcutRequest) { + Utils.checkNotNull(updateShortcutRequest, "updateShortcutRequest"); + this.updateShortcutRequest = updateShortcutRequest; + return this; + } + + public UpdateshortcutRequest build() { + + return new UpdateshortcutRequest( + locale, updateShortcutRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateshortcutRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateshortcutRequestBuilder.java index c675efee..4874d0c3 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateshortcutRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UpdateshortcutRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Updateshortcut; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class UpdateshortcutRequestBuilder { - private UpdateShortcutRequest request; + private Optional locale = Optional.empty(); + private UpdateShortcutRequest updateShortcutRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public UpdateshortcutRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public UpdateshortcutRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public UpdateshortcutRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public UpdateshortcutRequestBuilder request(UpdateShortcutRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public UpdateshortcutRequestBuilder updateShortcutRequest(UpdateShortcutRequest updateShortcutRequest) { + Utils.checkNotNull(updateShortcutRequest, "updateShortcutRequest"); + this.updateShortcutRequest = updateShortcutRequest; return this; } + + private UpdateshortcutRequest buildRequest() { + + UpdateshortcutRequest request = new UpdateshortcutRequest(locale, + updateShortcutRequest); + + return request; + } + public UpdateshortcutResponse call() { - RequestOperation operation + RequestOperation operation = new Updateshortcut.Sync(sdkConfiguration, _headers); + UpdateshortcutRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } 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 66c72ab0..5bd53dcc 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 @@ -15,6 +15,15 @@ public class UploadchatfilesRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -28,17 +37,31 @@ public class UploadchatfilesRequest { @JsonCreator public UploadchatfilesRequest( + Optional locale, Optional timezoneOffset, UploadChatFilesRequest uploadChatFilesRequest) { + Utils.checkNotNull(locale, "locale"); Utils.checkNotNull(timezoneOffset, "timezoneOffset"); Utils.checkNotNull(uploadChatFilesRequest, "uploadChatFilesRequest"); + this.locale = locale; this.timezoneOffset = timezoneOffset; this.uploadChatFilesRequest = uploadChatFilesRequest; } public UploadchatfilesRequest( UploadChatFilesRequest uploadChatFilesRequest) { - this(Optional.empty(), uploadChatFilesRequest); + this(Optional.empty(), Optional.empty(), uploadChatFilesRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; } /** @@ -60,6 +83,31 @@ public static Builder builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public UploadchatfilesRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public UploadchatfilesRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -97,6 +145,7 @@ public boolean equals(java.lang.Object o) { } UploadchatfilesRequest other = (UploadchatfilesRequest) o; return + Utils.enhancedDeepEquals(this.locale, other.locale) && Utils.enhancedDeepEquals(this.timezoneOffset, other.timezoneOffset) && Utils.enhancedDeepEquals(this.uploadChatFilesRequest, other.uploadChatFilesRequest); } @@ -104,12 +153,13 @@ public boolean equals(java.lang.Object o) { @Override public int hashCode() { return Utils.enhancedHash( - timezoneOffset, uploadChatFilesRequest); + locale, timezoneOffset, uploadChatFilesRequest); } @Override public String toString() { return Utils.toString(UploadchatfilesRequest.class, + "locale", locale, "timezoneOffset", timezoneOffset, "uploadChatFilesRequest", uploadChatFilesRequest); } @@ -117,6 +167,8 @@ public String toString() { @SuppressWarnings("UnusedReturnValue") public final static class Builder { + private Optional locale = Optional.empty(); + private Optional timezoneOffset = Optional.empty(); private UploadChatFilesRequest uploadChatFilesRequest; @@ -126,6 +178,31 @@ private Builder() { } + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** * The offset of the client's timezone in minutes from UTC. e.g. PDT is -420 because it's 7 hours * behind UTC. @@ -156,7 +233,7 @@ public Builder uploadChatFilesRequest(UploadChatFilesRequest uploadChatFilesRequ public UploadchatfilesRequest build() { return new UploadchatfilesRequest( - timezoneOffset, uploadChatFilesRequest); + locale, timezoneOffset, uploadChatFilesRequest); } } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/UploadchatfilesRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UploadchatfilesRequestBuilder.java index 59ead038..866f3abd 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/UploadchatfilesRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/UploadchatfilesRequestBuilder.java @@ -11,10 +11,12 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; public class UploadchatfilesRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private UploadChatFilesRequest uploadChatFilesRequest; private final SDKConfiguration sdkConfiguration; @@ -24,6 +26,18 @@ public UploadchatfilesRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public UploadchatfilesRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public UploadchatfilesRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public UploadchatfilesRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -45,7 +59,8 @@ public UploadchatfilesRequestBuilder uploadChatFilesRequest(UploadChatFilesReque private UploadchatfilesRequest buildRequest() { - UploadchatfilesRequest request = new UploadchatfilesRequest(timezoneOffset, + UploadchatfilesRequest request = new UploadchatfilesRequest(locale, + timezoneOffset, uploadChatFilesRequest); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/VerifyRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/VerifyRequest.java new file mode 100644 index 00000000..e8d56cbb --- /dev/null +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/VerifyRequest.java @@ -0,0 +1,184 @@ +/* + * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. + */ +package com.glean.api_client.glean_api_client.models.operations; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonIgnore; +import com.glean.api_client.glean_api_client.utils.SpeakeasyMetadata; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.Override; +import java.lang.String; +import java.util.Optional; + + +public class VerifyRequest { + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @SpeakeasyMetadata("queryParam:style=form,explode=true,name=locale") + private Optional locale; + + /** + * Details about the verification request. + */ + @SpeakeasyMetadata("request:mediaType=application/json") + private com.glean.api_client.glean_api_client.models.components.VerifyRequest verifyRequest; + + @JsonCreator + public VerifyRequest( + Optional locale, + com.glean.api_client.glean_api_client.models.components.VerifyRequest verifyRequest) { + Utils.checkNotNull(locale, "locale"); + Utils.checkNotNull(verifyRequest, "verifyRequest"); + this.locale = locale; + this.verifyRequest = verifyRequest; + } + + public VerifyRequest( + com.glean.api_client.glean_api_client.models.components.VerifyRequest verifyRequest) { + this(Optional.empty(), verifyRequest); + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + @JsonIgnore + public Optional locale() { + return locale; + } + + /** + * Details about the verification request. + */ + @JsonIgnore + public com.glean.api_client.glean_api_client.models.components.VerifyRequest verifyRequest() { + return verifyRequest; + } + + public static Builder builder() { + return new Builder(); + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public VerifyRequest withLocale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public VerifyRequest withLocale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + /** + * Details about the verification request. + */ + public VerifyRequest withVerifyRequest(com.glean.api_client.glean_api_client.models.components.VerifyRequest verifyRequest) { + Utils.checkNotNull(verifyRequest, "verifyRequest"); + this.verifyRequest = verifyRequest; + return this; + } + + @Override + public boolean equals(java.lang.Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VerifyRequest other = (VerifyRequest) o; + return + Utils.enhancedDeepEquals(this.locale, other.locale) && + Utils.enhancedDeepEquals(this.verifyRequest, other.verifyRequest); + } + + @Override + public int hashCode() { + return Utils.enhancedHash( + locale, verifyRequest); + } + + @Override + public String toString() { + return Utils.toString(VerifyRequest.class, + "locale", locale, + "verifyRequest", verifyRequest); + } + + @SuppressWarnings("UnusedReturnValue") + public final static class Builder { + + private Optional locale = Optional.empty(); + + private com.glean.api_client.glean_api_client.models.components.VerifyRequest verifyRequest; + + private Builder() { + // force use of static builder() method + } + + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.ofNullable(locale); + return this; + } + + /** + * The client's preferred locale in rfc5646 format (e.g. `en`, `ja`, `pt-BR`). If omitted, the + * `Accept-Language` will be used. + * + *

If not present or not supported, defaults to the closest match or `en`. + */ + public Builder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + + + /** + * Details about the verification request. + */ + public Builder verifyRequest(com.glean.api_client.glean_api_client.models.components.VerifyRequest verifyRequest) { + Utils.checkNotNull(verifyRequest, "verifyRequest"); + this.verifyRequest = verifyRequest; + return this; + } + + public VerifyRequest build() { + + return new VerifyRequest( + locale, verifyRequest); + } + + } +} diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/VerifyRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/VerifyRequestBuilder.java index 35e129f1..2cdccb33 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/VerifyRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/VerifyRequestBuilder.java @@ -10,27 +10,52 @@ import com.glean.api_client.glean_api_client.operations.Verify; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; public class VerifyRequestBuilder { - private VerifyRequest request; + private Optional locale = Optional.empty(); + private VerifyRequest verifyRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public VerifyRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public VerifyRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public VerifyRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public VerifyRequestBuilder request(VerifyRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public VerifyRequestBuilder verifyRequest(VerifyRequest verifyRequest) { + Utils.checkNotNull(verifyRequest, "verifyRequest"); + this.verifyRequest = verifyRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.VerifyRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.VerifyRequest request = new com.glean.api_client.glean_api_client.models.operations.VerifyRequest(locale, + verifyRequest); + + return request; + } + public VerifyResponse call() { - RequestOperation operation + RequestOperation operation = new Verify.Sync(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.VerifyRequest request = buildRequest(); return operation.handleResponse(operation.doRequest(request)); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AddcollectionitemsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AddcollectionitemsRequestBuilder.java index 577b0333..d4df1571 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AddcollectionitemsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AddcollectionitemsRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.AddCollectionItemsRequest; +import com.glean.api_client.glean_api_client.models.operations.AddcollectionitemsRequest; import com.glean.api_client.glean_api_client.operations.Addcollectionitems; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class AddcollectionitemsRequestBuilder { - private AddCollectionItemsRequest request; + private Optional locale = Optional.empty(); + private AddCollectionItemsRequest addCollectionItemsRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public AddcollectionitemsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public AddcollectionitemsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public AddcollectionitemsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public AddcollectionitemsRequestBuilder request(AddCollectionItemsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public AddcollectionitemsRequestBuilder addCollectionItemsRequest(AddCollectionItemsRequest addCollectionItemsRequest) { + Utils.checkNotNull(addCollectionItemsRequest, "addCollectionItemsRequest"); + this.addCollectionItemsRequest = addCollectionItemsRequest; return this; } + + private AddcollectionitemsRequest buildRequest() { + + AddcollectionitemsRequest request = new AddcollectionitemsRequest(locale, + addCollectionItemsRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Addcollectionitems.Async(sdkConfiguration, _headers); + AddcollectionitemsRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AddverificationreminderRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AddverificationreminderRequestBuilder.java index 3de8778b..ccaae9b7 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AddverificationreminderRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AddverificationreminderRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.ReminderRequest; +import com.glean.api_client.glean_api_client.models.operations.AddverificationreminderRequest; import com.glean.api_client.glean_api_client.operations.Addverificationreminder; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class AddverificationreminderRequestBuilder { - private ReminderRequest request; + private Optional locale = Optional.empty(); + private ReminderRequest reminderRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public AddverificationreminderRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public AddverificationreminderRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public AddverificationreminderRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public AddverificationreminderRequestBuilder request(ReminderRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public AddverificationreminderRequestBuilder reminderRequest(ReminderRequest reminderRequest) { + Utils.checkNotNull(reminderRequest, "reminderRequest"); + this.reminderRequest = reminderRequest; return this; } + + private AddverificationreminderRequest buildRequest() { + + AddverificationreminderRequest request = new AddverificationreminderRequest(locale, + reminderRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Addverificationreminder.Async(sdkConfiguration, _headers); + AddverificationreminderRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AdminsearchRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AdminsearchRequestBuilder.java index 51ef912e..23faecaf 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AdminsearchRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AdminsearchRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.SearchRequest; +import com.glean.api_client.glean_api_client.models.operations.AdminsearchRequest; import com.glean.api_client.glean_api_client.operations.Adminsearch; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class AdminsearchRequestBuilder { - private SearchRequest request; + private Optional locale = Optional.empty(); + private SearchRequest searchRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public AdminsearchRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public AdminsearchRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public AdminsearchRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public AdminsearchRequestBuilder request(SearchRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public AdminsearchRequestBuilder searchRequest(SearchRequest searchRequest) { + Utils.checkNotNull(searchRequest, "searchRequest"); + this.searchRequest = searchRequest; return this; } + + private AdminsearchRequest buildRequest() { + + AdminsearchRequest request = new AdminsearchRequest(locale, + searchRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Adminsearch.Async(sdkConfiguration, _headers); + AdminsearchRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AutocompleteRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AutocompleteRequestBuilder.java index d9ca5295..53274b83 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AutocompleteRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/AutocompleteRequestBuilder.java @@ -10,28 +10,53 @@ import com.glean.api_client.glean_api_client.operations.Autocomplete; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class AutocompleteRequestBuilder { - private AutocompleteRequest request; + private Optional locale = Optional.empty(); + private AutocompleteRequest autocompleteRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public AutocompleteRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public AutocompleteRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public AutocompleteRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public AutocompleteRequestBuilder request(AutocompleteRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public AutocompleteRequestBuilder autocompleteRequest(AutocompleteRequest autocompleteRequest) { + Utils.checkNotNull(autocompleteRequest, "autocompleteRequest"); + this.autocompleteRequest = autocompleteRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest request = new com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest(locale, + autocompleteRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Autocomplete.Async(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ChatRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ChatRequestBuilder.java index 400945a6..50866fbc 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ChatRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ChatRequestBuilder.java @@ -11,11 +11,13 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; public class ChatRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private ChatRequest chatRequest; private final SDKConfiguration sdkConfiguration; @@ -25,6 +27,18 @@ public ChatRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public ChatRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ChatRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public ChatRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -46,7 +60,8 @@ public ChatRequestBuilder chatRequest(ChatRequest chatRequest) { private com.glean.api_client.glean_api_client.models.operations.ChatRequest buildRequest() { - com.glean.api_client.glean_api_client.models.operations.ChatRequest request = new com.glean.api_client.glean_api_client.models.operations.ChatRequest(timezoneOffset, + com.glean.api_client.glean_api_client.models.operations.ChatRequest request = new com.glean.api_client.glean_api_client.models.operations.ChatRequest(locale, + timezoneOffset, chatRequest); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreateannouncementRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreateannouncementRequestBuilder.java index 5d27a671..38479384 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreateannouncementRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreateannouncementRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.CreateAnnouncementRequest; +import com.glean.api_client.glean_api_client.models.operations.CreateannouncementRequest; import com.glean.api_client.glean_api_client.operations.Createannouncement; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class CreateannouncementRequestBuilder { - private CreateAnnouncementRequest request; + private Optional locale = Optional.empty(); + private CreateAnnouncementRequest createAnnouncementRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public CreateannouncementRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public CreateannouncementRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public CreateannouncementRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public CreateannouncementRequestBuilder request(CreateAnnouncementRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public CreateannouncementRequestBuilder createAnnouncementRequest(CreateAnnouncementRequest createAnnouncementRequest) { + Utils.checkNotNull(createAnnouncementRequest, "createAnnouncementRequest"); + this.createAnnouncementRequest = createAnnouncementRequest; return this; } + + private CreateannouncementRequest buildRequest() { + + CreateannouncementRequest request = new CreateannouncementRequest(locale, + createAnnouncementRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Createannouncement.Async(sdkConfiguration, _headers); + CreateannouncementRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreateanswerRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreateanswerRequestBuilder.java index ff930854..ea6e5675 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreateanswerRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreateanswerRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.CreateAnswerRequest; +import com.glean.api_client.glean_api_client.models.operations.CreateanswerRequest; import com.glean.api_client.glean_api_client.operations.Createanswer; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class CreateanswerRequestBuilder { - private CreateAnswerRequest request; + private Optional locale = Optional.empty(); + private CreateAnswerRequest createAnswerRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public CreateanswerRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public CreateanswerRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public CreateanswerRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public CreateanswerRequestBuilder request(CreateAnswerRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public CreateanswerRequestBuilder createAnswerRequest(CreateAnswerRequest createAnswerRequest) { + Utils.checkNotNull(createAnswerRequest, "createAnswerRequest"); + this.createAnswerRequest = createAnswerRequest; return this; } + + private CreateanswerRequest buildRequest() { + + CreateanswerRequest request = new CreateanswerRequest(locale, + createAnswerRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Createanswer.Async(sdkConfiguration, _headers); + CreateanswerRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreatecollectionRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreatecollectionRequestBuilder.java index 1535b747..b712b1c1 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreatecollectionRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreatecollectionRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.CreateCollectionRequest; +import com.glean.api_client.glean_api_client.models.operations.CreatecollectionRequest; import com.glean.api_client.glean_api_client.operations.Createcollection; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class CreatecollectionRequestBuilder { - private CreateCollectionRequest request; + private Optional locale = Optional.empty(); + private CreateCollectionRequest createCollectionRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public CreatecollectionRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public CreatecollectionRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public CreatecollectionRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public CreatecollectionRequestBuilder request(CreateCollectionRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public CreatecollectionRequestBuilder createCollectionRequest(CreateCollectionRequest createCollectionRequest) { + Utils.checkNotNull(createCollectionRequest, "createCollectionRequest"); + this.createCollectionRequest = createCollectionRequest; return this; } + + private CreatecollectionRequest buildRequest() { + + CreatecollectionRequest request = new CreatecollectionRequest(locale, + createCollectionRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Createcollection.Async(sdkConfiguration, _headers); + CreatecollectionRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreateshortcutRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreateshortcutRequestBuilder.java index 0486eae4..03ad411c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreateshortcutRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/CreateshortcutRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.CreateShortcutRequest; +import com.glean.api_client.glean_api_client.models.operations.CreateshortcutRequest; import com.glean.api_client.glean_api_client.operations.Createshortcut; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class CreateshortcutRequestBuilder { - private CreateShortcutRequest request; + private Optional locale = Optional.empty(); + private CreateShortcutRequest createShortcutRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public CreateshortcutRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public CreateshortcutRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public CreateshortcutRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public CreateshortcutRequestBuilder request(CreateShortcutRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public CreateshortcutRequestBuilder createShortcutRequest(CreateShortcutRequest createShortcutRequest) { + Utils.checkNotNull(createShortcutRequest, "createShortcutRequest"); + this.createShortcutRequest = createShortcutRequest; return this; } + + private CreateshortcutRequest buildRequest() { + + CreateshortcutRequest request = new CreateshortcutRequest(locale, + createShortcutRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Createshortcut.Async(sdkConfiguration, _headers); + CreateshortcutRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteallchatsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteallchatsRequestBuilder.java index 7f4e9c89..ccd61873 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteallchatsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteallchatsRequestBuilder.java @@ -11,11 +11,13 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; public class DeleteallchatsRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -24,6 +26,18 @@ public DeleteallchatsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public DeleteallchatsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeleteallchatsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public DeleteallchatsRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -39,7 +53,8 @@ public DeleteallchatsRequestBuilder timezoneOffset(Optional timezoneOffset private DeleteallchatsRequest buildRequest() { - DeleteallchatsRequest request = new DeleteallchatsRequest(timezoneOffset); + DeleteallchatsRequest request = new DeleteallchatsRequest(locale, + timezoneOffset); return request; } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteannouncementRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteannouncementRequestBuilder.java index 51cde196..4eed755f 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteannouncementRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteannouncementRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.DeleteAnnouncementRequest; +import com.glean.api_client.glean_api_client.models.operations.DeleteannouncementRequest; import com.glean.api_client.glean_api_client.operations.Deleteannouncement; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class DeleteannouncementRequestBuilder { - private DeleteAnnouncementRequest request; + private Optional locale = Optional.empty(); + private DeleteAnnouncementRequest deleteAnnouncementRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public DeleteannouncementRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public DeleteannouncementRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeleteannouncementRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public DeleteannouncementRequestBuilder request(DeleteAnnouncementRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public DeleteannouncementRequestBuilder deleteAnnouncementRequest(DeleteAnnouncementRequest deleteAnnouncementRequest) { + Utils.checkNotNull(deleteAnnouncementRequest, "deleteAnnouncementRequest"); + this.deleteAnnouncementRequest = deleteAnnouncementRequest; return this; } + + private DeleteannouncementRequest buildRequest() { + + DeleteannouncementRequest request = new DeleteannouncementRequest(locale, + deleteAnnouncementRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Deleteannouncement.Async(sdkConfiguration, _headers); + DeleteannouncementRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteanswerRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteanswerRequestBuilder.java index 695e2544..d313af29 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteanswerRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteanswerRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.DeleteAnswerRequest; +import com.glean.api_client.glean_api_client.models.operations.DeleteanswerRequest; import com.glean.api_client.glean_api_client.operations.Deleteanswer; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class DeleteanswerRequestBuilder { - private DeleteAnswerRequest request; + private Optional locale = Optional.empty(); + private DeleteAnswerRequest deleteAnswerRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public DeleteanswerRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public DeleteanswerRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeleteanswerRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public DeleteanswerRequestBuilder request(DeleteAnswerRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public DeleteanswerRequestBuilder deleteAnswerRequest(DeleteAnswerRequest deleteAnswerRequest) { + Utils.checkNotNull(deleteAnswerRequest, "deleteAnswerRequest"); + this.deleteAnswerRequest = deleteAnswerRequest; return this; } + + private DeleteanswerRequest buildRequest() { + + DeleteanswerRequest request = new DeleteanswerRequest(locale, + deleteAnswerRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Deleteanswer.Async(sdkConfiguration, _headers); + DeleteanswerRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletechatfilesRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletechatfilesRequestBuilder.java index 638e902e..d0b24118 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletechatfilesRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletechatfilesRequestBuilder.java @@ -12,11 +12,13 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; public class DeletechatfilesRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private DeleteChatFilesRequest deleteChatFilesRequest; private final SDKConfiguration sdkConfiguration; @@ -26,6 +28,18 @@ public DeletechatfilesRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public DeletechatfilesRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeletechatfilesRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public DeletechatfilesRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -47,7 +61,8 @@ public DeletechatfilesRequestBuilder deleteChatFilesRequest(DeleteChatFilesReque private DeletechatfilesRequest buildRequest() { - DeletechatfilesRequest request = new DeletechatfilesRequest(timezoneOffset, + DeletechatfilesRequest request = new DeletechatfilesRequest(locale, + timezoneOffset, deleteChatFilesRequest); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletechatsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletechatsRequestBuilder.java index e59d414f..ad03fee9 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletechatsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletechatsRequestBuilder.java @@ -12,11 +12,13 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; public class DeletechatsRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private DeleteChatsRequest deleteChatsRequest; private final SDKConfiguration sdkConfiguration; @@ -26,6 +28,18 @@ public DeletechatsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public DeletechatsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeletechatsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public DeletechatsRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -47,7 +61,8 @@ public DeletechatsRequestBuilder deleteChatsRequest(DeleteChatsRequest deleteCha private DeletechatsRequest buildRequest() { - DeletechatsRequest request = new DeletechatsRequest(timezoneOffset, + DeletechatsRequest request = new DeletechatsRequest(locale, + timezoneOffset, deleteChatsRequest); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletecollectionRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletecollectionRequestBuilder.java index dab83644..6dd68002 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletecollectionRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletecollectionRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.DeleteCollectionRequest; +import com.glean.api_client.glean_api_client.models.operations.DeletecollectionRequest; import com.glean.api_client.glean_api_client.operations.Deletecollection; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class DeletecollectionRequestBuilder { - private DeleteCollectionRequest request; + private Optional locale = Optional.empty(); + private DeleteCollectionRequest deleteCollectionRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public DeletecollectionRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public DeletecollectionRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeletecollectionRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public DeletecollectionRequestBuilder request(DeleteCollectionRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public DeletecollectionRequestBuilder deleteCollectionRequest(DeleteCollectionRequest deleteCollectionRequest) { + Utils.checkNotNull(deleteCollectionRequest, "deleteCollectionRequest"); + this.deleteCollectionRequest = deleteCollectionRequest; return this; } + + private DeletecollectionRequest buildRequest() { + + DeletecollectionRequest request = new DeletecollectionRequest(locale, + deleteCollectionRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Deletecollection.Async(sdkConfiguration, _headers); + DeletecollectionRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletecollectionitemRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletecollectionitemRequestBuilder.java index 895a27a0..e57d0f1b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletecollectionitemRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeletecollectionitemRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.DeleteCollectionItemRequest; +import com.glean.api_client.glean_api_client.models.operations.DeletecollectionitemRequest; import com.glean.api_client.glean_api_client.operations.Deletecollectionitem; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class DeletecollectionitemRequestBuilder { - private DeleteCollectionItemRequest request; + private Optional locale = Optional.empty(); + private DeleteCollectionItemRequest deleteCollectionItemRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public DeletecollectionitemRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public DeletecollectionitemRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeletecollectionitemRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public DeletecollectionitemRequestBuilder request(DeleteCollectionItemRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public DeletecollectionitemRequestBuilder deleteCollectionItemRequest(DeleteCollectionItemRequest deleteCollectionItemRequest) { + Utils.checkNotNull(deleteCollectionItemRequest, "deleteCollectionItemRequest"); + this.deleteCollectionItemRequest = deleteCollectionItemRequest; return this; } + + private DeletecollectionitemRequest buildRequest() { + + DeletecollectionitemRequest request = new DeletecollectionitemRequest(locale, + deleteCollectionItemRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Deletecollectionitem.Async(sdkConfiguration, _headers); + DeletecollectionitemRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteshortcutRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteshortcutRequestBuilder.java index 0dbebbb2..0e28e319 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteshortcutRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/DeleteshortcutRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.DeleteShortcutRequest; +import com.glean.api_client.glean_api_client.models.operations.DeleteshortcutRequest; import com.glean.api_client.glean_api_client.operations.Deleteshortcut; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class DeleteshortcutRequestBuilder { - private DeleteShortcutRequest request; + private Optional locale = Optional.empty(); + private DeleteShortcutRequest deleteShortcutRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public DeleteshortcutRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public DeleteshortcutRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public DeleteshortcutRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public DeleteshortcutRequestBuilder request(DeleteShortcutRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public DeleteshortcutRequestBuilder deleteShortcutRequest(DeleteShortcutRequest deleteShortcutRequest) { + Utils.checkNotNull(deleteShortcutRequest, "deleteShortcutRequest"); + this.deleteShortcutRequest = deleteShortcutRequest; return this; } + + private DeleteshortcutRequest buildRequest() { + + DeleteshortcutRequest request = new DeleteshortcutRequest(locale, + deleteShortcutRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Deleteshortcut.Async(sdkConfiguration, _headers); + DeleteshortcutRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditanswerRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditanswerRequestBuilder.java index e8db51cb..43073a3e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditanswerRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditanswerRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.EditAnswerRequest; +import com.glean.api_client.glean_api_client.models.operations.EditanswerRequest; import com.glean.api_client.glean_api_client.operations.Editanswer; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class EditanswerRequestBuilder { - private EditAnswerRequest request; + private Optional locale = Optional.empty(); + private EditAnswerRequest editAnswerRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public EditanswerRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public EditanswerRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public EditanswerRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public EditanswerRequestBuilder request(EditAnswerRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public EditanswerRequestBuilder editAnswerRequest(EditAnswerRequest editAnswerRequest) { + Utils.checkNotNull(editAnswerRequest, "editAnswerRequest"); + this.editAnswerRequest = editAnswerRequest; return this; } + + private EditanswerRequest buildRequest() { + + EditanswerRequest request = new EditanswerRequest(locale, + editAnswerRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Editanswer.Async(sdkConfiguration, _headers); + EditanswerRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditcollectionRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditcollectionRequestBuilder.java index 3a7e8d88..9a03e005 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditcollectionRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditcollectionRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.EditCollectionRequest; +import com.glean.api_client.glean_api_client.models.operations.EditcollectionRequest; import com.glean.api_client.glean_api_client.operations.Editcollection; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class EditcollectionRequestBuilder { - private EditCollectionRequest request; + private Optional locale = Optional.empty(); + private EditCollectionRequest editCollectionRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public EditcollectionRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public EditcollectionRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public EditcollectionRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public EditcollectionRequestBuilder request(EditCollectionRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public EditcollectionRequestBuilder editCollectionRequest(EditCollectionRequest editCollectionRequest) { + Utils.checkNotNull(editCollectionRequest, "editCollectionRequest"); + this.editCollectionRequest = editCollectionRequest; return this; } + + private EditcollectionRequest buildRequest() { + + EditcollectionRequest request = new EditcollectionRequest(locale, + editCollectionRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Editcollection.Async(sdkConfiguration, _headers); + EditcollectionRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditcollectionitemRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditcollectionitemRequestBuilder.java index 06231050..795d46c2 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditcollectionitemRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditcollectionitemRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.EditCollectionItemRequest; +import com.glean.api_client.glean_api_client.models.operations.EditcollectionitemRequest; import com.glean.api_client.glean_api_client.operations.Editcollectionitem; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class EditcollectionitemRequestBuilder { - private EditCollectionItemRequest request; + private Optional locale = Optional.empty(); + private EditCollectionItemRequest editCollectionItemRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public EditcollectionitemRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public EditcollectionitemRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public EditcollectionitemRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public EditcollectionitemRequestBuilder request(EditCollectionItemRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public EditcollectionitemRequestBuilder editCollectionItemRequest(EditCollectionItemRequest editCollectionItemRequest) { + Utils.checkNotNull(editCollectionItemRequest, "editCollectionItemRequest"); + this.editCollectionItemRequest = editCollectionItemRequest; return this; } + + private EditcollectionitemRequest buildRequest() { + + EditcollectionitemRequest request = new EditcollectionitemRequest(locale, + editCollectionItemRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Editcollectionitem.Async(sdkConfiguration, _headers); + EditcollectionitemRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditpinRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditpinRequestBuilder.java index 35330290..31980eb1 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditpinRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/EditpinRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.EditPinRequest; +import com.glean.api_client.glean_api_client.models.operations.EditpinRequest; import com.glean.api_client.glean_api_client.operations.Editpin; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class EditpinRequestBuilder { - private EditPinRequest request; + private Optional locale = Optional.empty(); + private EditPinRequest editPinRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public EditpinRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public EditpinRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public EditpinRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public EditpinRequestBuilder request(EditPinRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public EditpinRequestBuilder editPinRequest(EditPinRequest editPinRequest) { + Utils.checkNotNull(editPinRequest, "editPinRequest"); + this.editPinRequest = editPinRequest; return this; } + + private EditpinRequest buildRequest() { + + EditpinRequest request = new EditpinRequest(locale, + editPinRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Editpin.Async(sdkConfiguration, _headers); + EditpinRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/FeedRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/FeedRequestBuilder.java index d3f8838b..772d9e1c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/FeedRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/FeedRequestBuilder.java @@ -10,28 +10,53 @@ import com.glean.api_client.glean_api_client.operations.Feed; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class FeedRequestBuilder { - private FeedRequest request; + private Optional locale = Optional.empty(); + private FeedRequest feedRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public FeedRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public FeedRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public FeedRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public FeedRequestBuilder request(FeedRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public FeedRequestBuilder feedRequest(FeedRequest feedRequest) { + Utils.checkNotNull(feedRequest, "feedRequest"); + this.feedRequest = feedRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.FeedRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.FeedRequest request = new com.glean.api_client.glean_api_client.models.operations.FeedRequest(locale, + feedRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Feed.Async(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.FeedRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetAgentRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetAgentRequestBuilder.java index 1244b9fc..612952bb 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetAgentRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetAgentRequestBuilder.java @@ -17,6 +17,7 @@ public class GetAgentRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private String agentId; private final SDKConfiguration sdkConfiguration; @@ -26,6 +27,18 @@ public GetAgentRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public GetAgentRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetAgentRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public GetAgentRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -47,7 +60,8 @@ public GetAgentRequestBuilder agentId(String agentId) { private GetAgentRequest buildRequest() { - GetAgentRequest request = new GetAgentRequest(timezoneOffset, + GetAgentRequest request = new GetAgentRequest(locale, + timezoneOffset, agentId); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetAgentSchemasRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetAgentSchemasRequestBuilder.java index aa2cb4f2..2fde01db 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetAgentSchemasRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetAgentSchemasRequestBuilder.java @@ -17,6 +17,7 @@ public class GetAgentSchemasRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private String agentId; private final SDKConfiguration sdkConfiguration; @@ -26,6 +27,18 @@ public GetAgentSchemasRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public GetAgentSchemasRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetAgentSchemasRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public GetAgentSchemasRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -47,7 +60,8 @@ public GetAgentSchemasRequestBuilder agentId(String agentId) { private GetAgentSchemasRequest buildRequest() { - GetAgentSchemasRequest request = new GetAgentSchemasRequest(timezoneOffset, + GetAgentSchemasRequest request = new GetAgentSchemasRequest(locale, + timezoneOffset, agentId); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetanswerRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetanswerRequestBuilder.java index 240119e6..626be7e1 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetanswerRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetanswerRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.GetAnswerRequest; +import com.glean.api_client.glean_api_client.models.operations.GetanswerRequest; import com.glean.api_client.glean_api_client.operations.Getanswer; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class GetanswerRequestBuilder { - private GetAnswerRequest request; + private Optional locale = Optional.empty(); + private GetAnswerRequest getAnswerRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetanswerRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetanswerRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetanswerRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public GetanswerRequestBuilder request(GetAnswerRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetanswerRequestBuilder getAnswerRequest(GetAnswerRequest getAnswerRequest) { + Utils.checkNotNull(getAnswerRequest, "getAnswerRequest"); + this.getAnswerRequest = getAnswerRequest; return this; } + + private GetanswerRequest buildRequest() { + + GetanswerRequest request = new GetanswerRequest(locale, + getAnswerRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Getanswer.Async(sdkConfiguration, _headers); + GetanswerRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetchatRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetchatRequestBuilder.java index 5ea89916..d58912cb 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetchatRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetchatRequestBuilder.java @@ -12,11 +12,13 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; public class GetchatRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private GetChatRequest getChatRequest; private final SDKConfiguration sdkConfiguration; @@ -26,6 +28,18 @@ public GetchatRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public GetchatRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetchatRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public GetchatRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -47,7 +61,8 @@ public GetchatRequestBuilder getChatRequest(GetChatRequest getChatRequest) { private GetchatRequest buildRequest() { - GetchatRequest request = new GetchatRequest(timezoneOffset, + GetchatRequest request = new GetchatRequest(locale, + timezoneOffset, getChatRequest); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetchatapplicationRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetchatapplicationRequestBuilder.java index d3ed2ad4..921ba214 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetchatapplicationRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetchatapplicationRequestBuilder.java @@ -12,11 +12,13 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; public class GetchatapplicationRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private GetChatApplicationRequest getChatApplicationRequest; private final SDKConfiguration sdkConfiguration; @@ -26,6 +28,18 @@ public GetchatapplicationRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public GetchatapplicationRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetchatapplicationRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public GetchatapplicationRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -47,7 +61,8 @@ public GetchatapplicationRequestBuilder getChatApplicationRequest(GetChatApplica private GetchatapplicationRequest buildRequest() { - GetchatapplicationRequest request = new GetchatapplicationRequest(timezoneOffset, + GetchatapplicationRequest request = new GetchatapplicationRequest(locale, + timezoneOffset, getChatApplicationRequest); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetchatfilesRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetchatfilesRequestBuilder.java index 78e33061..9922f571 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetchatfilesRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetchatfilesRequestBuilder.java @@ -12,11 +12,13 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; public class GetchatfilesRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private GetChatFilesRequest getChatFilesRequest; private final SDKConfiguration sdkConfiguration; @@ -26,6 +28,18 @@ public GetchatfilesRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public GetchatfilesRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetchatfilesRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public GetchatfilesRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -47,7 +61,8 @@ public GetchatfilesRequestBuilder getChatFilesRequest(GetChatFilesRequest getCha private GetchatfilesRequest buildRequest() { - GetchatfilesRequest request = new GetchatfilesRequest(timezoneOffset, + GetchatfilesRequest request = new GetchatfilesRequest(locale, + timezoneOffset, getChatFilesRequest); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetcollectionRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetcollectionRequestBuilder.java index 6443ce9f..53733fc0 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetcollectionRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetcollectionRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.GetCollectionRequest; +import com.glean.api_client.glean_api_client.models.operations.GetcollectionRequest; import com.glean.api_client.glean_api_client.operations.Getcollection; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class GetcollectionRequestBuilder { - private GetCollectionRequest request; + private Optional locale = Optional.empty(); + private GetCollectionRequest getCollectionRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetcollectionRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetcollectionRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetcollectionRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public GetcollectionRequestBuilder request(GetCollectionRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetcollectionRequestBuilder getCollectionRequest(GetCollectionRequest getCollectionRequest) { + Utils.checkNotNull(getCollectionRequest, "getCollectionRequest"); + this.getCollectionRequest = getCollectionRequest; return this; } + + private GetcollectionRequest buildRequest() { + + GetcollectionRequest request = new GetcollectionRequest(locale, + getCollectionRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Getcollection.Async(sdkConfiguration, _headers); + GetcollectionRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetdocpermissionsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetdocpermissionsRequestBuilder.java index 36945479..4d8e64e3 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetdocpermissionsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetdocpermissionsRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.GetDocPermissionsRequest; +import com.glean.api_client.glean_api_client.models.operations.GetdocpermissionsRequest; import com.glean.api_client.glean_api_client.operations.Getdocpermissions; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class GetdocpermissionsRequestBuilder { - private GetDocPermissionsRequest request; + private Optional locale = Optional.empty(); + private GetDocPermissionsRequest getDocPermissionsRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetdocpermissionsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetdocpermissionsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetdocpermissionsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public GetdocpermissionsRequestBuilder request(GetDocPermissionsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetdocpermissionsRequestBuilder getDocPermissionsRequest(GetDocPermissionsRequest getDocPermissionsRequest) { + Utils.checkNotNull(getDocPermissionsRequest, "getDocPermissionsRequest"); + this.getDocPermissionsRequest = getDocPermissionsRequest; return this; } + + private GetdocpermissionsRequest buildRequest() { + + GetdocpermissionsRequest request = new GetdocpermissionsRequest(locale, + getDocPermissionsRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Getdocpermissions.Async(sdkConfiguration, _headers); + GetdocpermissionsRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetdocumentsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetdocumentsRequestBuilder.java index 3ed7eda5..b08ee466 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetdocumentsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetdocumentsRequestBuilder.java @@ -7,15 +7,18 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.GetDocumentsRequest; +import com.glean.api_client.glean_api_client.models.operations.GetdocumentsRequest; import com.glean.api_client.glean_api_client.operations.Getdocuments; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; public class GetdocumentsRequestBuilder { - private Optional request = Optional.empty(); + private Optional locale = Optional.empty(); + private Optional getDocumentsRequest = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -23,22 +26,44 @@ public GetdocumentsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } - public GetdocumentsRequestBuilder request(GetDocumentsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); + public GetdocumentsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); return this; } - public GetdocumentsRequestBuilder request(Optional request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetdocumentsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; return this; } + + public GetdocumentsRequestBuilder getDocumentsRequest(GetDocumentsRequest getDocumentsRequest) { + Utils.checkNotNull(getDocumentsRequest, "getDocumentsRequest"); + this.getDocumentsRequest = Optional.of(getDocumentsRequest); + return this; + } + + public GetdocumentsRequestBuilder getDocumentsRequest(Optional getDocumentsRequest) { + Utils.checkNotNull(getDocumentsRequest, "getDocumentsRequest"); + this.getDocumentsRequest = getDocumentsRequest; + return this; + } + + + private GetdocumentsRequest buildRequest() { + + GetdocumentsRequest request = new GetdocumentsRequest(locale, + getDocumentsRequest); + + return request; + } public CompletableFuture call() { - AsyncRequestOperation, GetdocumentsResponse> operation + AsyncRequestOperation operation = new Getdocuments.Async(sdkConfiguration, _headers); + GetdocumentsRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetdocumentsbyfacetsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetdocumentsbyfacetsRequestBuilder.java index 7589957b..7b488506 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetdocumentsbyfacetsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetdocumentsbyfacetsRequestBuilder.java @@ -7,15 +7,18 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.GetDocumentsByFacetsRequest; +import com.glean.api_client.glean_api_client.models.operations.GetdocumentsbyfacetsRequest; import com.glean.api_client.glean_api_client.operations.Getdocumentsbyfacets; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; public class GetdocumentsbyfacetsRequestBuilder { - private Optional request = Optional.empty(); + private Optional locale = Optional.empty(); + private Optional getDocumentsByFacetsRequest = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -23,22 +26,44 @@ public GetdocumentsbyfacetsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } - public GetdocumentsbyfacetsRequestBuilder request(GetDocumentsByFacetsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = Optional.of(request); + public GetdocumentsbyfacetsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); return this; } - public GetdocumentsbyfacetsRequestBuilder request(Optional request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetdocumentsbyfacetsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; return this; } + + public GetdocumentsbyfacetsRequestBuilder getDocumentsByFacetsRequest(GetDocumentsByFacetsRequest getDocumentsByFacetsRequest) { + Utils.checkNotNull(getDocumentsByFacetsRequest, "getDocumentsByFacetsRequest"); + this.getDocumentsByFacetsRequest = Optional.of(getDocumentsByFacetsRequest); + return this; + } + + public GetdocumentsbyfacetsRequestBuilder getDocumentsByFacetsRequest(Optional getDocumentsByFacetsRequest) { + Utils.checkNotNull(getDocumentsByFacetsRequest, "getDocumentsByFacetsRequest"); + this.getDocumentsByFacetsRequest = getDocumentsByFacetsRequest; + return this; + } + + + private GetdocumentsbyfacetsRequest buildRequest() { + + GetdocumentsbyfacetsRequest request = new GetdocumentsbyfacetsRequest(locale, + getDocumentsByFacetsRequest); + + return request; + } public CompletableFuture call() { - AsyncRequestOperation, GetdocumentsbyfacetsResponse> operation + AsyncRequestOperation operation = new Getdocumentsbyfacets.Async(sdkConfiguration, _headers); + GetdocumentsbyfacetsRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetpinRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetpinRequestBuilder.java index 04aaa3f2..788c1830 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetpinRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetpinRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.GetPinRequest; +import com.glean.api_client.glean_api_client.models.operations.GetpinRequest; import com.glean.api_client.glean_api_client.operations.Getpin; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class GetpinRequestBuilder { - private GetPinRequest request; + private Optional locale = Optional.empty(); + private GetPinRequest getPinRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetpinRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetpinRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetpinRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public GetpinRequestBuilder request(GetPinRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetpinRequestBuilder getPinRequest(GetPinRequest getPinRequest) { + Utils.checkNotNull(getPinRequest, "getPinRequest"); + this.getPinRequest = getPinRequest; return this; } + + private GetpinRequest buildRequest() { + + GetpinRequest request = new GetpinRequest(locale, + getPinRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Getpin.Async(sdkConfiguration, _headers); + GetpinRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetshortcutRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetshortcutRequestBuilder.java index a90c42d5..8fb4b6cb 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetshortcutRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/GetshortcutRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.GetShortcutRequestUnion; +import com.glean.api_client.glean_api_client.models.operations.GetshortcutRequest; import com.glean.api_client.glean_api_client.operations.Getshortcut; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class GetshortcutRequestBuilder { - private GetShortcutRequestUnion request; + private Optional locale = Optional.empty(); + private GetShortcutRequestUnion getShortcutRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public GetshortcutRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public GetshortcutRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public GetshortcutRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public GetshortcutRequestBuilder request(GetShortcutRequestUnion request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public GetshortcutRequestBuilder getShortcutRequest(GetShortcutRequestUnion getShortcutRequest) { + Utils.checkNotNull(getShortcutRequest, "getShortcutRequest"); + this.getShortcutRequest = getShortcutRequest; return this; } + + private GetshortcutRequest buildRequest() { + + GetshortcutRequest request = new GetshortcutRequest(locale, + getShortcutRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Getshortcut.Async(sdkConfiguration, _headers); + GetshortcutRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/InsightsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/InsightsRequestBuilder.java index 6506e29f..89ac19da 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/InsightsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/InsightsRequestBuilder.java @@ -10,28 +10,53 @@ import com.glean.api_client.glean_api_client.operations.Insights; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class InsightsRequestBuilder { - private InsightsRequest request; + private Optional locale = Optional.empty(); + private InsightsRequest insightsRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public InsightsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public InsightsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public InsightsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public InsightsRequestBuilder request(InsightsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public InsightsRequestBuilder insightsRequest(InsightsRequest insightsRequest) { + Utils.checkNotNull(insightsRequest, "insightsRequest"); + this.insightsRequest = insightsRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.InsightsRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.InsightsRequest request = new com.glean.api_client.glean_api_client.models.operations.InsightsRequest(locale, + insightsRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Insights.Async(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.InsightsRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListanswersRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListanswersRequestBuilder.java index 0196597e..dd0d2ad9 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListanswersRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListanswersRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.ListAnswersRequest; +import com.glean.api_client.glean_api_client.models.operations.ListanswersRequest; import com.glean.api_client.glean_api_client.operations.Listanswers; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class ListanswersRequestBuilder { - private ListAnswersRequest request; + private Optional locale = Optional.empty(); + private ListAnswersRequest listAnswersRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListanswersRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListanswersRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListanswersRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public ListanswersRequestBuilder request(ListAnswersRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public ListanswersRequestBuilder listAnswersRequest(ListAnswersRequest listAnswersRequest) { + Utils.checkNotNull(listAnswersRequest, "listAnswersRequest"); + this.listAnswersRequest = listAnswersRequest; return this; } + + private ListanswersRequest buildRequest() { + + ListanswersRequest request = new ListanswersRequest(locale, + listAnswersRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Listanswers.Async(sdkConfiguration, _headers); + ListanswersRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListchatsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListchatsRequestBuilder.java index d181182a..6b8cb31c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListchatsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListchatsRequestBuilder.java @@ -11,11 +11,13 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; public class ListchatsRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -24,6 +26,18 @@ public ListchatsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public ListchatsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListchatsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public ListchatsRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -39,7 +53,8 @@ public ListchatsRequestBuilder timezoneOffset(Optional timezoneOffset) { private ListchatsRequest buildRequest() { - ListchatsRequest request = new ListchatsRequest(timezoneOffset); + ListchatsRequest request = new ListchatsRequest(locale, + timezoneOffset); return request; } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListcollectionsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListcollectionsRequestBuilder.java index 0b021b83..530ea87e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListcollectionsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListcollectionsRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.ListCollectionsRequest; +import com.glean.api_client.glean_api_client.models.operations.ListcollectionsRequest; import com.glean.api_client.glean_api_client.operations.Listcollections; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class ListcollectionsRequestBuilder { - private ListCollectionsRequest request; + private Optional locale = Optional.empty(); + private ListCollectionsRequest listCollectionsRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListcollectionsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListcollectionsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListcollectionsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public ListcollectionsRequestBuilder request(ListCollectionsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public ListcollectionsRequestBuilder listCollectionsRequest(ListCollectionsRequest listCollectionsRequest) { + Utils.checkNotNull(listCollectionsRequest, "listCollectionsRequest"); + this.listCollectionsRequest = listCollectionsRequest; return this; } + + private ListcollectionsRequest buildRequest() { + + ListcollectionsRequest request = new ListcollectionsRequest(locale, + listCollectionsRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Listcollections.Async(sdkConfiguration, _headers); + ListcollectionsRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListentitiesRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListentitiesRequestBuilder.java index afcbb5b0..8b1950c2 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListentitiesRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListentitiesRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.ListEntitiesRequest; +import com.glean.api_client.glean_api_client.models.operations.ListentitiesRequest; import com.glean.api_client.glean_api_client.operations.Listentities; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class ListentitiesRequestBuilder { - private ListEntitiesRequest request; + private Optional locale = Optional.empty(); + private ListEntitiesRequest listEntitiesRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListentitiesRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListentitiesRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListentitiesRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public ListentitiesRequestBuilder request(ListEntitiesRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public ListentitiesRequestBuilder listEntitiesRequest(ListEntitiesRequest listEntitiesRequest) { + Utils.checkNotNull(listEntitiesRequest, "listEntitiesRequest"); + this.listEntitiesRequest = listEntitiesRequest; return this; } + + private ListentitiesRequest buildRequest() { + + ListentitiesRequest request = new ListentitiesRequest(locale, + listEntitiesRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Listentities.Async(sdkConfiguration, _headers); + ListentitiesRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListpinsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListpinsRequestBuilder.java index 937df44e..82600c4d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListpinsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListpinsRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.operations.ListpinsRequest; +import com.glean.api_client.glean_api_client.models.operations.ListpinsRequestBody; import com.glean.api_client.glean_api_client.operations.Listpins; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class ListpinsRequestBuilder { - private ListpinsRequest request; + private Optional locale = Optional.empty(); + private ListpinsRequestBody requestBody; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListpinsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListpinsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListpinsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public ListpinsRequestBuilder request(ListpinsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public ListpinsRequestBuilder requestBody(ListpinsRequestBody requestBody) { + Utils.checkNotNull(requestBody, "requestBody"); + this.requestBody = requestBody; return this; } + + private ListpinsRequest buildRequest() { + + ListpinsRequest request = new ListpinsRequest(locale, + requestBody); + + return request; + } + public CompletableFuture call() { AsyncRequestOperation operation = new Listpins.Async(sdkConfiguration, _headers); + ListpinsRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListshortcutsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListshortcutsRequestBuilder.java index 93967d3c..b2e3ebb7 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListshortcutsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListshortcutsRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.ListShortcutsPaginatedRequest; +import com.glean.api_client.glean_api_client.models.operations.ListshortcutsRequest; import com.glean.api_client.glean_api_client.operations.Listshortcuts; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class ListshortcutsRequestBuilder { - private ListShortcutsPaginatedRequest request; + private Optional locale = Optional.empty(); + private ListShortcutsPaginatedRequest listShortcutsPaginatedRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public ListshortcutsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public ListshortcutsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListshortcutsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public ListshortcutsRequestBuilder request(ListShortcutsPaginatedRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public ListshortcutsRequestBuilder listShortcutsPaginatedRequest(ListShortcutsPaginatedRequest listShortcutsPaginatedRequest) { + Utils.checkNotNull(listShortcutsPaginatedRequest, "listShortcutsPaginatedRequest"); + this.listShortcutsPaginatedRequest = listShortcutsPaginatedRequest; return this; } + + private ListshortcutsRequest buildRequest() { + + ListshortcutsRequest request = new ListshortcutsRequest(locale, + listShortcutsPaginatedRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Listshortcuts.Async(sdkConfiguration, _headers); + ListshortcutsRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListverificationsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListverificationsRequestBuilder.java index 78fb7362..65c06c42 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListverificationsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/ListverificationsRequestBuilder.java @@ -11,12 +11,14 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; public class ListverificationsRequestBuilder { private Optional count = Optional.empty(); + private Optional locale = Optional.empty(); private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); @@ -35,11 +37,24 @@ public ListverificationsRequestBuilder count(Optional count) { this.count = count; return this; } + + public ListverificationsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public ListverificationsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } private ListverificationsRequest buildRequest() { - ListverificationsRequest request = new ListverificationsRequest(count); + ListverificationsRequest request = new ListverificationsRequest(count, + locale); return request; } diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/MessagesRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/MessagesRequestBuilder.java index 949ff8cb..2e2a701b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/MessagesRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/MessagesRequestBuilder.java @@ -10,28 +10,53 @@ import com.glean.api_client.glean_api_client.operations.Messages; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class MessagesRequestBuilder { - private MessagesRequest request; + private Optional locale = Optional.empty(); + private MessagesRequest messagesRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public MessagesRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public MessagesRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public MessagesRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public MessagesRequestBuilder request(MessagesRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public MessagesRequestBuilder messagesRequest(MessagesRequest messagesRequest) { + Utils.checkNotNull(messagesRequest, "messagesRequest"); + this.messagesRequest = messagesRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.MessagesRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.MessagesRequest request = new com.glean.api_client.glean_api_client.models.operations.MessagesRequest(locale, + messagesRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Messages.Async(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.MessagesRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PeopleRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PeopleRequestBuilder.java index e95bdedd..726e1226 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PeopleRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PeopleRequestBuilder.java @@ -10,28 +10,53 @@ import com.glean.api_client.glean_api_client.operations.People; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class PeopleRequestBuilder { - private PeopleRequest request; + private Optional locale = Optional.empty(); + private PeopleRequest peopleRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public PeopleRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public PeopleRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public PeopleRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public PeopleRequestBuilder request(PeopleRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public PeopleRequestBuilder peopleRequest(PeopleRequest peopleRequest) { + Utils.checkNotNull(peopleRequest, "peopleRequest"); + this.peopleRequest = peopleRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.PeopleRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.PeopleRequest request = new com.glean.api_client.glean_api_client.models.operations.PeopleRequest(locale, + peopleRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new People.Async(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.PeopleRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PinRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PinRequestBuilder.java index 3dff81c6..92e58812 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PinRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/PinRequestBuilder.java @@ -10,28 +10,53 @@ import com.glean.api_client.glean_api_client.operations.Pin; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class PinRequestBuilder { - private PinRequest request; + private Optional locale = Optional.empty(); + private PinRequest pinRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public PinRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public PinRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public PinRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public PinRequestBuilder request(PinRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public PinRequestBuilder pinRequest(PinRequest pinRequest) { + Utils.checkNotNull(pinRequest, "pinRequest"); + this.pinRequest = pinRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.PinRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.PinRequest request = new com.glean.api_client.glean_api_client.models.operations.PinRequest(locale, + pinRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Pin.Async(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.PinRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/RecommendationsRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/RecommendationsRequestBuilder.java index 5f4a2e5d..bd18f937 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/RecommendationsRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/RecommendationsRequestBuilder.java @@ -10,28 +10,53 @@ import com.glean.api_client.glean_api_client.operations.Recommendations; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class RecommendationsRequestBuilder { - private RecommendationsRequest request; + private Optional locale = Optional.empty(); + private RecommendationsRequest recommendationsRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public RecommendationsRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public RecommendationsRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public RecommendationsRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public RecommendationsRequestBuilder request(RecommendationsRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public RecommendationsRequestBuilder recommendationsRequest(RecommendationsRequest recommendationsRequest) { + Utils.checkNotNull(recommendationsRequest, "recommendationsRequest"); + this.recommendationsRequest = recommendationsRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest request = new com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest(locale, + recommendationsRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Recommendations.Async(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/SearchRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/SearchRequestBuilder.java index f4d3c6ca..c4c17e54 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/SearchRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/SearchRequestBuilder.java @@ -10,28 +10,53 @@ import com.glean.api_client.glean_api_client.operations.Search; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class SearchRequestBuilder { - private SearchRequest request; + private Optional locale = Optional.empty(); + private SearchRequest searchRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public SearchRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public SearchRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public SearchRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public SearchRequestBuilder request(SearchRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public SearchRequestBuilder searchRequest(SearchRequest searchRequest) { + Utils.checkNotNull(searchRequest, "searchRequest"); + this.searchRequest = searchRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.SearchRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.SearchRequest request = new com.glean.api_client.glean_api_client.models.operations.SearchRequest(locale, + searchRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Search.Async(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.SearchRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/SummarizeRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/SummarizeRequestBuilder.java index 15b99bac..f6b6e718 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/SummarizeRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/SummarizeRequestBuilder.java @@ -10,28 +10,53 @@ import com.glean.api_client.glean_api_client.operations.Summarize; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class SummarizeRequestBuilder { - private SummarizeRequest request; + private Optional locale = Optional.empty(); + private SummarizeRequest summarizeRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public SummarizeRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public SummarizeRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public SummarizeRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public SummarizeRequestBuilder request(SummarizeRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public SummarizeRequestBuilder summarizeRequest(SummarizeRequest summarizeRequest) { + Utils.checkNotNull(summarizeRequest, "summarizeRequest"); + this.summarizeRequest = summarizeRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.SummarizeRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.SummarizeRequest request = new com.glean.api_client.glean_api_client.models.operations.SummarizeRequest(locale, + summarizeRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Summarize.Async(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.SummarizeRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UnpinRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UnpinRequestBuilder.java index 8691decd..95330480 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UnpinRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UnpinRequestBuilder.java @@ -7,30 +7,56 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.Unpin; +import com.glean.api_client.glean_api_client.models.operations.UnpinRequest; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class UnpinRequestBuilder { - private Unpin request; + private Optional locale = Optional.empty(); + private Unpin unpin; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public UnpinRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public UnpinRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public UnpinRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public UnpinRequestBuilder request(Unpin request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public UnpinRequestBuilder unpin(Unpin unpin) { + Utils.checkNotNull(unpin, "unpin"); + this.unpin = unpin; return this; } + + private UnpinRequest buildRequest() { + + UnpinRequest request = new UnpinRequest(locale, + unpin); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new com.glean.api_client.glean_api_client.operations.Unpin.Async(sdkConfiguration, _headers); + UnpinRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UpdateannouncementRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UpdateannouncementRequestBuilder.java index 19f0fd92..6603fce2 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UpdateannouncementRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UpdateannouncementRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.UpdateAnnouncementRequest; +import com.glean.api_client.glean_api_client.models.operations.UpdateannouncementRequest; import com.glean.api_client.glean_api_client.operations.Updateannouncement; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class UpdateannouncementRequestBuilder { - private UpdateAnnouncementRequest request; + private Optional locale = Optional.empty(); + private UpdateAnnouncementRequest updateAnnouncementRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public UpdateannouncementRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public UpdateannouncementRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public UpdateannouncementRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public UpdateannouncementRequestBuilder request(UpdateAnnouncementRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public UpdateannouncementRequestBuilder updateAnnouncementRequest(UpdateAnnouncementRequest updateAnnouncementRequest) { + Utils.checkNotNull(updateAnnouncementRequest, "updateAnnouncementRequest"); + this.updateAnnouncementRequest = updateAnnouncementRequest; return this; } + + private UpdateannouncementRequest buildRequest() { + + UpdateannouncementRequest request = new UpdateannouncementRequest(locale, + updateAnnouncementRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Updateannouncement.Async(sdkConfiguration, _headers); + UpdateannouncementRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UpdateshortcutRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UpdateshortcutRequestBuilder.java index 72b4ba64..d9eaa6b1 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UpdateshortcutRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UpdateshortcutRequestBuilder.java @@ -7,31 +7,57 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.models.components.UpdateShortcutRequest; +import com.glean.api_client.glean_api_client.models.operations.UpdateshortcutRequest; import com.glean.api_client.glean_api_client.operations.Updateshortcut; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class UpdateshortcutRequestBuilder { - private UpdateShortcutRequest request; + private Optional locale = Optional.empty(); + private UpdateShortcutRequest updateShortcutRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public UpdateshortcutRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public UpdateshortcutRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public UpdateshortcutRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public UpdateshortcutRequestBuilder request(UpdateShortcutRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public UpdateshortcutRequestBuilder updateShortcutRequest(UpdateShortcutRequest updateShortcutRequest) { + Utils.checkNotNull(updateShortcutRequest, "updateShortcutRequest"); + this.updateShortcutRequest = updateShortcutRequest; return this; } + + private UpdateshortcutRequest buildRequest() { + + UpdateshortcutRequest request = new UpdateshortcutRequest(locale, + updateShortcutRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Updateshortcut.Async(sdkConfiguration, _headers); + UpdateshortcutRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UploadchatfilesRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UploadchatfilesRequestBuilder.java index 6c5a1cf9..3c7904b5 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UploadchatfilesRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/UploadchatfilesRequestBuilder.java @@ -12,11 +12,13 @@ import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; import java.lang.Long; +import java.lang.String; import java.util.Optional; import java.util.concurrent.CompletableFuture; public class UploadchatfilesRequestBuilder { + private Optional locale = Optional.empty(); private Optional timezoneOffset = Optional.empty(); private UploadChatFilesRequest uploadChatFilesRequest; private final SDKConfiguration sdkConfiguration; @@ -26,6 +28,18 @@ public UploadchatfilesRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + public UploadchatfilesRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public UploadchatfilesRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } + public UploadchatfilesRequestBuilder timezoneOffset(long timezoneOffset) { Utils.checkNotNull(timezoneOffset, "timezoneOffset"); this.timezoneOffset = Optional.of(timezoneOffset); @@ -47,7 +61,8 @@ public UploadchatfilesRequestBuilder uploadChatFilesRequest(UploadChatFilesReque private UploadchatfilesRequest buildRequest() { - UploadchatfilesRequest request = new UploadchatfilesRequest(timezoneOffset, + UploadchatfilesRequest request = new UploadchatfilesRequest(locale, + timezoneOffset, uploadChatFilesRequest); return request; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/VerifyRequestBuilder.java b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/VerifyRequestBuilder.java index a07550bb..11df264a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/VerifyRequestBuilder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/operations/async/VerifyRequestBuilder.java @@ -10,28 +10,53 @@ import com.glean.api_client.glean_api_client.operations.Verify; import com.glean.api_client.glean_api_client.utils.Headers; import com.glean.api_client.glean_api_client.utils.Utils; +import java.lang.String; +import java.util.Optional; import java.util.concurrent.CompletableFuture; public class VerifyRequestBuilder { - private VerifyRequest request; + private Optional locale = Optional.empty(); + private VerifyRequest verifyRequest; private final SDKConfiguration sdkConfiguration; private final Headers _headers = new Headers(); public VerifyRequestBuilder(SDKConfiguration sdkConfiguration) { this.sdkConfiguration = sdkConfiguration; } + + public VerifyRequestBuilder locale(String locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = Optional.of(locale); + return this; + } + + public VerifyRequestBuilder locale(Optional locale) { + Utils.checkNotNull(locale, "locale"); + this.locale = locale; + return this; + } - public VerifyRequestBuilder request(VerifyRequest request) { - Utils.checkNotNull(request, "request"); - this.request = request; + public VerifyRequestBuilder verifyRequest(VerifyRequest verifyRequest) { + Utils.checkNotNull(verifyRequest, "verifyRequest"); + this.verifyRequest = verifyRequest; return this; } + + private com.glean.api_client.glean_api_client.models.operations.VerifyRequest buildRequest() { + + com.glean.api_client.glean_api_client.models.operations.VerifyRequest request = new com.glean.api_client.glean_api_client.models.operations.VerifyRequest(locale, + verifyRequest); + + return request; + } + public CompletableFuture call() { - AsyncRequestOperation operation + AsyncRequestOperation operation = new Verify.Async(sdkConfiguration, _headers); + com.glean.api_client.glean_api_client.models.operations.VerifyRequest request = buildRequest(); return operation.doRequest(request) .thenCompose(operation::handleResponse); diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Addcollectionitems.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Addcollectionitems.java index b62ee452..1cd95af0 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Addcollectionitems.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Addcollectionitems.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.AddcollectionitemsRequest; import com.glean.api_client.glean_api_client.models.operations.AddcollectionitemsResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/addcollectionitems"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "addCollectionItemsRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(AddCollectionItemsRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(AddcollectionitemsRequest request) throws Exception { + HttpRequest req = buildRequest(request, AddcollectionitemsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(AddCollectionItemsRequest request) { + public HttpResponse doRequest(AddcollectionitemsRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public AddcollectionitemsResponse handleResponse(HttpResponse respo } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(AddCollectionItemsRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(AddcollectionitemsRequest request) throws Exception { + HttpRequest req = buildRequest(request, AddcollectionitemsRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(AddCollectionItemsRequest request) { + public CompletableFuture> doRequest(AddcollectionitemsRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Addverificationreminder.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Addverificationreminder.java index 362e81f7..b90d8692 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Addverificationreminder.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Addverificationreminder.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.ReminderRequest; import com.glean.api_client.glean_api_client.models.components.Verification; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.AddverificationreminderRequest; import com.glean.api_client.glean_api_client.models.operations.AddverificationreminderResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/addverificationreminder"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "reminderRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(ReminderRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(AddverificationreminderRequest request) throws Exception { + HttpRequest req = buildRequest(request, AddverificationreminderRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(ReminderRequest request) { + public HttpResponse doRequest(AddverificationreminderRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public AddverificationreminderResponse handleResponse(HttpResponse } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(ReminderRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(AddverificationreminderRequest request) throws Exception { + HttpRequest req = buildRequest(request, AddverificationreminderRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(ReminderRequest request) { + public CompletableFuture> doRequest(AddverificationreminderRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Adminsearch.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Adminsearch.java index 2c515277..3e390e80 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Adminsearch.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Adminsearch.java @@ -10,10 +10,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.SearchRequest; import com.glean.api_client.glean_api_client.models.components.SearchResponse; import com.glean.api_client.glean_api_client.models.errors.APIException; import com.glean.api_client.glean_api_client.models.errors.GleanDataError; +import com.glean.api_client.glean_api_client.models.operations.AdminsearchRequest; import com.glean.api_client.glean_api_client.models.operations.AdminsearchResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -86,7 +86,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/adminsearch"); @@ -97,7 +97,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "searchRequest", "json", false); if (serializedRequestBody == null) { @@ -107,6 +107,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -114,13 +119,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(SearchRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(AdminsearchRequest request) throws Exception { + HttpRequest req = buildRequest(request, AdminsearchRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -136,7 +141,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(SearchRequest request) { + public HttpResponse doRequest(AdminsearchRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -195,14 +200,14 @@ public AdminsearchResponse handleResponse(HttpResponse response) { } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(SearchRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(AdminsearchRequest request) throws Exception { + HttpRequest req = buildRequest(request, AdminsearchRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -215,7 +220,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(SearchRequest request) { + public CompletableFuture> doRequest(AdminsearchRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Autocomplete.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Autocomplete.java index 17da9d90..ca3f6510 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Autocomplete.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Autocomplete.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.AutocompleteRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.AutocompleteRequest; import com.glean.api_client.glean_api_client.models.operations.AutocompleteResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -84,7 +84,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/autocomplete"); @@ -95,7 +95,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "autocompleteRequest", "json", false); if (serializedRequestBody == null) { @@ -105,6 +105,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -118,7 +123,7 @@ public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { } private HttpRequest onBuildRequest(AutocompleteRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, AutocompleteRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -193,7 +198,7 @@ public Async(SDKConfiguration sdkConfiguration, Headers _headers) { } private CompletableFuture onBuildRequest(AutocompleteRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, AutocompleteRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Createannouncement.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Createannouncement.java index 46ae6a37..ddaf1511 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Createannouncement.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Createannouncement.java @@ -11,8 +11,8 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; import com.glean.api_client.glean_api_client.models.components.Announcement; -import com.glean.api_client.glean_api_client.models.components.CreateAnnouncementRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.CreateannouncementRequest; import com.glean.api_client.glean_api_client.models.operations.CreateannouncementResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/createannouncement"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "createAnnouncementRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(CreateAnnouncementRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(CreateannouncementRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateannouncementRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(CreateAnnouncementRequest request) { + public HttpResponse doRequest(CreateannouncementRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public CreateannouncementResponse handleResponse(HttpResponse respo } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(CreateAnnouncementRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(CreateannouncementRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateannouncementRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(CreateAnnouncementRequest request) { + public CompletableFuture> doRequest(CreateannouncementRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Createanswer.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Createanswer.java index 8db7c70c..2bfeec37 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Createanswer.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Createanswer.java @@ -11,8 +11,8 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; import com.glean.api_client.glean_api_client.models.components.Answer; -import com.glean.api_client.glean_api_client.models.components.CreateAnswerRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.CreateanswerRequest; import com.glean.api_client.glean_api_client.models.operations.CreateanswerResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/createanswer"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "createAnswerRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(CreateAnswerRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(CreateanswerRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateanswerRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(CreateAnswerRequest request) { + public HttpResponse doRequest(CreateanswerRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public CreateanswerResponse handleResponse(HttpResponse response) { } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(CreateAnswerRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(CreateanswerRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateanswerRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(CreateAnswerRequest request) { + public CompletableFuture> doRequest(CreateanswerRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Createcollection.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Createcollection.java index b27f1805..b2ecd483 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Createcollection.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Createcollection.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.CreateCollectionRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; import com.glean.api_client.glean_api_client.models.errors.CollectionError; +import com.glean.api_client.glean_api_client.models.operations.CreatecollectionRequest; 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.utils.Blob; @@ -86,7 +86,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/createcollection"); @@ -97,7 +97,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "createCollectionRequest", "json", false); if (serializedRequestBody == null) { @@ -107,6 +107,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -114,13 +119,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(CreateCollectionRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(CreatecollectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreatecollectionRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -136,7 +141,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(CreateCollectionRequest request) { + public HttpResponse doRequest(CreatecollectionRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -195,14 +200,14 @@ public CreatecollectionResponse handleResponse(HttpResponse respons } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(CreateCollectionRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(CreatecollectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreatecollectionRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -215,7 +220,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(CreateCollectionRequest request) { + public CompletableFuture> doRequest(CreatecollectionRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Createshortcut.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Createshortcut.java index b2131821..8803bd1d 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Createshortcut.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Createshortcut.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.CreateshortcutRequest; import com.glean.api_client.glean_api_client.models.operations.CreateshortcutResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/createshortcut"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "createShortcutRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(CreateShortcutRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(CreateshortcutRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateshortcutRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(CreateShortcutRequest request) { + public HttpResponse doRequest(CreateshortcutRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public CreateshortcutResponse handleResponse(HttpResponse response) } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(CreateShortcutRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(CreateshortcutRequest request) throws Exception { + HttpRequest req = buildRequest(request, CreateshortcutRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(CreateShortcutRequest request) { + public CompletableFuture> doRequest(CreateshortcutRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Deleteannouncement.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Deleteannouncement.java index f51f46a1..31cb6d12 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Deleteannouncement.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Deleteannouncement.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.DeleteAnnouncementRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.DeleteannouncementRequest; import com.glean.api_client.glean_api_client.models.operations.DeleteannouncementResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -84,7 +84,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/deleteannouncement"); @@ -95,7 +95,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "deleteAnnouncementRequest", "json", false); if (serializedRequestBody == null) { @@ -105,6 +105,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "*/*") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -112,13 +117,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(DeleteAnnouncementRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(DeleteannouncementRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteannouncementRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -134,7 +139,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(DeleteAnnouncementRequest request) { + public HttpResponse doRequest(DeleteannouncementRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -183,14 +188,14 @@ public DeleteannouncementResponse handleResponse(HttpResponse respo } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(DeleteAnnouncementRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(DeleteannouncementRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteannouncementRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -203,7 +208,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(DeleteAnnouncementRequest request) { + public CompletableFuture> doRequest(DeleteannouncementRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Deleteanswer.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Deleteanswer.java index 261afd08..9341a8b4 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Deleteanswer.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Deleteanswer.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.DeleteAnswerRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.DeleteanswerRequest; import com.glean.api_client.glean_api_client.models.operations.DeleteanswerResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -84,7 +84,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/deleteanswer"); @@ -95,7 +95,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "deleteAnswerRequest", "json", false); if (serializedRequestBody == null) { @@ -105,6 +105,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "*/*") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -112,13 +117,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(DeleteAnswerRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(DeleteanswerRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteanswerRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -134,7 +139,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(DeleteAnswerRequest request) { + public HttpResponse doRequest(DeleteanswerRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -183,14 +188,14 @@ public DeleteanswerResponse handleResponse(HttpResponse response) { } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(DeleteAnswerRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(DeleteanswerRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteanswerRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -203,7 +208,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(DeleteAnswerRequest request) { + public CompletableFuture> doRequest(DeleteanswerRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Deletecollection.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Deletecollection.java index 3fe61d75..b30b5e5e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Deletecollection.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Deletecollection.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.DeleteCollectionRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; import com.glean.api_client.glean_api_client.models.errors.CollectionError; +import com.glean.api_client.glean_api_client.models.operations.DeletecollectionRequest; import com.glean.api_client.glean_api_client.models.operations.DeletecollectionResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/deletecollection"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "deleteCollectionRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(DeleteCollectionRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(DeletecollectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeletecollectionRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(DeleteCollectionRequest request) { + public HttpResponse doRequest(DeletecollectionRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -191,14 +196,14 @@ public DeletecollectionResponse handleResponse(HttpResponse respons } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(DeleteCollectionRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(DeletecollectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeletecollectionRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -211,7 +216,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(DeleteCollectionRequest request) { + public CompletableFuture> doRequest(DeletecollectionRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Deletecollectionitem.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Deletecollectionitem.java index 6fbfdc3a..a6184384 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Deletecollectionitem.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Deletecollectionitem.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.DeletecollectionitemRequest; import com.glean.api_client.glean_api_client.models.operations.DeletecollectionitemResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/deletecollectionitem"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "deleteCollectionItemRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(DeleteCollectionItemRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(DeletecollectionitemRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeletecollectionitemRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(DeleteCollectionItemRequest request) { + public HttpResponse doRequest(DeletecollectionitemRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public DeletecollectionitemResponse handleResponse(HttpResponse res } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(DeleteCollectionItemRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(DeletecollectionitemRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeletecollectionitemRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(DeleteCollectionItemRequest request) { + public CompletableFuture> doRequest(DeletecollectionitemRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Deleteshortcut.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Deleteshortcut.java index ace8feed..0812b87a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Deleteshortcut.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Deleteshortcut.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.DeleteShortcutRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.DeleteshortcutRequest; import com.glean.api_client.glean_api_client.models.operations.DeleteshortcutResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -84,7 +84,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/deleteshortcut"); @@ -95,7 +95,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "deleteShortcutRequest", "json", false); if (serializedRequestBody == null) { @@ -105,6 +105,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "*/*") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -112,13 +117,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(DeleteShortcutRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(DeleteshortcutRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteshortcutRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -134,7 +139,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(DeleteShortcutRequest request) { + public HttpResponse doRequest(DeleteshortcutRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -183,14 +188,14 @@ public DeleteshortcutResponse handleResponse(HttpResponse response) } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(DeleteShortcutRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(DeleteshortcutRequest request) throws Exception { + HttpRequest req = buildRequest(request, DeleteshortcutRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -203,7 +208,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(DeleteShortcutRequest request) { + public CompletableFuture> doRequest(DeleteshortcutRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Editanswer.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Editanswer.java index e1afde93..eef76e50 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Editanswer.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Editanswer.java @@ -11,8 +11,8 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; import com.glean.api_client.glean_api_client.models.components.Answer; -import com.glean.api_client.glean_api_client.models.components.EditAnswerRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.EditanswerRequest; import com.glean.api_client.glean_api_client.models.operations.EditanswerResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/editanswer"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "editAnswerRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(EditAnswerRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(EditanswerRequest request) throws Exception { + HttpRequest req = buildRequest(request, EditanswerRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(EditAnswerRequest request) { + public HttpResponse doRequest(EditanswerRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public EditanswerResponse handleResponse(HttpResponse response) { } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(EditAnswerRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(EditanswerRequest request) throws Exception { + HttpRequest req = buildRequest(request, EditanswerRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(EditAnswerRequest request) { + public CompletableFuture> doRequest(EditanswerRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Editcollection.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Editcollection.java index 8a1e90ce..ba184f75 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Editcollection.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Editcollection.java @@ -10,10 +10,10 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; import com.glean.api_client.glean_api_client.models.errors.CollectionError; +import com.glean.api_client.glean_api_client.models.operations.EditcollectionRequest; import com.glean.api_client.glean_api_client.models.operations.EditcollectionResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -86,7 +86,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/editcollection"); @@ -97,7 +97,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "editCollectionRequest", "json", false); if (serializedRequestBody == null) { @@ -107,6 +107,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -114,13 +119,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(EditCollectionRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(EditcollectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, EditcollectionRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -136,7 +141,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(EditCollectionRequest request) { + public HttpResponse doRequest(EditcollectionRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -195,14 +200,14 @@ public EditcollectionResponse handleResponse(HttpResponse response) } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(EditCollectionRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(EditcollectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, EditcollectionRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -215,7 +220,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(EditCollectionRequest request) { + public CompletableFuture> doRequest(EditcollectionRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Editcollectionitem.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Editcollectionitem.java index ca370883..8382c7a0 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Editcollectionitem.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Editcollectionitem.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.EditcollectionitemRequest; import com.glean.api_client.glean_api_client.models.operations.EditcollectionitemResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/editcollectionitem"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "editCollectionItemRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(EditCollectionItemRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(EditcollectionitemRequest request) throws Exception { + HttpRequest req = buildRequest(request, EditcollectionitemRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(EditCollectionItemRequest request) { + public HttpResponse doRequest(EditcollectionitemRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public EditcollectionitemResponse handleResponse(HttpResponse respo } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(EditCollectionItemRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(EditcollectionitemRequest request) throws Exception { + HttpRequest req = buildRequest(request, EditcollectionitemRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(EditCollectionItemRequest request) { + public CompletableFuture> doRequest(EditcollectionitemRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Editpin.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Editpin.java index f00acb98..71904881 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Editpin.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Editpin.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.EditPinRequest; import com.glean.api_client.glean_api_client.models.components.PinDocument; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.EditpinRequest; import com.glean.api_client.glean_api_client.models.operations.EditpinResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/editpin"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "editPinRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(EditPinRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(EditpinRequest request) throws Exception { + HttpRequest req = buildRequest(request, EditpinRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(EditPinRequest request) { + public HttpResponse doRequest(EditpinRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public EditpinResponse handleResponse(HttpResponse response) { } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(EditPinRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(EditpinRequest request) throws Exception { + HttpRequest req = buildRequest(request, EditpinRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(EditPinRequest request) { + public CompletableFuture> doRequest(EditpinRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Feed.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Feed.java index 0c1e7db0..b6610608 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Feed.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Feed.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.FeedRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.FeedRequest; import com.glean.api_client.glean_api_client.models.operations.FeedResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -84,7 +84,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/feed"); @@ -95,7 +95,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "feedRequest", "json", false); if (serializedRequestBody == null) { @@ -105,6 +105,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -118,7 +123,7 @@ public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { } private HttpRequest onBuildRequest(FeedRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, FeedRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -193,7 +198,7 @@ public Async(SDKConfiguration sdkConfiguration, Headers _headers) { } private CompletableFuture onBuildRequest(FeedRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, FeedRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Getanswer.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Getanswer.java index ac408fd4..b1ccbb61 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Getanswer.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Getanswer.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.GetanswerRequest; import com.glean.api_client.glean_api_client.models.operations.GetanswerResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/getanswer"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "getAnswerRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(GetAnswerRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(GetanswerRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetanswerRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(GetAnswerRequest request) { + public HttpResponse doRequest(GetanswerRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public GetanswerResponse handleResponse(HttpResponse response) { } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(GetAnswerRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(GetanswerRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetanswerRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(GetAnswerRequest request) { + public CompletableFuture> doRequest(GetanswerRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Getcollection.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Getcollection.java index 5c217554..12713bc2 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Getcollection.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Getcollection.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.GetcollectionRequest; import com.glean.api_client.glean_api_client.models.operations.GetcollectionResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/getcollection"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "getCollectionRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(GetCollectionRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(GetcollectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetcollectionRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(GetCollectionRequest request) { + public HttpResponse doRequest(GetcollectionRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public GetcollectionResponse handleResponse(HttpResponse response) } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(GetCollectionRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(GetcollectionRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetcollectionRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(GetCollectionRequest request) { + public CompletableFuture> doRequest(GetcollectionRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Getdocpermissions.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Getdocpermissions.java index a8a3f728..af249e1b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Getdocpermissions.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Getdocpermissions.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.GetdocpermissionsRequest; import com.glean.api_client.glean_api_client.models.operations.GetdocpermissionsResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/getdocpermissions"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "getDocPermissionsRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(GetDocPermissionsRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(GetdocpermissionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetdocpermissionsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(GetDocPermissionsRequest request) { + public HttpResponse doRequest(GetdocpermissionsRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public GetdocpermissionsResponse handleResponse(HttpResponse respon } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(GetDocPermissionsRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(GetdocpermissionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetdocpermissionsRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(GetDocPermissionsRequest request) { + public CompletableFuture> doRequest(GetdocpermissionsRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Getdocuments.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Getdocuments.java index 1a4a0019..c09333e5 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Getdocuments.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Getdocuments.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.GetDocumentsRequest; import com.glean.api_client.glean_api_client.models.components.GetDocumentsResponse; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.GetdocumentsRequest; import com.glean.api_client.glean_api_client.models.operations.GetdocumentsResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -84,7 +84,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/getdocuments"); @@ -95,13 +95,18 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "getDocumentsRequest", "json", false); req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -109,13 +114,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation, GetdocumentsResponse> { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(Optional request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference>() {}); + private HttpRequest onBuildRequest(GetdocumentsRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetdocumentsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -131,7 +136,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(Optional request) { + public HttpResponse doRequest(GetdocumentsRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -183,14 +188,14 @@ public GetdocumentsResponse handleResponse(HttpResponse response) { } } public static class Async extends Base - implements AsyncRequestOperation, com.glean.api_client.glean_api_client.models.operations.async.GetdocumentsResponse> { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(Optional request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference>() {}); + private CompletableFuture onBuildRequest(GetdocumentsRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetdocumentsRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -203,7 +208,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(Optional request) { + public CompletableFuture> doRequest(GetdocumentsRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Getdocumentsbyfacets.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Getdocumentsbyfacets.java index e95a7ba1..1d15d507 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Getdocumentsbyfacets.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Getdocumentsbyfacets.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.GetdocumentsbyfacetsRequest; import com.glean.api_client.glean_api_client.models.operations.GetdocumentsbyfacetsResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -84,7 +84,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/getdocumentsbyfacets"); @@ -95,13 +95,18 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "getDocumentsByFacetsRequest", "json", false); req.setBody(Optional.ofNullable(serializedRequestBody)); req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -109,13 +114,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation, GetdocumentsbyfacetsResponse> { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(Optional request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference>() {}); + private HttpRequest onBuildRequest(GetdocumentsbyfacetsRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetdocumentsbyfacetsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -131,7 +136,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(Optional request) { + public HttpResponse doRequest(GetdocumentsbyfacetsRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -183,14 +188,14 @@ public GetdocumentsbyfacetsResponse handleResponse(HttpResponse res } } public static class Async extends Base - implements AsyncRequestOperation, com.glean.api_client.glean_api_client.models.operations.async.GetdocumentsbyfacetsResponse> { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(Optional request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference>() {}); + private CompletableFuture onBuildRequest(GetdocumentsbyfacetsRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetdocumentsbyfacetsRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -203,7 +208,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(Optional request) { + public CompletableFuture> doRequest(GetdocumentsbyfacetsRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Getpin.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Getpin.java index 52dce6ca..bc47dc8b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Getpin.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Getpin.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.GetpinRequest; import com.glean.api_client.glean_api_client.models.operations.GetpinResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/getpin"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "getPinRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(GetPinRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(GetpinRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetpinRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(GetPinRequest request) { + public HttpResponse doRequest(GetpinRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public GetpinResponse handleResponse(HttpResponse response) { } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(GetPinRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(GetpinRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetpinRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(GetPinRequest request) { + public CompletableFuture> doRequest(GetpinRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Getshortcut.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Getshortcut.java index 41dbd565..0f303222 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Getshortcut.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Getshortcut.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.GetshortcutRequest; import com.glean.api_client.glean_api_client.models.operations.GetshortcutResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/getshortcut"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "getShortcutRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(GetShortcutRequestUnion request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(GetshortcutRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetshortcutRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(GetShortcutRequestUnion request) { + public HttpResponse doRequest(GetshortcutRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public GetshortcutResponse handleResponse(HttpResponse response) { } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(GetShortcutRequestUnion request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(GetshortcutRequest request) throws Exception { + HttpRequest req = buildRequest(request, GetshortcutRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(GetShortcutRequestUnion request) { + public CompletableFuture> doRequest(GetshortcutRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Insights.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Insights.java index e95b6aeb..b738eb0c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Insights.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Insights.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.InsightsRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.InsightsRequest; import com.glean.api_client.glean_api_client.models.operations.InsightsResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -84,7 +84,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/insights"); @@ -95,7 +95,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "insightsRequest", "json", false); if (serializedRequestBody == null) { @@ -105,6 +105,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -118,7 +123,7 @@ public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { } private HttpRequest onBuildRequest(InsightsRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, InsightsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -193,7 +198,7 @@ public Async(SDKConfiguration sdkConfiguration, Headers _headers) { } private CompletableFuture onBuildRequest(InsightsRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, InsightsRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Listanswers.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Listanswers.java index 7bdd142c..7a0a0d19 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Listanswers.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Listanswers.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.ListanswersRequest; import com.glean.api_client.glean_api_client.models.operations.ListanswersResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/listanswers"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "listAnswersRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(ListAnswersRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(ListanswersRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListanswersRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(ListAnswersRequest request) { + public HttpResponse doRequest(ListanswersRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public ListanswersResponse handleResponse(HttpResponse response) { } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(ListAnswersRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(ListanswersRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListanswersRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(ListAnswersRequest request) { + public CompletableFuture> doRequest(ListanswersRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Listcollections.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Listcollections.java index 8f2cd270..143394e3 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Listcollections.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Listcollections.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.ListcollectionsRequest; import com.glean.api_client.glean_api_client.models.operations.ListcollectionsResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/listcollections"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "listCollectionsRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(ListCollectionsRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(ListcollectionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListcollectionsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(ListCollectionsRequest request) { + public HttpResponse doRequest(ListcollectionsRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public ListcollectionsResponse handleResponse(HttpResponse response } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(ListCollectionsRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(ListcollectionsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListcollectionsRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(ListCollectionsRequest request) { + public CompletableFuture> doRequest(ListcollectionsRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Listentities.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Listentities.java index f7924f40..67f4e0b8 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Listentities.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Listentities.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.ListentitiesRequest; import com.glean.api_client.glean_api_client.models.operations.ListentitiesResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/listentities"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "listEntitiesRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(ListEntitiesRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(ListentitiesRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListentitiesRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(ListEntitiesRequest request) { + public HttpResponse doRequest(ListentitiesRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public ListentitiesResponse handleResponse(HttpResponse response) { } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(ListEntitiesRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(ListentitiesRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListentitiesRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(ListEntitiesRequest request) { + public CompletableFuture> doRequest(ListentitiesRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Listpins.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Listpins.java index 95691041..c4a9ab56 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Listpins.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Listpins.java @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/listpins"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "requestBody", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -119,7 +124,7 @@ public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { } private HttpRequest onBuildRequest(ListpinsRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, ListpinsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -194,7 +199,7 @@ public Async(SDKConfiguration sdkConfiguration, Headers _headers) { } private CompletableFuture onBuildRequest(ListpinsRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, ListpinsRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Listshortcuts.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Listshortcuts.java index e98e172b..8857d145 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Listshortcuts.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Listshortcuts.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.ListshortcutsRequest; import com.glean.api_client.glean_api_client.models.operations.ListshortcutsResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/listshortcuts"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "listShortcutsPaginatedRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(ListShortcutsPaginatedRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(ListshortcutsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListshortcutsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(ListShortcutsPaginatedRequest request) { + public HttpResponse doRequest(ListshortcutsRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public ListshortcutsResponse handleResponse(HttpResponse response) } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(ListShortcutsPaginatedRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(ListshortcutsRequest request) throws Exception { + HttpRequest req = buildRequest(request, ListshortcutsRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(ListShortcutsPaginatedRequest request) { + public CompletableFuture> doRequest(ListshortcutsRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Messages.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Messages.java index ac030de6..8797734a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Messages.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Messages.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.MessagesRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.MessagesRequest; import com.glean.api_client.glean_api_client.models.operations.MessagesResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -84,7 +84,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/messages"); @@ -95,7 +95,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "messagesRequest", "json", false); if (serializedRequestBody == null) { @@ -105,6 +105,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -118,7 +123,7 @@ public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { } private HttpRequest onBuildRequest(MessagesRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, MessagesRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -193,7 +198,7 @@ public Async(SDKConfiguration sdkConfiguration, Headers _headers) { } private CompletableFuture onBuildRequest(MessagesRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, MessagesRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/People.java b/src/main/java/com/glean/api_client/glean_api_client/operations/People.java index 4708c033..04cac1e7 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/People.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/People.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.PeopleRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.PeopleRequest; import com.glean.api_client.glean_api_client.models.operations.PeopleResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -84,7 +84,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/people"); @@ -95,7 +95,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "peopleRequest", "json", false); if (serializedRequestBody == null) { @@ -105,6 +105,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -118,7 +123,7 @@ public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { } private HttpRequest onBuildRequest(PeopleRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, PeopleRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -193,7 +198,7 @@ public Async(SDKConfiguration sdkConfiguration, Headers _headers) { } private CompletableFuture onBuildRequest(PeopleRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, PeopleRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Pin.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Pin.java index 9adf82b1..198b2d28 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Pin.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Pin.java @@ -11,8 +11,8 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; 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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.PinRequest; import com.glean.api_client.glean_api_client.models.operations.PinResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/pin"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "pinRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -119,7 +124,7 @@ public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { } private HttpRequest onBuildRequest(PinRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, PinRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -194,7 +199,7 @@ public Async(SDKConfiguration sdkConfiguration, Headers _headers) { } private CompletableFuture onBuildRequest(PinRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, PinRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Recommendations.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Recommendations.java index 5fcb2df5..fcf77a56 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Recommendations.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Recommendations.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.RecommendationsRequest; import com.glean.api_client.glean_api_client.models.components.ResultsResponse; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.RecommendationsRequest; import com.glean.api_client.glean_api_client.models.operations.RecommendationsResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/recommendations"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "recommendationsRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -119,7 +124,7 @@ public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { } private HttpRequest onBuildRequest(RecommendationsRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, RecommendationsRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -198,7 +203,7 @@ public Async(SDKConfiguration sdkConfiguration, Headers _headers) { } private CompletableFuture onBuildRequest(RecommendationsRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, RecommendationsRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Search.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Search.java index 4c453d50..e1e85f52 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Search.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Search.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.SearchRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; import com.glean.api_client.glean_api_client.models.errors.GleanDataError; +import com.glean.api_client.glean_api_client.models.operations.SearchRequest; import com.glean.api_client.glean_api_client.models.operations.SearchResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/search"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "searchRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -119,7 +124,7 @@ public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { } private HttpRequest onBuildRequest(SearchRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, SearchRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -201,7 +206,7 @@ public Async(SDKConfiguration sdkConfiguration, Headers _headers) { } private CompletableFuture onBuildRequest(SearchRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, SearchRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Summarize.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Summarize.java index cb2ddf2f..1c1b6274 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Summarize.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Summarize.java @@ -10,8 +10,8 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -import com.glean.api_client.glean_api_client.models.components.SummarizeRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.SummarizeRequest; import com.glean.api_client.glean_api_client.models.operations.SummarizeResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -84,7 +84,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/summarize"); @@ -95,7 +95,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "summarizeRequest", "json", false); if (serializedRequestBody == null) { @@ -105,6 +105,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -118,7 +123,7 @@ public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { } private HttpRequest onBuildRequest(SummarizeRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, SummarizeRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -193,7 +198,7 @@ public Async(SDKConfiguration sdkConfiguration, Headers _headers) { } private CompletableFuture onBuildRequest(SummarizeRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, SummarizeRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Unpin.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Unpin.java index 7b59607f..e8dfa915 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Unpin.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Unpin.java @@ -11,6 +11,7 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.UnpinRequest; import com.glean.api_client.glean_api_client.models.operations.UnpinResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -83,7 +84,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/unpin"); @@ -94,7 +95,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "unpin", "json", false); if (serializedRequestBody == null) { @@ -104,6 +105,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "*/*") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -111,13 +117,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(com.glean.api_client.glean_api_client.models.components.Unpin request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(UnpinRequest request) throws Exception { + HttpRequest req = buildRequest(request, UnpinRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -133,7 +139,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(com.glean.api_client.glean_api_client.models.components.Unpin request) { + public HttpResponse doRequest(UnpinRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -182,14 +188,14 @@ public UnpinResponse handleResponse(HttpResponse response) { } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(com.glean.api_client.glean_api_client.models.components.Unpin request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(UnpinRequest request) throws Exception { + HttpRequest req = buildRequest(request, UnpinRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -202,7 +208,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(com.glean.api_client.glean_api_client.models.components.Unpin request) { + public CompletableFuture> doRequest(UnpinRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Updateannouncement.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Updateannouncement.java index 75b51bb8..832fa357 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Updateannouncement.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Updateannouncement.java @@ -11,8 +11,8 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; import com.glean.api_client.glean_api_client.models.components.Announcement; -import com.glean.api_client.glean_api_client.models.components.UpdateAnnouncementRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.UpdateannouncementRequest; import com.glean.api_client.glean_api_client.models.operations.UpdateannouncementResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/updateannouncement"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "updateAnnouncementRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(UpdateAnnouncementRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(UpdateannouncementRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateannouncementRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(UpdateAnnouncementRequest request) { + public HttpResponse doRequest(UpdateannouncementRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public UpdateannouncementResponse handleResponse(HttpResponse respo } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(UpdateAnnouncementRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(UpdateannouncementRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateannouncementRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(UpdateAnnouncementRequest request) { + public CompletableFuture> doRequest(UpdateannouncementRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Updateshortcut.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Updateshortcut.java index 1a992655..5de6b08e 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Updateshortcut.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Updateshortcut.java @@ -10,9 +10,9 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; -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.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.UpdateshortcutRequest; import com.glean.api_client.glean_api_client.models.operations.UpdateshortcutResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/updateshortcut"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "updateShortcutRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -113,13 +118,13 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws } public static class Sync extends Base - implements RequestOperation { + implements RequestOperation { public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private HttpRequest onBuildRequest(UpdateShortcutRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private HttpRequest onBuildRequest(UpdateshortcutRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateshortcutRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -135,7 +140,7 @@ private HttpResponse onSuccess(HttpResponse response) } @Override - public HttpResponse doRequest(UpdateShortcutRequest request) { + public HttpResponse doRequest(UpdateshortcutRequest request) { HttpRequest r = unchecked(() -> onBuildRequest(request)).get(); HttpResponse httpRes; try { @@ -187,14 +192,14 @@ public UpdateshortcutResponse handleResponse(HttpResponse response) } } public static class Async extends Base - implements AsyncRequestOperation { + implements AsyncRequestOperation { public Async(SDKConfiguration sdkConfiguration, Headers _headers) { super(sdkConfiguration, _headers); } - private CompletableFuture onBuildRequest(UpdateShortcutRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + private CompletableFuture onBuildRequest(UpdateshortcutRequest request) throws Exception { + HttpRequest req = buildRequest(request, UpdateshortcutRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } @@ -207,7 +212,7 @@ private CompletableFuture> onSuccess(HttpResponse respo } @Override - public CompletableFuture> doRequest(UpdateShortcutRequest request) { + public CompletableFuture> doRequest(UpdateshortcutRequest request) { return unchecked(() -> onBuildRequest(request)).get().thenCompose(client::sendAsync) .handle((resp, err) -> { if (err != null) { diff --git a/src/main/java/com/glean/api_client/glean_api_client/operations/Verify.java b/src/main/java/com/glean/api_client/glean_api_client/operations/Verify.java index 80bfcf1c..2d4de1e9 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/operations/Verify.java +++ b/src/main/java/com/glean/api_client/glean_api_client/operations/Verify.java @@ -11,8 +11,8 @@ import com.glean.api_client.glean_api_client.SDKConfiguration; import com.glean.api_client.glean_api_client.SecuritySource; import com.glean.api_client.glean_api_client.models.components.Verification; -import com.glean.api_client.glean_api_client.models.components.VerifyRequest; import com.glean.api_client.glean_api_client.models.errors.APIException; +import com.glean.api_client.glean_api_client.models.operations.VerifyRequest; import com.glean.api_client.glean_api_client.models.operations.VerifyResponse; import com.glean.api_client.glean_api_client.utils.Blob; import com.glean.api_client.glean_api_client.utils.HTTPClient; @@ -85,7 +85,7 @@ AfterErrorContextImpl createAfterErrorContext() { java.util.Optional.empty(), securitySource()); } - HttpRequest buildRequest(T request, TypeReference typeReference) throws Exception { + HttpRequest buildRequest(T request, Class klass, TypeReference typeReference) throws Exception { String url = Utils.generateURL( this.baseUrl, "/rest/api/v1/verify"); @@ -96,7 +96,7 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws typeReference); SerializedBody serializedRequestBody = Utils.serializeRequestBody( convertedRequest, - "request", + "verifyRequest", "json", false); if (serializedRequestBody == null) { @@ -106,6 +106,11 @@ HttpRequest buildRequest(T request, TypeReference typeReference) throws req.addHeader("Accept", "application/json") .addHeader("user-agent", SDKConfiguration.USER_AGENT); _headers.forEach((k, list) -> list.forEach(v -> req.addHeader(k, v))); + + req.addQueryParams(Utils.getQueryParams( + klass, + request, + null)); Utils.configureSecurity(req, this.sdkConfiguration.securitySource().getSecurity()); return req.build(); @@ -119,7 +124,7 @@ public Sync(SDKConfiguration sdkConfiguration, Headers _headers) { } private HttpRequest onBuildRequest(VerifyRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, VerifyRequest.class, new TypeReference() {}); return sdkConfiguration.hooks().beforeRequest(createBeforeRequestContext(), req); } @@ -194,7 +199,7 @@ public Async(SDKConfiguration sdkConfiguration, Headers _headers) { } private CompletableFuture onBuildRequest(VerifyRequest request) throws Exception { - HttpRequest req = buildRequest(request, new TypeReference() {}); + HttpRequest req = buildRequest(request, VerifyRequest.class, new TypeReference() {}); return this.sdkConfiguration.asyncHooks().beforeRequest(createBeforeRequestContext(), req); } From 0fc3ad7c5a0376399107046154255a406b4871ae Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Thu, 5 Feb 2026 02:47:52 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow