From 6bcb587f6f7d4fad54e450c939a05ed36575f014 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 12 Aug 2026 09:24:49 +0000 Subject: [PATCH 1/2] ## Java SDK Changes: * `glean.client.search.retrieveFeed()`: * `request.feedRequest.categories[].enum(knowledgeGap)` **Added** * `response.results[]` **Changed** --- .speakeasy/gen.lock | 77 +++++----- .speakeasy/gen.yaml | 2 +- .speakeasy/glean-merged-spec.yaml | 143 ++++++++++-------- .speakeasy/workflow.lock | 12 +- README.md | 6 +- RELEASES.md | 12 +- docs/models/components/FeedRequestCategory.md | 3 +- docs/models/components/FeedResult.md | 14 +- docs/models/components/FeedResultCategory.md | 3 +- docs/models/components/JustificationType.md | 3 +- docs/models/components/PlacementReason.md | 5 +- docs/sdks/skills/README.md | 76 +++++----- gradle.properties | 2 +- .../glean_api_client/AsyncSkills.java | 58 +++---- .../glean_api_client/SDKConfiguration.java | 4 +- .../api_client/glean_api_client/Skills.java | 56 +++---- .../components/FeedRequestCategory.java | 3 +- .../models/components/FeedResult.java | 12 ++ .../models/components/FeedResultCategory.java | 6 +- .../models/components/JustificationType.java | 6 +- .../models/components/PlacementReason.java | 8 +- 21 files changed, 283 insertions(+), 228 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 3295786f..1a76a2c0 100644 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,19 +1,19 @@ lockVersion: 2.0.0 id: 0359d4fe-2923-46fc-aaca-cf70b48dcfa1 management: - docChecksum: 1d1c4c798b764226bfeeae4268f907c1 + docChecksum: 3521c150d450f7ab90bda9b4111f374f docVersion: 0.9.0 - speakeasyVersion: 1.792.0 - generationVersion: 2.927.0 - releaseVersion: 0.15.0 - configChecksum: 8c201fd9f8e4276abb00f7c8a2ccf4a9 + speakeasyVersion: 1.793.1 + generationVersion: 2.928.0 + releaseVersion: 0.15.1 + configChecksum: b692dc895168dc2f0154473de3e8fc04 repoURL: https://github.com/gleanwork/api-client-java.git installationURL: https://github.com/gleanwork/api-client-java published: true persistentEdits: - generation_id: 520fad76-c093-4ce8-9b77-ea5749a8b43a - pristine_commit_hash: 1aaded8d26c489ac9551e325d4949a7192725d05 - pristine_tree_hash: 790af6feeef01b6e2b7bf0003966e36df7b58cbe + generation_id: 52b57a17-883f-4056-a073-6d500c3d666d + pristine_commit_hash: 9225237571994a2e0df5b9afb9d02f5c22d90dce + pristine_tree_hash: a4def9f2de6bbb0194cee2f5f4d05d460bf0a0ec features: java: acceptHeaders: 2.81.2 @@ -1195,8 +1195,8 @@ trackedFiles: pristine_git_object: b9cce921992bf7d948b7a2e3e4360ca2e3b81654 docs/models/components/FeedRequestCategory.md: id: afe4d7d42b83 - last_write_checksum: sha1:947f3da34a2eb9e7d15a7b11ad25cb93c42b0dde - pristine_git_object: 30147843c444e0078414580114de0db1e9c5ecdd + last_write_checksum: sha1:c83315636988008319fd564eed29a537610913e0 + pristine_git_object: 11dd5cb117246784071635711b09016009e6dd44 docs/models/components/FeedRequestOptions.md: id: 75fd500a75b1 last_write_checksum: sha1:448af6f7a5d161d4e2f856a6bfdb5da3bd7a9c68 @@ -1207,12 +1207,12 @@ trackedFiles: pristine_git_object: 4d3874ac1b8a16080c2cb2520e50570a1c46f28d docs/models/components/FeedResult.md: id: 7a86a9fbf989 - last_write_checksum: sha1:0920606fcdb484fed0c7363da763e2c0f973a019 - pristine_git_object: fe54d018bd3d86cdb240ee2f85219c5fc07040c4 + last_write_checksum: sha1:f8e9dbe96a0861da6f161b4f406c7dc48a7fae7e + pristine_git_object: e2be0f14f31929e0ec4ac503cb4846e8ca95aa0a docs/models/components/FeedResultCategory.md: id: de8a61d55051 - last_write_checksum: sha1:f26cd83fc02e7421e1fb3af2a9e862f4fb593044 - pristine_git_object: 2926a64637cd0a98d4db254427c6e9d9b604acdf + last_write_checksum: sha1:fe7c58d5155917204d35a4ffc161a481d86559b3 + pristine_git_object: 55372b29c4d53add4edada1f57f223cc068348e3 docs/models/components/Feedback.md: id: 73b99e5606f2 last_write_checksum: sha1:20ae2315c831db0791ccd9a9d396dbb2811dbd15 @@ -1567,8 +1567,8 @@ trackedFiles: pristine_git_object: 6b510a78c77f21964ba458f12c424b73c955021f docs/models/components/JustificationType.md: id: 4f9697992386 - last_write_checksum: sha1:a4b83964b88541e80bf0eb3d14622509ff0c4adb - pristine_git_object: f827e35fb5669b9b45fdf1d5340aa6cd37768aa6 + last_write_checksum: sha1:40cf2814f54daccca9a3b14964e8ee9ecd57cf12 + pristine_git_object: efd4fdc4bc021bbcbc2635c349a4808f0558c264 docs/models/components/KnowledgeType.md: id: 652b79486bf3 last_write_checksum: sha1:350f41b8184a84215ebbab80a83079e093a54b40 @@ -1851,8 +1851,8 @@ trackedFiles: pristine_git_object: 44217a9bdde4d0fa11b4e1d97ba5d3909dbd0a0f docs/models/components/PlacementReason.md: id: 815a98152861 - last_write_checksum: sha1:3f84f59fe69a40543a34cdc7e20f654de02b0fc7 - pristine_git_object: 73d960cf6462bdd5cf1a77e6bd58c0b2a7a7cc79 + last_write_checksum: sha1:95f36a5b470299c8043744071eeaf9140ff1eaba + pristine_git_object: 526563d5e56c60b4a1f9539853a47cccbd04fc7c docs/models/components/PlatformActionSummary.md: id: 3813f89fa9f4 last_write_checksum: sha1:4b0e25fbe5ec26fb3c42b83c4114a486983c9ef1 @@ -4111,8 +4111,8 @@ trackedFiles: pristine_git_object: bbc29f620235b3508b12b22e9e1551f4ef8958ee docs/sdks/skills/README.md: id: 3a14a5c90791 - last_write_checksum: sha1:2397cf0fe063e33dd4cdb82901cd5d8e0546f328 - pristine_git_object: 8a0f36fab48989d27323e850131bdfe583558a6f + last_write_checksum: sha1:2cc2175160f0d48c3176bd58fd82e9c73e19baa2 + pristine_git_object: b6e66173eedbb1a5067244dd1fd727313e18dc23 docs/sdks/tools/README.md: id: 044286549bac last_write_checksum: sha1:4d9ecab55a1df81083cd9c352c5bc0dae40c14c0 @@ -4131,8 +4131,8 @@ trackedFiles: pristine_git_object: 3decbce5bd40edbe278c1c5d2dbf585808e51d9a gradle.properties: id: 2afbb999f001 - last_write_checksum: sha1:68e37a498e1aac7b1261d8bdfd522ebcaaf267b3 - pristine_git_object: 5cbf3cf65fdf41410f06d52e9855f66d8b49c484 + last_write_checksum: sha1:c6acb491dcecaf2c7d8281677f79cf0d91ce8cf1 + pristine_git_object: 90714cc60045f7525ca194279a14986e9a17945b gradle/wrapper/gradle-wrapper.jar: id: ec27dae6e852 last_write_checksum: sha1:f725fb1467084142d74fd7cd8eab691ab3442611 @@ -4315,8 +4315,8 @@ trackedFiles: pristine_git_object: 280b5f35efb9f69cfcb9c97437f3bf610a83d9c5 src/main/java/com/glean/api_client/glean_api_client/AsyncSkills.java: id: 809381bacfb1 - last_write_checksum: sha1:675ca01f7be29c9cd26a5eb0e6f672d3f52e850e - pristine_git_object: a4d177969a12c15d803ab50dc51e58d14dee52d7 + last_write_checksum: sha1:b68ca27af987bf5e1b8ddbc725ef1e2ded059175 + pristine_git_object: 0e7601679a198a0ad8322a73ba2541e3fdd9338f src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java: id: 02ad87504d7a last_write_checksum: sha1:f8f5da2b47725eaa7917f68faaef30736f033f38 @@ -4451,8 +4451,8 @@ trackedFiles: pristine_git_object: ffae914775eb41ff311371f62504344a59d090fd src/main/java/com/glean/api_client/glean_api_client/SDKConfiguration.java: id: d5fcc61f5992 - last_write_checksum: sha1:6f9201f93c676d9d7fba4767fef94950f08bdb9e - pristine_git_object: 172fed3324eb55a4eb23e1252d86ef8a1ead64bc + last_write_checksum: sha1:da797c5dad8d21b78daf2e9bf42fd793fdad5add + pristine_git_object: 03b9b920194c6f3a14c7d39914f012e57e1987a4 src/main/java/com/glean/api_client/glean_api_client/Search.java: id: f22d94b920b5 last_write_checksum: sha1:14e024607aebae4b1197445ad31984898c4735a3 @@ -4463,8 +4463,8 @@ trackedFiles: pristine_git_object: f1e58a1696e5159e96259e20e83ca6f5584f810a src/main/java/com/glean/api_client/glean_api_client/Skills.java: id: 6903ae835067 - last_write_checksum: sha1:d0193d6a68dc20d6fd846bfb32869631705f410c - pristine_git_object: 9822388074afeca63a5e1966a241e5319312bc9e + last_write_checksum: sha1:5293c4e52fc10079d2bd56334555e03ecf1a545a + pristine_git_object: 35116be3381d210b449724441c5524ac4e625e6a src/main/java/com/glean/api_client/glean_api_client/Tools.java: id: bb072637f39b last_write_checksum: sha1:b3dfd88f886583ad1db26213479cb09bd8a10293 @@ -5623,8 +5623,8 @@ trackedFiles: pristine_git_object: da07bc2b22a0c18ddaaeb554bf70ddf655b607cc src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestCategory.java: id: 57e4db8e0360 - last_write_checksum: sha1:e6266e9b1d30055dbeed4bb0a0c18e6bbd1fdee7 - pristine_git_object: 0550772c3df1b15fcf53f403548dc02eb4be7dde + last_write_checksum: sha1:e397f18c8b86af926ce81b08fc06a3509bbfc324 + pristine_git_object: 891ae531917d867de85d042d2dac6bbc6190ca05 src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestOptions.java: id: 0961449ce7b9 last_write_checksum: sha1:1becd935e511806b12ea1aedebd9da174d807ad6 @@ -5635,12 +5635,12 @@ trackedFiles: pristine_git_object: a509886e11adc151eb132f7882555d0051802721 src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResult.java: id: 302612d2ce4f - last_write_checksum: sha1:f8b7c8f08012b1290cafe5daf47e5d63ad78c0c8 - pristine_git_object: 32750e39b3f10683acfb3f3e57422288364d7126 + last_write_checksum: sha1:312aecd7d4ef4c138d2e09fa3349f37f39ca58d3 + pristine_git_object: a98919d195d9f2194e768609de43d6aeb1039043 src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResultCategory.java: id: d5f852e61d61 - last_write_checksum: sha1:c61d1ed34fc48c1e3c40d1ee83ed00906fa70ad7 - pristine_git_object: 9aefe804bda00e98e73d333e25dc91a03ef210fd + last_write_checksum: sha1:df8e87def649c432e84e9ff1ab2f2c9139e7c337 + pristine_git_object: 96693aa3e288958eacf85abc91d16131a5baa214 src/main/java/com/glean/api_client/glean_api_client/models/components/Feedback.java: id: f7178cc3b4f0 last_write_checksum: sha1:266cacdd3f7c698ffdbd56a505d8fda10170c444 @@ -5995,8 +5995,8 @@ trackedFiles: pristine_git_object: c899f9ae9db4ad2809eefacd5404be80f606c822 src/main/java/com/glean/api_client/glean_api_client/models/components/JustificationType.java: id: 4e704d02ecd5 - last_write_checksum: sha1:a8bf40bbdc277310e737cf003f5c7df4d37f1d0f - pristine_git_object: e9be36e8ce9079c3f70110a52035de8c3b4eb2d5 + last_write_checksum: sha1:fdaeadff63a3115c1a88e2f7b5b3695202b5d32b + pristine_git_object: 5644a936f565d7e5e29277a048862ed16d17bf7d src/main/java/com/glean/api_client/glean_api_client/models/components/KnowledgeType.java: id: 86321f7dd6fe last_write_checksum: sha1:85872bd4390e4a048c4995b1427bec8b2fe88664 @@ -6279,8 +6279,8 @@ trackedFiles: pristine_git_object: 7051ba7a4930cf15eb9532c69ff8b92194174747 src/main/java/com/glean/api_client/glean_api_client/models/components/PlacementReason.java: id: 37484b3af112 - last_write_checksum: sha1:b6d015065bb61834823b0fd773977c26503a51fd - pristine_git_object: e50763a3229c69c02d6a69620f409de3d39ad942 + last_write_checksum: sha1:91ca96b95fe95be4924909615bfe6189082cd69f + pristine_git_object: 5288fbbd95eb38b1d13fcedbed1a1181214913e8 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformActionSummary.java: id: 334f53c10c78 last_write_checksum: sha1:2a20c907662dd47fff0cd2c3870e6a85df12f0c7 @@ -12592,6 +12592,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.retrieveFeed()`: \n * `request.feedRequest.categories[].enum(knowledgeGap)` **Added**\n * `response.results[]` **Changed**\n" generatedFiles: - .gitattributes - USAGE.md diff --git a/.speakeasy/gen.yaml b/.speakeasy/gen.yaml index 5c26f930..97de7505 100644 --- a/.speakeasy/gen.yaml +++ b/.speakeasy/gen.yaml @@ -30,7 +30,7 @@ generation: generateNewTests: false skipResponseBodyAssertions: false java: - version: 0.15.0 + version: 0.15.1 additionalDependencies: [] additionalPlugins: [] artifactID: glean-api-client diff --git a/.speakeasy/glean-merged-spec.yaml b/.speakeasy/glean-merged-spec.yaml index 1906bd1f..dd1c149f 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: 26582d482fd365bb6e08720a096edc8336b2322e + x-open-api-commit-sha: ba805dad43d06e3a084ffb35806144d0ad946bcc 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": @@ -417,42 +426,42 @@ paths: x-speakeasy-name-override: list security: - APIToken: [] - /api/skills/validation: + /api/skills/import: post: tags: - Skills - summary: Validate skill bundle + summary: Import skills from GitHub description: | - Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and returns parsed metadata plus the normalized file layout. - operationId: platform-skills-validate + Import one or more skills selected from a GitHub source preview. Each source URL is fetched and persisted as an independent skill with source provenance. This operation does not create a durable source resource. The import is atomic: if any source cannot be fetched, validated, or persisted, no skills are created. + operationId: platform-skills-import x-visibility: Public x-glean-experimental: - id: 0b086fa6-30f8-4279-8d11-10ab0059c14a - introduced: "2026-06-24" + id: 9162d790-e101-437d-a9a0-25e4687d150b + introduced: "2026-07-28" + x-codegen-request-body-name: request requestBody: required: true content: - multipart/form-data: + application/json: schema: - $ref: "#/components/schemas/PlatformSkillValidationRequest" - x-codegen-request-body-name: request + $ref: "#/components/schemas/PlatformSkillImportRequest" responses: "200": - description: Successful response. + description: Skills imported successfully. content: application/json: schema: - $ref: "#/components/schemas/PlatformSkillValidationResponse" + $ref: "#/components/schemas/PlatformSkillImportResponse" "400": $ref: "#/components/responses/PlatformBadRequest" "401": $ref: "#/components/responses/PlatformUnauthorized" "403": $ref: "#/components/responses/PlatformForbidden" - "404": - $ref: "#/components/responses/PlatformNotFound" "408": $ref: "#/components/responses/PlatformRequestTimeout" + "409": + $ref: "#/components/responses/PlatformConflict" "413": $ref: "#/components/responses/PlatformRequestTooLarge" "429": @@ -462,45 +471,45 @@ paths: "503": $ref: "#/components/responses/PlatformServiceUnavailable" x-speakeasy-group: skills - x-speakeasy-name-override: validate + x-speakeasy-name-override: import security: - APIToken: [] - /api/skills/import: + /api/skills/validation: post: tags: - Skills - summary: Import skills from GitHub + summary: Validate skill bundle description: | - Import one or more skills selected from a GitHub source preview. Each source URL is fetched and persisted as an independent skill with source provenance. This operation does not create a durable source resource. The import is atomic: if any source cannot be fetched, validated, or persisted, no skills are created. - operationId: platform-skills-import + Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and returns parsed metadata plus the normalized file layout. + operationId: platform-skills-validate x-visibility: Public x-glean-experimental: - id: 9162d790-e101-437d-a9a0-25e4687d150b - introduced: "2026-07-28" - x-codegen-request-body-name: request + id: 0b086fa6-30f8-4279-8d11-10ab0059c14a + introduced: "2026-06-24" requestBody: required: true content: - application/json: + multipart/form-data: schema: - $ref: "#/components/schemas/PlatformSkillImportRequest" + $ref: "#/components/schemas/PlatformSkillValidationRequest" + x-codegen-request-body-name: request responses: "200": - description: Skills imported successfully. + description: Successful response. content: application/json: schema: - $ref: "#/components/schemas/PlatformSkillImportResponse" + $ref: "#/components/schemas/PlatformSkillValidationResponse" "400": $ref: "#/components/responses/PlatformBadRequest" "401": $ref: "#/components/responses/PlatformUnauthorized" "403": $ref: "#/components/responses/PlatformForbidden" + "404": + $ref: "#/components/responses/PlatformNotFound" "408": $ref: "#/components/responses/PlatformRequestTimeout" - "409": - $ref: "#/components/responses/PlatformConflict" "413": $ref: "#/components/responses/PlatformRequestTooLarge" "429": @@ -510,7 +519,7 @@ paths: "503": $ref: "#/components/responses/PlatformServiceUnavailable" x-speakeasy-group: skills - x-speakeasy-name-override: import + x-speakeasy-name-override: validate security: - APIToken: [] /api/skills/sources/preview: @@ -7008,6 +7017,37 @@ components: request_id: type: string description: Platform-generated request ID for support correlation. + PlatformSkillImportRequest: + type: object + additionalProperties: false + required: + - source_urls + properties: + source_urls: + type: array + minItems: 1 + maxItems: 100 + uniqueItems: true + description: Resolved GitHub skill URLs selected from a source preview. + items: + type: string + minLength: 1 + maxLength: 2048 + PlatformSkillImportResponse: + type: object + required: + - skills + - request_id + properties: + skills: + type: array + minItems: 1 + description: Independently persisted skills in request order. + items: + $ref: "#/components/schemas/PlatformSkill" + request_id: + type: string + description: Platform-generated request ID for support correlation. PlatformSkillValidationRequest: type: object additionalProperties: false @@ -7069,37 +7109,6 @@ components: request_id: type: string description: Platform-generated request ID for support correlation. - PlatformSkillImportRequest: - type: object - additionalProperties: false - required: - - source_urls - properties: - source_urls: - type: array - minItems: 1 - maxItems: 100 - uniqueItems: true - description: Resolved GitHub skill URLs selected from a source preview. - items: - type: string - minLength: 1 - maxLength: 2048 - PlatformSkillImportResponse: - type: object - required: - - skills - - request_id - properties: - skills: - type: array - minItems: 1 - description: Independently persisted skills in request order. - items: - $ref: "#/components/schemas/PlatformSkill" - request_id: - type: string - description: Platform-generated request ID for support correlation. PlatformSkillSourcePreviewRequest: type: object additionalProperties: false @@ -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 33afc1fd..b1507785 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:40892a32681b40c6c8fd06d21c7ed467727c928ef7f2d96a6470da904960f1dc + sourceBlobDigest: sha256:86f03a5610ece884b13f9bfd70fa9299b35eee4b5002865014c13de6176e6d76 tags: - latest Glean-OAS: @@ -17,10 +17,10 @@ targets: glean: source: Glean API sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:ca77ef4550d695da210e8f0d32f3422d29e9d09f7aa66f7b13d248c6ec8c7941 - sourceBlobDigest: sha256:469de4cd2c8ab4928c3989656bf63cc265a8ceea5a8b3e3498734137b19723f8 + sourceRevisionDigest: sha256:40892a32681b40c6c8fd06d21c7ed467727c928ef7f2d96a6470da904960f1dc + sourceBlobDigest: sha256:86f03a5610ece884b13f9bfd70fa9299b35eee4b5002865014c13de6176e6d76 codeSamplesNamespace: glean-api-specs-java-code-samples - codeSamplesRevisionDigest: sha256:5fbed682e9333e60d93f5f07c63f0d7fdc8acd1952e1de357f11df78fb76a399 + codeSamplesRevisionDigest: sha256:3fb9e25c6a4584331beac3d026c3a1897e1e9a78b3cfe90a02411d2662dad77f workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index 560fcef6..57afec8a 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ The samples below show how a published SDK artifact is used: Gradle: ```groovy -implementation 'com.glean.api-client:glean-api-client:0.15.0' +implementation 'com.glean.api-client:glean-api-client:0.15.1' ``` Maven: @@ -75,7 +75,7 @@ Maven: com.glean.api-client glean-api-client - 0.15.0 + 0.15.1 ``` @@ -614,8 +614,8 @@ For more information on obtaining the appropriate token type, please contact you * [create](docs/sdks/skills/README.md#create) - Create skill * [list](docs/sdks/skills/README.md#list) - List skills -* [validate](docs/sdks/skills/README.md#validate) - Validate skill bundle * [import_](docs/sdks/skills/README.md#import_) - Import skills from GitHub +* [validate](docs/sdks/skills/README.md#validate) - Validate skill bundle * [previewSource](docs/sdks/skills/README.md#previewsource) - Preview a GitHub skill source * [update](docs/sdks/skills/README.md#update) - Update skill * [delete](docs/sdks/skills/README.md#delete) - Delete skill diff --git a/RELEASES.md b/RELEASES.md index fee96d33..a8669dc7 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -818,4 +818,14 @@ Based on: ### Generated - [java v0.15.0] . ### Releases -- [Maven Central v0.15.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.15.0 - . \ No newline at end of file +- [Maven Central v0.15.0] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.15.0 - . + +## 2026-08-12 09:19:21 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.793.1 (2.928.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [java v0.15.1] . +### Releases +- [Maven Central v0.15.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.15.1 - . \ No newline at end of file diff --git a/docs/models/components/FeedRequestCategory.md b/docs/models/components/FeedRequestCategory.md index 30147843..11dd5cb1 100644 --- a/docs/models/components/FeedRequestCategory.md +++ b/docs/models/components/FeedRequestCategory.md @@ -57,4 +57,5 @@ FeedRequestCategory value = FeedRequestCategory.DOCUMENT_SUGGESTION; | `DEMO_CARD` | DEMO_CARD | | `OOO_PLANNER` | OOO_PLANNER | | `OOO_CATCH_UP` | OOO_CATCH_UP | -| `ADMIN_HEALTH_CENTER` | ADMIN_HEALTH_CENTER | \ No newline at end of file +| `ADMIN_HEALTH_CENTER` | ADMIN_HEALTH_CENTER | +| `KNOWLEDGE_GAP` | KNOWLEDGE_GAP | \ No newline at end of file diff --git a/docs/models/components/FeedResult.md b/docs/models/components/FeedResult.md index fe54d018..e2be0f14 100644 --- a/docs/models/components/FeedResult.md +++ b/docs/models/components/FeedResult.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `category` | [FeedResultCategory](../../models/components/FeedResultCategory.md) | :heavy_check_mark: | Category of the result, one of the requested categories in incoming request. | -| `primaryEntry` | [FeedEntry](../../models/components/FeedEntry.md) | :heavy_check_mark: | N/A | -| `secondaryEntries` | List\<[FeedEntry](../../models/components/FeedEntry.md)> | :heavy_minus_sign: | Secondary entries for the result e.g. suggested docs for the calendar, carousel. | -| `rank` | *Optional\* | :heavy_minus_sign: | Rank of the result. Rank is suggested by server. Client side rank may differ. | -| `placementReason` | [Optional\](../../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` | [FeedResultCategory](../../models/components/FeedResultCategory.md) | :heavy_check_mark: | Category of the result, one of the requested categories in incoming request. | +| `primaryEntry` | [FeedEntry](../../models/components/FeedEntry.md) | :heavy_check_mark: | N/A | +| `secondaryEntries` | List\<[FeedEntry](../../models/components/FeedEntry.md)> | :heavy_minus_sign: | Secondary entries for the result e.g. suggested docs for the calendar, carousel. | +| `rank` | *Optional\* | :heavy_minus_sign: | Rank of the result. Rank is suggested by server. Client side rank may differ. | +| `placementReason` | [Optional\](../../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 2926a646..55372b29 100644 --- a/docs/models/components/FeedResultCategory.md +++ b/docs/models/components/FeedResultCategory.md @@ -62,4 +62,5 @@ FeedResultCategory custom = FeedResultCategory.of("custom_value"); | `DEMO_CARD` | DEMO_CARD | | `OOO_PLANNER` | OOO_PLANNER | | `OOO_CATCH_UP` | OOO_CATCH_UP | -| `ADMIN_HEALTH_CENTER` | ADMIN_HEALTH_CENTER | \ No newline at end of file +| `ADMIN_HEALTH_CENTER` | ADMIN_HEALTH_CENTER | +| `KNOWLEDGE_GAP` | KNOWLEDGE_GAP | \ No newline at end of file diff --git a/docs/models/components/JustificationType.md b/docs/models/components/JustificationType.md index f827e35f..efd4fdc4 100644 --- a/docs/models/components/JustificationType.md +++ b/docs/models/components/JustificationType.md @@ -75,4 +75,5 @@ JustificationType custom = JustificationType.of("custom_value"); | `DEMO_CARD` | DEMO_CARD | | `OOO_PLANNER` | OOO_PLANNER | | `OOO_CATCH_UP` | OOO_CATCH_UP | -| `ADMIN_HEALTH_CENTER` | ADMIN_HEALTH_CENTER | \ No newline at end of file +| `ADMIN_HEALTH_CENTER` | ADMIN_HEALTH_CENTER | +| `KNOWLEDGE_GAP` | KNOWLEDGE_GAP | \ No newline at end of file diff --git a/docs/models/components/PlacementReason.md b/docs/models/components/PlacementReason.md index 73d960cf..526563d5 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 @@ -19,4 +19,5 @@ PlacementReason custom = PlacementReason.of("custom_value"); | Name | Value | | --------- | --------- | | `ORGANIC` | ORGANIC | -| `PROMO` | PROMO | \ No newline at end of file +| `PROMO` | PROMO | +| `PINNED` | PINNED | \ No newline at end of file diff --git a/docs/sdks/skills/README.md b/docs/sdks/skills/README.md index 8a0f36fa..b6e66173 100644 --- a/docs/sdks/skills/README.md +++ b/docs/sdks/skills/README.md @@ -6,8 +6,8 @@ * [create](#create) - Create skill * [list](#list) - List skills -* [validate](#validate) - Validate skill bundle * [import_](#import_) - Import skills from GitHub +* [validate](#validate) - Validate skill bundle * [previewSource](#previewsource) - Preview a GitHub skill source * [update](#update) - Update skill * [delete](#delete) - Delete skill @@ -133,25 +133,23 @@ public class Application { | models/errors/PlatformProblemDetailException | 500, 503 | application/problem+json | | models/errors/APIException | 4XX, 5XX | \*/\* | -## validate +## import_ -Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and returns parsed metadata plus the normalized file layout. +Import one or more skills selected from a GitHub source preview. Each source URL is fetched and persisted as an independent skill with source provenance. This operation does not create a durable source resource. The import is atomic: if any source cannot be fetched, validated, or persisted, no skills are created. ### 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.PlatformSkillValidationRequest; -import com.glean.api_client.glean_api_client.models.components.PlatformSkillValidationRequestFile; +import com.glean.api_client.glean_api_client.models.components.PlatformSkillImportRequest; import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; -import com.glean.api_client.glean_api_client.models.operations.PlatformSkillsValidateResponse; -import com.glean.api_client.glean_api_client.utils.Utils; -import java.io.FileInputStream; +import com.glean.api_client.glean_api_client.models.operations.PlatformSkillsImportResponse; import java.lang.Exception; +import java.util.List; public class Application { @@ -161,56 +159,59 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - PlatformSkillValidationRequest req = PlatformSkillValidationRequest.builder() - .file(PlatformSkillValidationRequestFile.builder() - .fileName("example.file") - .content(Utils.readBytesAndClose(new FileInputStream("example.file"))) - .build()) + PlatformSkillImportRequest req = PlatformSkillImportRequest.builder() + .sourceUrls(List.of( + "")) .build(); - PlatformSkillsValidateResponse res = sdk.skills().validate() + PlatformSkillsImportResponse res = sdk.skills().import_() .request(req) .call(); + if (res.platformSkillImportResponse().isPresent()) { + System.out.println(res.platformSkillImportResponse().get()); + } } } ``` ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -| `request` | [PlatformSkillValidationRequest](../../models/shared/PlatformSkillValidationRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `request` | [PlatformSkillImportRequest](../../models/shared/PlatformSkillImportRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[PlatformSkillsValidateResponse](../../models/operations/PlatformSkillsValidateResponse.md)** +**[PlatformSkillsImportResponse](../../models/operations/PlatformSkillsImportResponse.md)** ### Errors | Error Type | Status Code | Content Type | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| models/errors/PlatformProblemDetailException | 400, 401, 403, 404, 408, 413, 429 | application/problem+json | +| models/errors/PlatformProblemDetailException | 400, 401, 403, 408, 409, 413, 429 | application/problem+json | | models/errors/PlatformProblemDetailException | 500, 503 | application/problem+json | | models/errors/APIException | 4XX, 5XX | \*/\* | -## import_ +## validate -Import one or more skills selected from a GitHub source preview. Each source URL is fetched and persisted as an independent skill with source provenance. This operation does not create a durable source resource. The import is atomic: if any source cannot be fetched, validated, or persisted, no skills are created. +Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and returns parsed metadata plus the normalized file layout. ### 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.PlatformSkillImportRequest; +import com.glean.api_client.glean_api_client.models.components.PlatformSkillValidationRequest; +import com.glean.api_client.glean_api_client.models.components.PlatformSkillValidationRequestFile; import com.glean.api_client.glean_api_client.models.errors.PlatformProblemDetailException; -import com.glean.api_client.glean_api_client.models.operations.PlatformSkillsImportResponse; +import com.glean.api_client.glean_api_client.models.operations.PlatformSkillsValidateResponse; +import com.glean.api_client.glean_api_client.utils.Utils; +import java.io.FileInputStream; import java.lang.Exception; -import java.util.List; public class Application { @@ -220,37 +221,36 @@ public class Application { .apiToken(System.getenv().getOrDefault("GLEAN_API_TOKEN", "")) .build(); - PlatformSkillImportRequest req = PlatformSkillImportRequest.builder() - .sourceUrls(List.of( - "")) + PlatformSkillValidationRequest req = PlatformSkillValidationRequest.builder() + .file(PlatformSkillValidationRequestFile.builder() + .fileName("example.file") + .content(Utils.readBytesAndClose(new FileInputStream("example.file"))) + .build()) .build(); - PlatformSkillsImportResponse res = sdk.skills().import_() + PlatformSkillsValidateResponse res = sdk.skills().validate() .request(req) .call(); - if (res.platformSkillImportResponse().isPresent()) { - System.out.println(res.platformSkillImportResponse().get()); - } } } ``` ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `request` | [PlatformSkillImportRequest](../../models/shared/PlatformSkillImportRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `request` | [PlatformSkillValidationRequest](../../models/shared/PlatformSkillValidationRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[PlatformSkillsImportResponse](../../models/operations/PlatformSkillsImportResponse.md)** +**[PlatformSkillsValidateResponse](../../models/operations/PlatformSkillsValidateResponse.md)** ### Errors | Error Type | Status Code | Content Type | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -| models/errors/PlatformProblemDetailException | 400, 401, 403, 408, 409, 413, 429 | application/problem+json | +| models/errors/PlatformProblemDetailException | 400, 401, 403, 404, 408, 413, 429 | application/problem+json | | models/errors/PlatformProblemDetailException | 500, 503 | application/problem+json | | models/errors/APIException | 4XX, 5XX | \*/\* | diff --git a/gradle.properties b/gradle.properties index 5cbf3cf6..90714cc6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ groupId=com.glean.api-client artifactId=glean-api-client -version=0.15.0 +version=0.15.1 org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=1g diff --git a/src/main/java/com/glean/api_client/glean_api_client/AsyncSkills.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncSkills.java index a4d17796..0e760167 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncSkills.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncSkills.java @@ -165,35 +165,6 @@ public CompletableFuture list(Optional pageSiz } - /** - * Validate skill bundle - * - *

Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and - * returns parsed metadata plus the normalized file layout. - * - * @return The async call builder - */ - public PlatformSkillsValidateRequestBuilder validate() { - return new PlatformSkillsValidateRequestBuilder(sdkConfiguration); - } - - /** - * Validate skill bundle - * - *

Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and - * returns parsed metadata plus the normalized file layout. - * - * @param request The request object containing all the parameters for the API call. - * @return {@code CompletableFuture} - The async response - */ - public CompletableFuture validate(PlatformSkillValidationRequest request) { - AsyncRequestOperation operation - = new PlatformSkillsValidate.Async(sdkConfiguration, _headers); - return operation.doRequest(request) - .thenCompose(operation::handleResponse); - } - - /** * Import skills from GitHub * @@ -231,6 +202,35 @@ public CompletableFuture import_(PlatformSkillImpo } + /** + * Validate skill bundle + * + *

Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and + * returns parsed metadata plus the normalized file layout. + * + * @return The async call builder + */ + public PlatformSkillsValidateRequestBuilder validate() { + return new PlatformSkillsValidateRequestBuilder(sdkConfiguration); + } + + /** + * Validate skill bundle + * + *

Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and + * returns parsed metadata plus the normalized file layout. + * + * @param request The request object containing all the parameters for the API call. + * @return {@code CompletableFuture} - The async response + */ + public CompletableFuture validate(PlatformSkillValidationRequest request) { + AsyncRequestOperation operation + = new PlatformSkillsValidate.Async(sdkConfiguration, _headers); + return operation.doRequest(request) + .thenCompose(operation::handleResponse); + } + + /** * Preview a GitHub skill source * 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 172fed33..03b9b920 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 @@ -25,8 +25,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.15.0"; - public static final String GEN_VERSION = "2.927.0"; + public static final String SDK_VERSION = "0.15.1"; + public static final String GEN_VERSION = "2.928.0"; private static final String BASE_PACKAGE = "com.glean.api_client.glean_api_client"; public static final String USER_AGENT = String.format("speakeasy-sdk/%s %s %s %s %s", diff --git a/src/main/java/com/glean/api_client/glean_api_client/Skills.java b/src/main/java/com/glean/api_client/glean_api_client/Skills.java index 98223880..35116be3 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Skills.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Skills.java @@ -162,34 +162,6 @@ public PlatformSkillsListResponse list(Optional pageSize, Optional return operation.handleResponse(operation.doRequest(request)); } - /** - * Validate skill bundle - * - *

Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and - * returns parsed metadata plus the normalized file layout. - * - * @return The call builder - */ - public PlatformSkillsValidateRequestBuilder validate() { - return new PlatformSkillsValidateRequestBuilder(sdkConfiguration); - } - - /** - * Validate skill bundle - * - *

Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and - * returns parsed metadata plus the normalized file layout. - * - * @param request The request object containing all the parameters for the API call. - * @return The response from the API call - * @throws RuntimeException subclass if the API call fails - */ - public PlatformSkillsValidateResponse validate(PlatformSkillValidationRequest request) { - RequestOperation operation - = new PlatformSkillsValidate.Sync(sdkConfiguration, _headers); - return operation.handleResponse(operation.doRequest(request)); - } - /** * Import skills from GitHub * @@ -226,6 +198,34 @@ public PlatformSkillsImportResponse import_(PlatformSkillImportRequest request) return operation.handleResponse(operation.doRequest(request)); } + /** + * Validate skill bundle + * + *

Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and + * returns parsed metadata plus the normalized file layout. + * + * @return The call builder + */ + public PlatformSkillsValidateRequestBuilder validate() { + return new PlatformSkillsValidateRequestBuilder(sdkConfiguration); + } + + /** + * Validate skill bundle + * + *

Validate a skill bundle without persisting it. Accepts a SKILL.md, .zip, or .skill upload and + * returns parsed metadata plus the normalized file layout. + * + * @param request The request object containing all the parameters for the API call. + * @return The response from the API call + * @throws RuntimeException subclass if the API call fails + */ + public PlatformSkillsValidateResponse validate(PlatformSkillValidationRequest request) { + RequestOperation operation + = new PlatformSkillsValidate.Sync(sdkConfiguration, _headers); + return operation.handleResponse(operation.doRequest(request)); + } + /** * Preview a GitHub skill source * diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestCategory.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestCategory.java index 0550772c..891ae531 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestCategory.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedRequestCategory.java @@ -54,7 +54,8 @@ public enum FeedRequestCategory { DEMO_CARD("DEMO_CARD"), OOO_PLANNER("OOO_PLANNER"), OOO_CATCH_UP("OOO_CATCH_UP"), - ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"); + ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"), + KNOWLEDGE_GAP("KNOWLEDGE_GAP"); @JsonValue private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResult.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResult.java index 32750e39..a98919d1 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResult.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResult.java @@ -46,6 +46,8 @@ public class FeedResult { /** * 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). */ @JsonInclude(Include.NON_ABSENT) @JsonProperty("placementReason") @@ -110,6 +112,8 @@ public Optional rank() { /** * 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). */ @SuppressWarnings("unchecked") @JsonIgnore @@ -178,6 +182,8 @@ public FeedResult withRank(Optional rank) { /** * 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). */ public FeedResult withPlacementReason(PlacementReason placementReason) { Utils.checkNotNull(placementReason, "placementReason"); @@ -189,6 +195,8 @@ public FeedResult withPlacementReason(PlacementReason 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). */ public FeedResult withPlacementReason(Optional placementReason) { Utils.checkNotNull(placementReason, "placementReason"); @@ -306,6 +314,8 @@ public Builder rank(Optional rank) { /** * 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). */ public Builder placementReason(PlacementReason placementReason) { Utils.checkNotNull(placementReason, "placementReason"); @@ -316,6 +326,8 @@ public Builder placementReason(PlacementReason 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). */ public Builder placementReason(Optional placementReason) { Utils.checkNotNull(placementReason, "placementReason"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResultCategory.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResultCategory.java index 9aefe804..96693aa3 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResultCategory.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/FeedResultCategory.java @@ -71,6 +71,7 @@ public class FeedResultCategory { public static final FeedResultCategory OOO_PLANNER = new FeedResultCategory("OOO_PLANNER"); public static final FeedResultCategory OOO_CATCH_UP = new FeedResultCategory("OOO_CATCH_UP"); public static final FeedResultCategory ADMIN_HEALTH_CENTER = new FeedResultCategory("ADMIN_HEALTH_CENTER"); + public static final FeedResultCategory KNOWLEDGE_GAP = new FeedResultCategory("KNOWLEDGE_GAP"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -189,6 +190,7 @@ private static final Map createValuesMap() { map.put("OOO_PLANNER", OOO_PLANNER); map.put("OOO_CATCH_UP", OOO_CATCH_UP); map.put("ADMIN_HEALTH_CENTER", ADMIN_HEALTH_CENTER); + map.put("KNOWLEDGE_GAP", KNOWLEDGE_GAP); return map; } @@ -239,6 +241,7 @@ private static final Map createEnumsMap() { map.put("OOO_PLANNER", FeedResultCategoryEnum.OOO_PLANNER); map.put("OOO_CATCH_UP", FeedResultCategoryEnum.OOO_CATCH_UP); map.put("ADMIN_HEALTH_CENTER", FeedResultCategoryEnum.ADMIN_HEALTH_CENTER); + map.put("KNOWLEDGE_GAP", FeedResultCategoryEnum.KNOWLEDGE_GAP); return map; } @@ -289,7 +292,8 @@ public enum FeedResultCategoryEnum { DEMO_CARD("DEMO_CARD"), OOO_PLANNER("OOO_PLANNER"), OOO_CATCH_UP("OOO_CATCH_UP"), - ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"),; + ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"), + KNOWLEDGE_GAP("KNOWLEDGE_GAP"),; private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/JustificationType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/JustificationType.java index e9be36e8..5644a936 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/JustificationType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/JustificationType.java @@ -84,6 +84,7 @@ public class JustificationType { public static final JustificationType OOO_PLANNER = new JustificationType("OOO_PLANNER"); public static final JustificationType OOO_CATCH_UP = new JustificationType("OOO_CATCH_UP"); public static final JustificationType ADMIN_HEALTH_CENTER = new JustificationType("ADMIN_HEALTH_CENTER"); + public static final JustificationType KNOWLEDGE_GAP = new JustificationType("KNOWLEDGE_GAP"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -215,6 +216,7 @@ private static final Map createValuesMap() { map.put("OOO_PLANNER", OOO_PLANNER); map.put("OOO_CATCH_UP", OOO_CATCH_UP); map.put("ADMIN_HEALTH_CENTER", ADMIN_HEALTH_CENTER); + map.put("KNOWLEDGE_GAP", KNOWLEDGE_GAP); return map; } @@ -278,6 +280,7 @@ private static final Map createEnumsMap() { map.put("OOO_PLANNER", JustificationTypeEnum.OOO_PLANNER); map.put("OOO_CATCH_UP", JustificationTypeEnum.OOO_CATCH_UP); map.put("ADMIN_HEALTH_CENTER", JustificationTypeEnum.ADMIN_HEALTH_CENTER); + map.put("KNOWLEDGE_GAP", JustificationTypeEnum.KNOWLEDGE_GAP); return map; } @@ -341,7 +344,8 @@ public enum JustificationTypeEnum { DEMO_CARD("DEMO_CARD"), OOO_PLANNER("OOO_PLANNER"), OOO_CATCH_UP("OOO_CATCH_UP"), - ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"),; + ADMIN_HEALTH_CENTER("ADMIN_HEALTH_CENTER"), + KNOWLEDGE_GAP("KNOWLEDGE_GAP"),; private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlacementReason.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlacementReason.java index e50763a3..5288fbbd 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlacementReason.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlacementReason.java @@ -24,11 +24,14 @@ * *

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). */ public class PlacementReason { public static final PlacementReason ORGANIC = new PlacementReason("ORGANIC"); public static final PlacementReason PROMO = new PlacementReason("PROMO"); + public static final PlacementReason PINNED = new PlacementReason("PINNED"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -104,6 +107,7 @@ private static final Map createValuesMap() { Map map = new LinkedHashMap<>(); map.put("ORGANIC", ORGANIC); map.put("PROMO", PROMO); + map.put("PINNED", PINNED); return map; } @@ -111,6 +115,7 @@ private static final Map createEnumsMap() { Map map = new HashMap<>(); map.put("ORGANIC", PlacementReasonEnum.ORGANIC); map.put("PROMO", PlacementReasonEnum.PROMO); + map.put("PINNED", PlacementReasonEnum.PINNED); return map; } @@ -118,7 +123,8 @@ private static final Map createEnumsMap() { public enum PlacementReasonEnum { ORGANIC("ORGANIC"), - PROMO("PROMO"),; + PROMO("PROMO"), + PINNED("PINNED"),; private final String value; From 61b7a64246ab0a71348145a3354615c54e2bdea9 Mon Sep 17 00:00:00 2001 From: "speakeasy-github[bot]" <128539517+speakeasy-github[bot]@users.noreply.github.com> Date: Wed, 12 Aug 2026 09:24:57 +0000 Subject: [PATCH 2/2] empty commit to trigger [run-tests] workflow