diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index aac2b353..1cecb045 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,18 +1,18 @@ lockVersion: 2.0.0 id: 9d90eb9e-33f8-4170-8944-988f4000aad0 management: - docChecksum: 1d1c4c798b764226bfeeae4268f907c1 + docChecksum: a8c5d99462d09453ae8436be00f80496 docVersion: 0.9.0 - speakeasyVersion: 1.792.0 - generationVersion: 2.927.0 - releaseVersion: 0.13.5 - configChecksum: 009b543f108a1c88bc5f2c93ec966cfc + speakeasyVersion: 1.793.1 + generationVersion: 2.928.0 + releaseVersion: 0.13.6 + configChecksum: 33656fde32c1f57bc7910b7d88f2eb8d repoURL: https://github.com/gleanwork/api-client-go.git installationURL: https://github.com/gleanwork/api-client-go persistentEdits: - generation_id: 1076cd3e-e245-4c8d-ba4c-cebe3adc310c - pristine_commit_hash: a33bd9d4d695cbe390f953b8791b4bfeaa3ea4a5 - pristine_tree_hash: aaf556862da09703cdd0e8d843fd745cf3e54b8e + generation_id: 5adb6867-452c-4539-93f7-ccd3a4c1055f + pristine_commit_hash: d65e96f61703f1f35e97b59c0cbfc0fbb363f87d + pristine_tree_hash: deb331de7d50752de56b4c498a0be8604b44cf1d features: go: acceptHeaders: 2.81.2 @@ -1326,8 +1326,8 @@ trackedFiles: pristine_git_object: c8e4adbb9259788d825acac24b08c9cd9afca960 docs/models/components/feedrequestcategory.md: id: 801f1c3c64d4 - last_write_checksum: sha1:f97f8f6b17de2bba01ce4bdbd3d13aebfc16ea4f - pristine_git_object: 66caa43b8c288af71af88b673dbf1316240a80e3 + last_write_checksum: sha1:cd59f318944cac895b833bf17d98f26a3e52bfd3 + pristine_git_object: 56e58281cf9421c8e0a202ec57d41fd639bff101 docs/models/components/feedrequestoptions.md: id: 76c5e4412304 last_write_checksum: sha1:674915ceaa3b9eec9d9543dc9f0e6a85b394174e @@ -1338,12 +1338,12 @@ trackedFiles: pristine_git_object: c053a79c66be5570c7e8dfb13885f5c0c050a574 docs/models/components/feedresult.md: id: c3084f56c0cc - last_write_checksum: sha1:b5233d7c70106e8c18d14ff9e9afd99bc28f4b62 - pristine_git_object: a3d714f78ae220cd1f1ebda6e5c4ae2d51846208 + last_write_checksum: sha1:e9de20975cde711bb72d4eac60061539cbc63752 + pristine_git_object: 86a3734a33e235d580f920fc6402a48ecfaaf1b4 docs/models/components/feedresultcategory.md: id: 94c0249352b4 - last_write_checksum: sha1:3c05a30dd4cc0a14044287bd80687e61bbc44a1f - pristine_git_object: 08e487bf5a03d4b1ecff4d5c44405c15f46cd904 + last_write_checksum: sha1:967947937a67330872b7c9d66d6caedf0deeb13a + pristine_git_object: d549449ab3dd4cfc67c8006eb60c3764cdcdd7ca docs/models/components/fieldscope.md: id: 23caffb85bb7 last_write_checksum: sha1:65cdffa9b7bf28a760c906f49dc7417f37b9e56f @@ -1682,8 +1682,8 @@ trackedFiles: pristine_git_object: 229c8af1dcde17c3b4507889380258a7d2bb939d docs/models/components/justificationtype.md: id: 5a15880767a5 - last_write_checksum: sha1:3966d475972ebd14cc3610725134db18e9921a58 - pristine_git_object: 939bec1f87a71c57589f59f2d313f62c04cb4261 + last_write_checksum: sha1:e92b276ba5f4c13692906aa8bd5ed716405792ab + pristine_git_object: e9ca10aa982bac7caeff21c70d72d7f558ac2a7b docs/models/components/knowledgetype.md: id: cf27a7cefa69 last_write_checksum: sha1:f7294d6350e558a0a626ac41241ccbf0facacf10 @@ -1966,8 +1966,8 @@ trackedFiles: pristine_git_object: 9d48703e1b73640c405b8d69c59f392333053671 docs/models/components/placementreason.md: id: 4aca343a58b8 - last_write_checksum: sha1:53884c743cf61c80b110a1d4f32d33efc2b79d28 - pristine_git_object: 3a28581375dae69fbba45979f294764aa0b537a0 + last_write_checksum: sha1:c2156b5fa8fc7ea923df58268a5f7ba35a40b622 + pristine_git_object: 664d0151931637202c469d4bb49893d8c54e43b1 docs/models/components/platformactionsummary.md: id: 93ecbff93962 last_write_checksum: sha1:81cb0da4be5b2978c5f51302a3053b23665f6142 @@ -4218,8 +4218,8 @@ trackedFiles: pristine_git_object: a3cb3e5448f3fdcfad77ed2a4ba47ae848d5cd5d glean.go: id: f5ed099b8e85 - last_write_checksum: sha1:dd0ec8b40cf15bc08d6835dbef376f36a0b7bea0 - pristine_git_object: abdbc27bc95681e8ed6ae7fcba37b0904e9d6b6c + last_write_checksum: sha1:3f57927500b08369862b28ab6c9b9697e5d59092 + pristine_git_object: e342d53bdbbdbfe5efcab556b8457999e6522f76 go.mod: id: c47645c391ad last_write_checksum: sha1:cf65a2c96e303858d4cf70e07d4c44d3f1c1db38 @@ -5266,12 +5266,12 @@ trackedFiles: pristine_git_object: 220dbff76d0d3d12e6bdcb05787a6df030124ca5 models/components/feedentry.go: id: 2826af1aa01a - last_write_checksum: sha1:0ca83b3619c37a03602d27bf0146e65bee1b7c9e - pristine_git_object: de252b0ff8f071f9b2ab01f2bf371b14ad396782 + last_write_checksum: sha1:ab3501a9ee8bf06b98c9c3db978c3b9c04778eb1 + pristine_git_object: 3016c7f64a2526e9f1a0ebe8256bc471790d12c4 models/components/feedrequest.go: id: 9f0a682fc981 - last_write_checksum: sha1:bdcd950f3b30cacec8df265a5669c3a08f3a3b3a - pristine_git_object: 9e570b31eb51b22f73e043b7aa4316e11a83cf6a + last_write_checksum: sha1:a8e57020d73e09a8c1f8ea64c020401de8278623 + pristine_git_object: 283b42e058492f62bd999765d54ad4b11e2d11ec models/components/feedrequestoptions.go: id: a56c104c989d last_write_checksum: sha1:7f238a9abb079c78202b1a9f65c87b82420f63ec @@ -5282,8 +5282,8 @@ trackedFiles: pristine_git_object: 60cb4b19cbb9bd29e37128e3110b2bf0a8f80d30 models/components/feedresult.go: id: f017ac6e3ac3 - last_write_checksum: sha1:5b3d26aeb17d1344d2da336ea75c160472b13dd5 - pristine_git_object: f809c38f4e1d71b5a9fa326d5b68b4f72afa78fc + last_write_checksum: sha1:1abcc7b8195a71e4662a239d7cd3735173460a4e + pristine_git_object: 8bb88191035641cb4da60d873b3a7d07ab8f99a0 models/components/followupaction.go: id: aba266d23418 last_write_checksum: sha1:0a17407e6beba30680e5c38151e426a5ce7aab76 @@ -7342,8 +7342,8 @@ trackedFiles: pristine_git_object: 6d9cbca42012c2760de3ecaf4f569c53d32197da tests/messages_test.go: id: 3433c956b7a3 - last_write_checksum: sha1:352ecfa3a01795bbe7fad9b0202c4ccaa02448c3 - pristine_git_object: 64ef64fe1c0ccbc223987d87ddddf3d6e2de7799 + last_write_checksum: sha1:63e7b1c9a68b43467855286635a88cb166b2bc79 + pristine_git_object: febdc0e8a34b769bfc6dcfe3a9e33053b2267433 tests/mockserver/.gitignore: id: 7705eb663274 last_write_checksum: sha1:228e1b05712a973948fd771323a2140a3b355ff4 @@ -7794,8 +7794,8 @@ trackedFiles: pristine_git_object: abb763ddc8504b28c0cb6fdf8d25237d46e21bab tests/mockserver/internal/handler/pathpostrestapiv1getchat.go: id: a0ec7bafa599 - last_write_checksum: sha1:2267292ba8173cf8df70ddbc6ac02ff3439cb879 - pristine_git_object: 8740195860b6c08e036caae19aab8e7374350960 + last_write_checksum: sha1:b48e2313407814ee4f8ed181b8e5299a84960c44 + pristine_git_object: 96d4127e0455272a9842e2d1954e5fcefa3278cc tests/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go: id: 7d101c69d4bc last_write_checksum: sha1:7b81898137fdb3a89b4dcfa318b9b5b92e8860c0 @@ -8862,12 +8862,12 @@ trackedFiles: pristine_git_object: 04cc3a93272ac70933b0485bee31b335e05ab623 tests/mockserver/internal/sdk/models/components/feedentry.go: id: d25fd66fcf7a - last_write_checksum: sha1:7c8546042939c356feeb9846070c23a04edd1a13 - pristine_git_object: 75c2030f1bf29bd59360b09c62df32f9efee0517 + last_write_checksum: sha1:ca05066846a6d047343e46a4d545a1402e92b96c + pristine_git_object: 90b0237c9a4c54e1aceada9137ee3ff4409b9837 tests/mockserver/internal/sdk/models/components/feedrequest.go: id: b06bc4cef0cf - last_write_checksum: sha1:ca761301495e36eaf10fc4fa9086380498e6491a - pristine_git_object: 854c8390fa48c1647f0f3c04d19d89f6aae43d6f + last_write_checksum: sha1:a1293c6cdc3c294628e854614229c370a5218b71 + pristine_git_object: 97365efff1b005e6769bb2d5b561de68aadfc221 tests/mockserver/internal/sdk/models/components/feedrequestoptions.go: id: fd9245fe1bf2 last_write_checksum: sha1:fa30b7fd6ee3e45896d7bbe36e33e7c0cb9000ba @@ -8878,8 +8878,8 @@ trackedFiles: pristine_git_object: 54f9d1a8997983156c84e69f888c59a80d06c2b1 tests/mockserver/internal/sdk/models/components/feedresult.go: id: 47411573e67a - last_write_checksum: sha1:1980e5be5848c3aa1e732c680f7472899c9eb19c - pristine_git_object: 158c74284653d58bdffbab15a8f23188e092875d + last_write_checksum: sha1:973eec9b2d273d721f6310ebb20578c7d4f142d1 + pristine_git_object: cc69740a57fd002be69b2922812d7497a0778f51 tests/mockserver/internal/sdk/models/components/followupaction.go: id: 38179fec19b1 last_write_checksum: sha1:32a31f7af77a58ce6f3284e8550d01fcf0d3bddd @@ -10926,8 +10926,8 @@ trackedFiles: pristine_git_object: 34de629e636ff1ec4a5341bdf6b0ae06aa408ba4 tests/summarize_test.go: id: 1b63b0a16e69 - last_write_checksum: sha1:7b432655f0dba886ce6a8857b300eb3b0f43d5ea - pristine_git_object: 455b796edf1ac793ed4cb75eb326727716c0e3e3 + last_write_checksum: sha1:f4293c9d4f23fd82897dc1aa42464acbcf7c3ab0 + pristine_git_object: 0584f2ffb97eaa2926a3599ec50475a23623e992 tests/testclient.go: id: 78d36c6e169c last_write_checksum: sha1:507c44e437934fbff8d295201c1327e18bd00df8 @@ -12406,6 +12406,7 @@ generatedTests: post_/api/index/v1/debug/{datasource}/documents: "2026-08-07T21:23:24Z" post_/api/index/v1/debug/{datasource}/document/events: "2026-08-07T21:23:24Z" post_/api/index/v1/debug/{datasource}/user: "2026-08-07T21:23:24Z" +releaseNotes: "## Go SDK Changes:\n* `Glean.Client.Search.RetrieveFeed()`: \n * `request.FeedRequest.Categories[].Enum(knowledgeGap)` **Added**\n * `response.Results[]` **Changed**\n" generatedFiles: - .devcontainer/README.md - .devcontainer/devcontainer.json diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 1cf05a90..a1d4923e 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -32,7 +32,7 @@ generation: generateNewTests: true skipResponseBodyAssertions: true go: - version: 0.13.5 + version: 0.13.6 additionalDependencies: {} allowUnknownFieldsInWeakUnions: false baseErrorName: GleanError diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 1906bd1f..549a71fc 100644 --- a/.speakeasy/glean-merged-spec.yaml +++ b/.speakeasy/glean-merged-spec.yaml @@ -2,8 +2,8 @@ openapi: 3.0.0 info: version: "0.9.0" title: Glean API - x-source-commit-sha: 7a82cb818d032eca9f42d56706dd9e0a65418d45 - x-open-api-commit-sha: 987c3f6458420f6a99420d808bdccea74ab84dad + x-source-commit-sha: 490cb4fb47804dfb45ef06490f96f662704ed913 + x-open-api-commit-sha: 99b6a2e459684888ecb1484200b9113eb2eb0cb7 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. @@ -205,7 +205,8 @@ paths: text/event-stream: schema: type: string - description: Server-sent events emitted by the running agent. + description: | + Server-sent events emitted by the running agent. Successful runs emit `message` events. A terminal failure after the stream has started emits exactly one `run.failed` event whose `data` is an `AgentRunFailedEventData` payload, then closes. example: | id: 1 event: message @@ -214,6 +215,10 @@ paths: id: 2 event: message data: {"messages":[{"role":"GLEAN_AI","content":[{"text":", I can help with HR policy questions.","type":"text"}]}]} + + id: 3 + event: run.failed + data: {"error":{"type":"https://developers.glean.com/errors/spend-limit-exceeded","title":"Spend Limit Exceeded","status":403,"detail":"You've reached the monthly limit set by your admin.","code":"spend_limit_exceeded","request_id":"req_123","documentation_url":"https://developers.glean.com/errors/spend-limit-exceeded"}} "400": $ref: "#/components/responses/PlatformBadRequest" "401": @@ -281,14 +286,18 @@ paths: data: {"type":"response.created","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015"} id: 2 + event: response.progress + data: {"type":"response.progress","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","text":"**Searching:** foo"} + + id: 3 event: response.output_text.delta data: {"type":"response.output_text.delta","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","delta":"Hello"} - id: 3 + id: 4 event: response.output_text.done data: {"type":"response.output_text.done","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","text":"Hello"} - id: 4 + id: 5 event: response.completed data: {"type":"response.completed","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","response":{"id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","object":"response","status":"completed","output":[{"type":"message","role":"assistant","content":[{"type":"output_text","text":"Hello"}]}],"store":true,"request_id":"req_123","created_at":"2026-07-14T20:00:00Z"}} "400": @@ -14344,6 +14353,7 @@ components: - OOO_PLANNER - OOO_CATCH_UP - ADMIN_HEALTH_CENTER + - KNOWLEDGE_GAP description: Categories of content requested. An allowlist gives flexibility to request content separately or together. requestOptions: $ref: '#/components/schemas/FeedRequestOptions' @@ -14789,6 +14799,7 @@ components: - OOO_PLANNER - OOO_CATCH_UP - ADMIN_HEALTH_CENTER + - KNOWLEDGE_GAP description: Type of the justification. justification: type: string @@ -14880,6 +14891,7 @@ components: - OOO_PLANNER - OOO_CATCH_UP - ADMIN_HEALTH_CENTER + - KNOWLEDGE_GAP description: Category of the result, one of the requested categories in incoming request. primaryEntry: $ref: '#/components/schemas/FeedEntry' @@ -14896,7 +14908,8 @@ components: enum: - ORGANIC - PROMO - description: Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. + - PINNED + description: Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). required: - category - primaryEntry diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 59d062f5..43104401 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.792.0 +speakeasyVersion: 1.793.1 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:ca77ef4550d695da210e8f0d32f3422d29e9d09f7aa66f7b13d248c6ec8c7941 - sourceBlobDigest: sha256:469de4cd2c8ab4928c3989656bf63cc265a8ceea5a8b3e3498734137b19723f8 + sourceRevisionDigest: sha256:802f61fb03e7ef1362e9cdbf9b9f4d3c5568dcc9b7096ea8c996e0a2357823f2 + sourceBlobDigest: sha256:90e54bb0150d7299edd88023432fed6cd5f94bf4033b2b17ff43ad8439c5d217 tags: - latest petstore-oas: @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:ca77ef4550d695da210e8f0d32f3422d29e9d09f7aa66f7b13d248c6ec8c7941 - sourceBlobDigest: sha256:469de4cd2c8ab4928c3989656bf63cc265a8ceea5a8b3e3498734137b19723f8 + sourceRevisionDigest: sha256:802f61fb03e7ef1362e9cdbf9b9f4d3c5568dcc9b7096ea8c996e0a2357823f2 + sourceBlobDigest: sha256:90e54bb0150d7299edd88023432fed6cd5f94bf4033b2b17ff43ad8439c5d217 codeSamplesNamespace: glean-api-specs-go-code-samples - codeSamplesRevisionDigest: sha256:df19d1292f8190bf57b907045c6e7529b7f5c500b6d01a0f8d909961d64ae7f5 + codeSamplesRevisionDigest: sha256:cd6b884a68a2e23cc0d8423c22d9573c2cb6eea7d2980a13b3943b16305a0ce7 petstore: source: petstore-oas sourceNamespace: petstore-oas diff --git a/RELEASES.md b/RELEASES.md index b9bb27e9..7d6a79ef 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -818,4 +818,14 @@ Based on: ### Generated - [go v0.13.5] . ### Releases -- [Go v0.13.5] https://github.com/gleanwork/api-client-go/releases/tag/v0.13.5 - . \ No newline at end of file +- [Go v0.13.5] https://github.com/gleanwork/api-client-go/releases/tag/v0.13.5 - . + +## 2026-08-12 01:26:02 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.793.1 (2.928.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [go v0.13.6] . +### Releases +- [Go v0.13.6] https://github.com/gleanwork/api-client-go/releases/tag/v0.13.6 - . \ No newline at end of file diff --git a/docs/models/components/feedrequestcategory.md b/docs/models/components/feedrequestcategory.md index 66caa43b..56e58281 100644 --- a/docs/models/components/feedrequestcategory.md +++ b/docs/models/components/feedrequestcategory.md @@ -59,4 +59,5 @@ value := components.FeedRequestCategoryDocumentSuggestion | `FeedRequestCategoryDemoCard` | DEMO_CARD | | `FeedRequestCategoryOooPlanner` | OOO_PLANNER | | `FeedRequestCategoryOooCatchUp` | OOO_CATCH_UP | -| `FeedRequestCategoryAdminHealthCenter` | ADMIN_HEALTH_CENTER | \ No newline at end of file +| `FeedRequestCategoryAdminHealthCenter` | ADMIN_HEALTH_CENTER | +| `FeedRequestCategoryKnowledgeGap` | KNOWLEDGE_GAP | \ No newline at end of file diff --git a/docs/models/components/feedresult.md b/docs/models/components/feedresult.md index a3d714f7..86a3734a 100644 --- a/docs/models/components/feedresult.md +++ b/docs/models/components/feedresult.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Category` | [components.FeedResultCategory](../../models/components/feedresultcategory.md) | :heavy_check_mark: | Category of the result, one of the requested categories in incoming request. | -| `PrimaryEntry` | [components.FeedEntry](../../models/components/feedentry.md) | :heavy_check_mark: | N/A | -| `SecondaryEntries` | [][components.FeedEntry](../../models/components/feedentry.md) | :heavy_minus_sign: | Secondary entries for the result e.g. suggested docs for the calendar, carousel. | -| `Rank` | `*int64` | :heavy_minus_sign: | Rank of the result. Rank is suggested by server. Client side rank may differ. | -| `PlacementReason` | [*components.PlacementReason](../../models/components/placementreason.md) | :heavy_minus_sign: | Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Category` | [components.FeedResultCategory](../../models/components/feedresultcategory.md) | :heavy_check_mark: | Category of the result, one of the requested categories in incoming request. | +| `PrimaryEntry` | [components.FeedEntry](../../models/components/feedentry.md) | :heavy_check_mark: | N/A | +| `SecondaryEntries` | [][components.FeedEntry](../../models/components/feedentry.md) | :heavy_minus_sign: | Secondary entries for the result e.g. suggested docs for the calendar, carousel. | +| `Rank` | `*int64` | :heavy_minus_sign: | Rank of the result. Rank is suggested by server. Client side rank may differ. | +| `PlacementReason` | [*components.PlacementReason](../../models/components/placementreason.md) | :heavy_minus_sign: | Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). | \ No newline at end of file diff --git a/docs/models/components/feedresultcategory.md b/docs/models/components/feedresultcategory.md index 08e487bf..d549449a 100644 --- a/docs/models/components/feedresultcategory.md +++ b/docs/models/components/feedresultcategory.md @@ -64,4 +64,5 @@ custom := components.FeedResultCategory("custom_value") | `FeedResultCategoryDemoCard` | DEMO_CARD | | `FeedResultCategoryOooPlanner` | OOO_PLANNER | | `FeedResultCategoryOooCatchUp` | OOO_CATCH_UP | -| `FeedResultCategoryAdminHealthCenter` | ADMIN_HEALTH_CENTER | \ No newline at end of file +| `FeedResultCategoryAdminHealthCenter` | ADMIN_HEALTH_CENTER | +| `FeedResultCategoryKnowledgeGap` | KNOWLEDGE_GAP | \ No newline at end of file diff --git a/docs/models/components/justificationtype.md b/docs/models/components/justificationtype.md index 939bec1f..e9ca10aa 100644 --- a/docs/models/components/justificationtype.md +++ b/docs/models/components/justificationtype.md @@ -77,4 +77,5 @@ custom := components.JustificationType("custom_value") | `JustificationTypeDemoCard` | DEMO_CARD | | `JustificationTypeOooPlanner` | OOO_PLANNER | | `JustificationTypeOooCatchUp` | OOO_CATCH_UP | -| `JustificationTypeAdminHealthCenter` | ADMIN_HEALTH_CENTER | \ No newline at end of file +| `JustificationTypeAdminHealthCenter` | ADMIN_HEALTH_CENTER | +| `JustificationTypeKnowledgeGap` | KNOWLEDGE_GAP | \ No newline at end of file diff --git a/docs/models/components/placementreason.md b/docs/models/components/placementreason.md index 3a285813..664d0151 100644 --- a/docs/models/components/placementreason.md +++ b/docs/models/components/placementreason.md @@ -1,6 +1,6 @@ # PlacementReason -Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. +Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). ## Example Usage @@ -21,4 +21,5 @@ custom := components.PlacementReason("custom_value") | Name | Value | | ------------------------ | ------------------------ | | `PlacementReasonOrganic` | ORGANIC | -| `PlacementReasonPromo` | PROMO | \ No newline at end of file +| `PlacementReasonPromo` | PROMO | +| `PlacementReasonPinned` | PINNED | \ No newline at end of file diff --git a/glean.go b/glean.go index abdbc27b..e342d53b 100644 --- a/glean.go +++ b/glean.go @@ -2,7 +2,7 @@ package apiclientgo -// Generated from OpenAPI doc version 0.9.0 and generator version 2.927.0 +// Generated from OpenAPI doc version 0.9.0 and generator version 2.928.0 import ( "context" @@ -68,9 +68,12 @@ type Glean struct { Agents *Agents Chat *Chat Skills *Skills - Search *Search - Client *Client - Indexing *Indexing + // Search agents + // Search agents available to the authenticated user by agent name. + // + Search *Search + Client *Client + Indexing *Indexing sdkConfiguration config.SDKConfiguration hooks *hooks.Hooks @@ -160,9 +163,9 @@ func WithTimeout(timeout time.Duration) SDKOption { // New creates a new instance of the SDK with the provided options func New(opts ...SDKOption) *Glean { sdk := &Glean{ - SDKVersion: "0.13.5", + SDKVersion: "0.13.6", sdkConfiguration: config.SDKConfiguration{ - UserAgent: "speakeasy-sdk/go 0.13.5 2.927.0 0.9.0 github.com/gleanwork/api-client-go", + UserAgent: "speakeasy-sdk/go 0.13.6 2.928.0 0.9.0 github.com/gleanwork/api-client-go", ServerList: ServerList, ServerVariables: []map[string]string{ { diff --git a/models/components/feedentry.go b/models/components/feedentry.go index de252b0f..3016c7f6 100644 --- a/models/components/feedentry.go +++ b/models/components/feedentry.go @@ -114,6 +114,7 @@ const ( JustificationTypeOooPlanner JustificationType = "OOO_PLANNER" JustificationTypeOooCatchUp JustificationType = "OOO_CATCH_UP" JustificationTypeAdminHealthCenter JustificationType = "ADMIN_HEALTH_CENTER" + JustificationTypeKnowledgeGap JustificationType = "KNOWLEDGE_GAP" ) func (e JustificationType) ToPointer() *JustificationType { @@ -124,7 +125,7 @@ func (e JustificationType) ToPointer() *JustificationType { func (e *JustificationType) IsExact() bool { if e != nil { switch *e { - case "FREQUENTLY_ACCESSED", "RECENTLY_ACCESSED", "TRENDING_DOCUMENT", "VERIFICATION_REMINDER", "SUGGESTED_DOCUMENT", "EMPTY_STATE_SUGGESTION", "FRECENCY_SCORED", "SERVER_GENERATED", "USE_CASE", "UPDATE_SINCE_LAST_VIEW", "RECENTLY_STARTED", "EVENT", "USER_MENTION", "ANNOUNCEMENT", "EXTERNAL_ANNOUNCEMENT", "POPULARITY_BASED_TRENDING", "COMPANY_RESOURCE", "EVENT_DOCUMENT_FROM_CONTENT", "EVENT_DOCUMENT_FROM_SEARCH", "VISIT_AFFINITY_SCORED", "SUGGESTED_APP", "SUGGESTED_PERSON", "ACTIVITY_HIGHLIGHT", "SAVED_SEARCH", "SUGGESTED_CHANNEL", "PEOPLE_CELEBRATIONS", "SOCIAL_LINK", "ZERO_STATE_CHAT_SUGGESTION", "ZERO_STATE_CHAT_TOOL_SUGGESTION", "ZERO_STATE_PROMPT_TEMPLATE_SUGGESTION", "ZERO_STATE_STATIC_WORKFLOW_SUGGESTION", "ZERO_STATE_AGENT_SUGGESTION", "PERSONALIZED_CHAT_SUGGESTION", "DAILY_DIGEST", "PODCAST", "TASK", "PLAN_MY_DAY", "END_MY_DAY", "STARTER_KIT_EXTENSION", "STARTER_KIT_ORG_CHART", "STARTER_KIT_ADD_DOC", "MEETING_RECAP", "MEETING_PREP_AUTOMATION", "ACTIVE_DISCUSSION", "MID_DAY_CATCH_UP", "QUERY_SUGGESTION", "COWORK_CUJ_PROMO", "CARD_STACK_PROMO", "WEEKLY_MEETINGS", "FOLLOW_UP", "MILESTONE_TIMELINE_CHECK", "PROJECT_DISCUSSION_DIGEST", "PROJECT_FOCUS_BLOCK", "PROJECT_NEXT_STEP", "DEMO_CARD", "OOO_PLANNER", "OOO_CATCH_UP", "ADMIN_HEALTH_CENTER": + case "FREQUENTLY_ACCESSED", "RECENTLY_ACCESSED", "TRENDING_DOCUMENT", "VERIFICATION_REMINDER", "SUGGESTED_DOCUMENT", "EMPTY_STATE_SUGGESTION", "FRECENCY_SCORED", "SERVER_GENERATED", "USE_CASE", "UPDATE_SINCE_LAST_VIEW", "RECENTLY_STARTED", "EVENT", "USER_MENTION", "ANNOUNCEMENT", "EXTERNAL_ANNOUNCEMENT", "POPULARITY_BASED_TRENDING", "COMPANY_RESOURCE", "EVENT_DOCUMENT_FROM_CONTENT", "EVENT_DOCUMENT_FROM_SEARCH", "VISIT_AFFINITY_SCORED", "SUGGESTED_APP", "SUGGESTED_PERSON", "ACTIVITY_HIGHLIGHT", "SAVED_SEARCH", "SUGGESTED_CHANNEL", "PEOPLE_CELEBRATIONS", "SOCIAL_LINK", "ZERO_STATE_CHAT_SUGGESTION", "ZERO_STATE_CHAT_TOOL_SUGGESTION", "ZERO_STATE_PROMPT_TEMPLATE_SUGGESTION", "ZERO_STATE_STATIC_WORKFLOW_SUGGESTION", "ZERO_STATE_AGENT_SUGGESTION", "PERSONALIZED_CHAT_SUGGESTION", "DAILY_DIGEST", "PODCAST", "TASK", "PLAN_MY_DAY", "END_MY_DAY", "STARTER_KIT_EXTENSION", "STARTER_KIT_ORG_CHART", "STARTER_KIT_ADD_DOC", "MEETING_RECAP", "MEETING_PREP_AUTOMATION", "ACTIVE_DISCUSSION", "MID_DAY_CATCH_UP", "QUERY_SUGGESTION", "COWORK_CUJ_PROMO", "CARD_STACK_PROMO", "WEEKLY_MEETINGS", "FOLLOW_UP", "MILESTONE_TIMELINE_CHECK", "PROJECT_DISCUSSION_DIGEST", "PROJECT_FOCUS_BLOCK", "PROJECT_NEXT_STEP", "DEMO_CARD", "OOO_PLANNER", "OOO_CATCH_UP", "ADMIN_HEALTH_CENTER", "KNOWLEDGE_GAP": return true } } diff --git a/models/components/feedrequest.go b/models/components/feedrequest.go index 9e570b31..283b42e0 100644 --- a/models/components/feedrequest.go +++ b/models/components/feedrequest.go @@ -55,6 +55,7 @@ const ( FeedRequestCategoryOooPlanner FeedRequestCategory = "OOO_PLANNER" FeedRequestCategoryOooCatchUp FeedRequestCategory = "OOO_CATCH_UP" FeedRequestCategoryAdminHealthCenter FeedRequestCategory = "ADMIN_HEALTH_CENTER" + FeedRequestCategoryKnowledgeGap FeedRequestCategory = "KNOWLEDGE_GAP" ) func (e FeedRequestCategory) ToPointer() *FeedRequestCategory { @@ -155,6 +156,8 @@ func (e *FeedRequestCategory) UnmarshalJSON(data []byte) error { case "OOO_CATCH_UP": fallthrough case "ADMIN_HEALTH_CENTER": + fallthrough + case "KNOWLEDGE_GAP": *e = FeedRequestCategory(v) return nil default: diff --git a/models/components/feedresult.go b/models/components/feedresult.go index f809c38f..8bb88191 100644 --- a/models/components/feedresult.go +++ b/models/components/feedresult.go @@ -51,6 +51,7 @@ const ( FeedResultCategoryOooPlanner FeedResultCategory = "OOO_PLANNER" FeedResultCategoryOooCatchUp FeedResultCategory = "OOO_CATCH_UP" FeedResultCategoryAdminHealthCenter FeedResultCategory = "ADMIN_HEALTH_CENTER" + FeedResultCategoryKnowledgeGap FeedResultCategory = "KNOWLEDGE_GAP" ) func (e FeedResultCategory) ToPointer() *FeedResultCategory { @@ -61,19 +62,20 @@ func (e FeedResultCategory) ToPointer() *FeedResultCategory { func (e *FeedResultCategory) IsExact() bool { if e != nil { switch *e { - case "DOCUMENT_SUGGESTION", "DOCUMENT_SUGGESTION_SCENARIO", "TRENDING_DOCUMENT", "USE_CASE", "VERIFICATION_REMINDER", "EVENT", "ANNOUNCEMENT", "MENTION", "DATASOURCE_AFFINITY", "RECENT", "COMPANY_RESOURCE", "EXPERIMENTAL", "PEOPLE_CELEBRATIONS", "SOCIAL_LINK", "EXTERNAL_TASKS", "DISPLAYABLE_LIST", "ZERO_STATE_CHAT_SUGGESTION", "ZERO_STATE_CHAT_TOOL_SUGGESTION", "ZERO_STATE_WORKFLOW_CREATED_BY_ME", "ZERO_STATE_WORKFLOW_FAVORITES", "ZERO_STATE_WORKFLOW_POPULAR", "ZERO_STATE_WORKFLOW_RECENT", "ZERO_STATE_WORKFLOW_SUGGESTION", "PERSONALIZED_CHAT_SUGGESTION", "DAILY_DIGEST", "PODCAST", "TASK", "PLAN_MY_DAY", "END_MY_DAY", "STARTER_KIT", "MEETING_PREP_AUTOMATION", "MID_DAY_CATCH_UP", "QUERY_SUGGESTION", "COWORK_CUJ_PROMO", "CARD_STACK_PROMO", "WEEKLY_MEETINGS", "FOLLOW_UP", "MILESTONE_TIMELINE_CHECK", "PROJECT_DISCUSSION_DIGEST", "PROJECT_FOCUS_BLOCK", "PROJECT_NEXT_STEP", "DEMO_CARD", "OOO_PLANNER", "OOO_CATCH_UP", "ADMIN_HEALTH_CENTER": + case "DOCUMENT_SUGGESTION", "DOCUMENT_SUGGESTION_SCENARIO", "TRENDING_DOCUMENT", "USE_CASE", "VERIFICATION_REMINDER", "EVENT", "ANNOUNCEMENT", "MENTION", "DATASOURCE_AFFINITY", "RECENT", "COMPANY_RESOURCE", "EXPERIMENTAL", "PEOPLE_CELEBRATIONS", "SOCIAL_LINK", "EXTERNAL_TASKS", "DISPLAYABLE_LIST", "ZERO_STATE_CHAT_SUGGESTION", "ZERO_STATE_CHAT_TOOL_SUGGESTION", "ZERO_STATE_WORKFLOW_CREATED_BY_ME", "ZERO_STATE_WORKFLOW_FAVORITES", "ZERO_STATE_WORKFLOW_POPULAR", "ZERO_STATE_WORKFLOW_RECENT", "ZERO_STATE_WORKFLOW_SUGGESTION", "PERSONALIZED_CHAT_SUGGESTION", "DAILY_DIGEST", "PODCAST", "TASK", "PLAN_MY_DAY", "END_MY_DAY", "STARTER_KIT", "MEETING_PREP_AUTOMATION", "MID_DAY_CATCH_UP", "QUERY_SUGGESTION", "COWORK_CUJ_PROMO", "CARD_STACK_PROMO", "WEEKLY_MEETINGS", "FOLLOW_UP", "MILESTONE_TIMELINE_CHECK", "PROJECT_DISCUSSION_DIGEST", "PROJECT_FOCUS_BLOCK", "PROJECT_NEXT_STEP", "DEMO_CARD", "OOO_PLANNER", "OOO_CATCH_UP", "ADMIN_HEALTH_CENTER", "KNOWLEDGE_GAP": return true } } return false } -// PlacementReason - Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. +// PlacementReason - Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). type PlacementReason string const ( PlacementReasonOrganic PlacementReason = "ORGANIC" PlacementReasonPromo PlacementReason = "PROMO" + PlacementReasonPinned PlacementReason = "PINNED" ) func (e PlacementReason) ToPointer() *PlacementReason { @@ -84,7 +86,7 @@ func (e PlacementReason) ToPointer() *PlacementReason { func (e *PlacementReason) IsExact() bool { if e != nil { switch *e { - case "ORGANIC", "PROMO": + case "ORGANIC", "PROMO", "PINNED": return true } } @@ -99,7 +101,7 @@ type FeedResult struct { SecondaryEntries []FeedEntry `json:"secondaryEntries,omitempty"` // Rank of the result. Rank is suggested by server. Client side rank may differ. Rank *int64 `json:"rank,omitempty"` - // Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. + // Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). PlacementReason *PlacementReason `json:"placementReason,omitempty"` } diff --git a/tests/messages_test.go b/tests/messages_test.go index 64ef64fe..febdc0e8 100644 --- a/tests/messages_test.go +++ b/tests/messages_test.go @@ -27,7 +27,7 @@ func TestMessages_Messages(t *testing.T) { IDType: components.IDTypeConversationID, ID: "", TimestampMillis: apiclientgo.Pointer[int64](558834), - Datasource: components.DatasourceFacebookworkplace, + Datasource: components.DatasourceGchat, }, nil) require.NoError(t, err) assert.Equal(t, 200, res.HTTPMeta.Response.StatusCode) diff --git a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go index 87401958..96d4127e 100644 --- a/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go +++ b/tests/mockserver/internal/handler/pathpostrestapiv1getchat.go @@ -628,8 +628,8 @@ func testGetchatGetchat0(w http.ResponseWriter, req *http.Request) { Roles: []components.UserRoleSpecification{}, SourceDocumentSpec: types.Pointer(components.CreateDocumentSpecUnionDocumentSpec3( components.DocumentSpec3{ - UgcType: components.DocumentSpecUgcType1Shortcuts, - ContentID: 602763, + UgcType: components.DocumentSpecUgcType1Announcements, + ContentID: 848009, }, )), SourceType: components.AnswerSourceTypeAssistant.ToPointer(), diff --git a/tests/mockserver/internal/sdk/models/components/feedentry.go b/tests/mockserver/internal/sdk/models/components/feedentry.go index 75c2030f..90b0237c 100644 --- a/tests/mockserver/internal/sdk/models/components/feedentry.go +++ b/tests/mockserver/internal/sdk/models/components/feedentry.go @@ -114,6 +114,7 @@ const ( JustificationTypeOooPlanner JustificationType = "OOO_PLANNER" JustificationTypeOooCatchUp JustificationType = "OOO_CATCH_UP" JustificationTypeAdminHealthCenter JustificationType = "ADMIN_HEALTH_CENTER" + JustificationTypeKnowledgeGap JustificationType = "KNOWLEDGE_GAP" ) func (e JustificationType) ToPointer() *JustificationType { @@ -240,6 +241,8 @@ func (e *JustificationType) UnmarshalJSON(data []byte) error { case "OOO_CATCH_UP": fallthrough case "ADMIN_HEALTH_CENTER": + fallthrough + case "KNOWLEDGE_GAP": *e = JustificationType(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/feedrequest.go b/tests/mockserver/internal/sdk/models/components/feedrequest.go index 854c8390..97365eff 100644 --- a/tests/mockserver/internal/sdk/models/components/feedrequest.go +++ b/tests/mockserver/internal/sdk/models/components/feedrequest.go @@ -55,6 +55,7 @@ const ( FeedRequestCategoryOooPlanner FeedRequestCategory = "OOO_PLANNER" FeedRequestCategoryOooCatchUp FeedRequestCategory = "OOO_CATCH_UP" FeedRequestCategoryAdminHealthCenter FeedRequestCategory = "ADMIN_HEALTH_CENTER" + FeedRequestCategoryKnowledgeGap FeedRequestCategory = "KNOWLEDGE_GAP" ) func (e FeedRequestCategory) ToPointer() *FeedRequestCategory { @@ -155,6 +156,8 @@ func (e *FeedRequestCategory) UnmarshalJSON(data []byte) error { case "OOO_CATCH_UP": fallthrough case "ADMIN_HEALTH_CENTER": + fallthrough + case "KNOWLEDGE_GAP": *e = FeedRequestCategory(v) return nil default: diff --git a/tests/mockserver/internal/sdk/models/components/feedresult.go b/tests/mockserver/internal/sdk/models/components/feedresult.go index 158c7428..cc69740a 100644 --- a/tests/mockserver/internal/sdk/models/components/feedresult.go +++ b/tests/mockserver/internal/sdk/models/components/feedresult.go @@ -56,6 +56,7 @@ const ( FeedResultCategoryOooPlanner FeedResultCategory = "OOO_PLANNER" FeedResultCategoryOooCatchUp FeedResultCategory = "OOO_CATCH_UP" FeedResultCategoryAdminHealthCenter FeedResultCategory = "ADMIN_HEALTH_CENTER" + FeedResultCategoryKnowledgeGap FeedResultCategory = "KNOWLEDGE_GAP" ) func (e FeedResultCategory) ToPointer() *FeedResultCategory { @@ -156,6 +157,8 @@ func (e *FeedResultCategory) UnmarshalJSON(data []byte) error { case "OOO_CATCH_UP": fallthrough case "ADMIN_HEALTH_CENTER": + fallthrough + case "KNOWLEDGE_GAP": *e = FeedResultCategory(v) return nil default: @@ -163,12 +166,13 @@ func (e *FeedResultCategory) UnmarshalJSON(data []byte) error { } } -// PlacementReason - Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. +// PlacementReason - Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). type PlacementReason string const ( PlacementReasonOrganic PlacementReason = "ORGANIC" PlacementReasonPromo PlacementReason = "PROMO" + PlacementReasonPinned PlacementReason = "PINNED" ) func (e PlacementReason) ToPointer() *PlacementReason { @@ -183,6 +187,8 @@ func (e *PlacementReason) UnmarshalJSON(data []byte) error { case "ORGANIC": fallthrough case "PROMO": + fallthrough + case "PINNED": *e = PlacementReason(v) return nil default: @@ -198,7 +204,7 @@ type FeedResult struct { SecondaryEntries []FeedEntry `json:"secondaryEntries,omitempty"` // Rank of the result. Rank is suggested by server. Client side rank may differ. Rank *int64 `json:"rank,omitempty"` - // Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. + // Placement source for ranked feed results. ORGANIC means the card was emitted by normal feed ranking. PROMO means the card was inserted by the homepage cards promo framework. PINNED means the card was moved to the head of the ranked stack (e.g. knowledge-gap pilot cards). PlacementReason *PlacementReason `json:"placementReason,omitempty"` } diff --git a/tests/summarize_test.go b/tests/summarize_test.go index 455b796e..0584f2ff 100644 --- a/tests/summarize_test.go +++ b/tests/summarize_test.go @@ -25,17 +25,17 @@ func TestSummarize_Summarize(t *testing.T) { res, err := s.Client.Documents.Summarize(ctx, components.SummarizeRequest{ DocumentSpecs: []components.DocumentSpecUnion{ - components.CreateDocumentSpecUnionDocumentSpec1( - components.DocumentSpec1{ - URL: "https://deficient-majority.net", - }, - ), components.CreateDocumentSpecUnionDocumentSpec4( components.DocumentSpec4{ - UgcType: components.DocumentSpecUgcType2Shortcuts, + UgcType: components.DocumentSpecUgcType2Artifacts, UgcID: "", }, ), + components.CreateDocumentSpecUnionDocumentSpec2( + components.DocumentSpec2{ + ID: "", + }, + ), }, }, nil) require.NoError(t, err)