diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 3295786f..d81640bc 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: 42a4f4f5cf82b2e88a03e1a2142f838d docVersion: 0.9.0 - speakeasyVersion: 1.792.0 - generationVersion: 2.927.0 - releaseVersion: 0.15.0 - configChecksum: 8c201fd9f8e4276abb00f7c8a2ccf4a9 + speakeasyVersion: 1.793.2 + 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: 91e8f49a-b75a-44c6-b5ea-18b4fbcd3fec + pristine_commit_hash: 5ffe1d5444f6ff5c06a3eb94414e497202c73b38 + pristine_tree_hash: 0d93cd5e7ed7b0ae787310c2dfec6d769c745bd2 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 @@ -1511,8 +1511,8 @@ trackedFiles: pristine_git_object: dc3592ff09434ded18e0862142511753b690f448 docs/models/components/Input.md: id: bf64e9517504 - last_write_checksum: sha1:6f1c3bbbfc18377623684303fc221f6fe732113f - pristine_git_object: c2cd7804efe09b27fc30cd5bb8a564e00d29323b + last_write_checksum: sha1:84e330b29f13c15647d6ce24cd9a0da5b1822576 + pristine_git_object: cfd493ab959a14d6b1bc7081384f71c30b817484 docs/models/components/InputOptions.md: id: 517f976a3847 last_write_checksum: sha1:138f736bca31c0c2a5f49e98fa14cfb464ada0a6 @@ -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 @@ -1739,8 +1739,8 @@ trackedFiles: pristine_git_object: ed122a44116a504b3410fb455b62912b03517283 docs/models/components/Object.md: id: 664819da5a69 - last_write_checksum: sha1:f0e492b6c4a94adb511097bea1371b34d1bc351a - pristine_git_object: 8ea493afb5a0b71f1517106e3d632786bf106dbe + last_write_checksum: sha1:e7c9b3652c11606148764f0069ccaba34048c0cd + pristine_git_object: fd1ecf2b9a02cfb54111b258af14621132b056ac docs/models/components/ObjectDefinition.md: id: 39e14825b6cd last_write_checksum: sha1:cbc92f9eb823a3abef989226bc1ca5e7950a6c0b @@ -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 @@ -1907,8 +1907,8 @@ trackedFiles: pristine_git_object: e450e86bfecdf66d82260b0a2246ab6d92cc0a8c docs/models/components/PlatformChatCitationAnnotationType.md: id: 94eb33468c3e - last_write_checksum: sha1:304b40dc0ff41e97bae0a7917c6c9690282e7785 - pristine_git_object: eeeda8a7b41214c4379484acd81a823069c4c96e + last_write_checksum: sha1:7fa14e859a3ce06b24e0573ab75a1fc3f68bdaea + pristine_git_object: 1b3ca34ad10e7346b44266bd5fdf3045f0fe5f07 docs/models/components/PlatformChatCitationSnippet.md: id: bcc4f82bc147 last_write_checksum: sha1:56ca4a831d0a07bdcf4e30e51f2321b4e8941cbb @@ -1923,20 +1923,20 @@ trackedFiles: pristine_git_object: 0aa9024ae2ebad9993b3ef3412b585301b6169bd docs/models/components/PlatformChatCompletedResponseStatus.md: id: 3a23e7cd4ef2 - last_write_checksum: sha1:e1202e8b90ab611e3694d9cac880609e7b17eee8 - pristine_git_object: c0112e72c4df281c6e324d3569f73ec07350a128 + last_write_checksum: sha1:238e24c34a11efa7735c3c9ff29d78c2396e856e + pristine_git_object: 20f5a52a269c0a898f4ec473d7f35f3d2955d62c docs/models/components/PlatformChatCreateRequest.md: id: db25c888cc01 - last_write_checksum: sha1:7d535f825c63a8062c0e3d601338b806eec43d35 - pristine_git_object: f1a555e3750ead0819894178a3a176ab0307e19f + last_write_checksum: sha1:b03267cf53c998a916b972059c1428dce49a509a + pristine_git_object: 6231cff7b54eb7c39673ef3352a335db80ccb356 docs/models/components/PlatformChatCustomEntitySource.md: id: b763add1c9d5 last_write_checksum: sha1:6e91ed1f230b5ec1975190bfbbe21bc9da233def pristine_git_object: 409f9f31541c0fab90db32f8757c763dbede34f2 docs/models/components/PlatformChatCustomEntitySourceType.md: id: 647fc55751d3 - last_write_checksum: sha1:7be5a7ea2aa7c528647dee144f36aa6c070acf00 - pristine_git_object: c5cdfaf69b543ae9df3660852f834ebc52ef4508 + last_write_checksum: sha1:f7f1976147320ce14058cc3d1ec38389ef3c80f3 + pristine_git_object: 657728f9ba61ce4b053de99f8ba102d9a255ed8d docs/models/components/PlatformChatDocumentSource.md: id: e1a7d4d00fe6 last_write_checksum: sha1:741d78de1cd634dceb81cd62c5ae7d076364eba9 @@ -1951,56 +1951,56 @@ trackedFiles: pristine_git_object: c53b69811e9c09ceaa9dba4da3fb8424ddadc2c2 docs/models/components/PlatformChatDocumentSourceType1.md: id: 5e81453df8a5 - last_write_checksum: sha1:89a8ebb7a746153adb89be373da1cb1c514b858d - pristine_git_object: e84dcc5b7706508466d969ae7ff47e79aa00ab75 + last_write_checksum: sha1:5f1f0957e165aa0d88453d5befd8176ab4120e44 + pristine_git_object: 47d6d8a1d2f55b3eb6943bf0ca38b3864e1a2ae5 docs/models/components/PlatformChatDocumentSourceType2.md: id: 3983e99d9633 - last_write_checksum: sha1:48265d3099ffe19caad664c1ad7a7588fba058c1 - pristine_git_object: e7b642989c9e2eebab9e9627f3762d190c341c28 + last_write_checksum: sha1:3f8e3f5147a07efb654c0bf889de3512f12110f9 + pristine_git_object: c346c489cda9600ac049b5cc5567caa9e1263915 docs/models/components/PlatformChatFileSource.md: id: a2ba6aadb91b last_write_checksum: sha1:639976b9382c900ee537983981b86409802ec09e pristine_git_object: 519162909ea24ae767e34de836edfedd9d10abba docs/models/components/PlatformChatFileSourceType.md: id: dc0e3cf80d84 - last_write_checksum: sha1:b440c27e43f7f2349c044dcfe8b5ae287aa0bca5 - pristine_git_object: 84e65617488fb8bbec26234329302e36a0aae642 + last_write_checksum: sha1:203ffe65c6688a652e1655b118419803a145ca93 + pristine_git_object: a5d6a3befbf67c91462b47150f7ab83109fc939e docs/models/components/PlatformChatInputMessage.md: id: dabbbf1dcc19 last_write_checksum: sha1:c0ad349a0275b1586d1cf689f4f5b8d88c037157 pristine_git_object: ac386ee71d0bba14deb59486d36f4169c2aef760 docs/models/components/PlatformChatInputMessageRole.md: id: a1fa73c5e9ee - last_write_checksum: sha1:83073f515f3a46a1b2a5bdc0261ecfd595e0a878 - pristine_git_object: b67650cb7d2d7e8c222259b1309d518e95ac0cc6 + last_write_checksum: sha1:cdeb632a959158f47dd5c83b885222948b5c00df + pristine_git_object: 19c27383f55b277297a14231503f7b5b6fd18e14 docs/models/components/PlatformChatOutputMessage.md: id: 02357c3f3fe9 last_write_checksum: sha1:4944b5271e6031405e1d66fa9e2b4684edb58d37 pristine_git_object: cb72120d351c7b4b68367fa386096cf0b6583a69 docs/models/components/PlatformChatOutputMessageRole.md: id: 85456697e4e6 - last_write_checksum: sha1:b1ff3683664123130a0dfe1608546a66ce98a7c6 - pristine_git_object: 695adf37a15f82bddb5f24c8ddd9c267c8a7221e + last_write_checksum: sha1:8c62a52a03bc0945c5ebb5b40b6c03f070e0e2df + pristine_git_object: 55e27c9f2ee91529679e17458336b0ea30003617 docs/models/components/PlatformChatOutputMessageType.md: id: 62040f0a4a98 - last_write_checksum: sha1:a3f81d33f0bd8f6253b3f0f2239f2426d85fc033 - pristine_git_object: c1e5a4aa9100c8a93c9e0d3a8e3b4d717baa5bef + last_write_checksum: sha1:99760334b26137264f209d4ac6024cf1ff248d4e + pristine_git_object: aa3ecd267f4c0998ad26cd30ca5b3198440e49f8 docs/models/components/PlatformChatOutputTextContent.md: id: 47a9370ffd32 last_write_checksum: sha1:aa920f472b22671db5dc9ae495596665d8ab42cc pristine_git_object: 915538bf25a1b309b080921498bb0b7c2fc93f05 docs/models/components/PlatformChatOutputTextContentType.md: id: 9570f09d46ec - last_write_checksum: sha1:a2928512c4020b2210c55d070b7ec93446a5fe97 - pristine_git_object: 069271f3d99271382b43bc7ef0f6a1478ca9e06d + last_write_checksum: sha1:3f75395a011965bb00747c97dce15d8ee34b153c + pristine_git_object: 1299d123c9b38b1d8a5f959d16e2d3317eea09d7 docs/models/components/PlatformChatPersonSource.md: id: f815116988fa last_write_checksum: sha1:8a95f276591fef4c627508cdee3066b321f49c19 pristine_git_object: 378b65cab1b7c42dad1f47aa33cae2657fee94b8 docs/models/components/PlatformChatPersonSourceType.md: id: 304f2fe8daa1 - last_write_checksum: sha1:b0bdefbd4d568d1b9f4fcc5087e3bd0ddcdd7ff3 - pristine_git_object: b8af5ea3749ab62e07ee67253deb9603d892b3ef + last_write_checksum: sha1:7cca2e81093d3c779471121596dc8f5ccfb74cb7 + pristine_git_object: 2084ff25e168de48f6c4343dd0b42c83f970d2e2 docs/models/components/PlatformContentType.md: id: 4f00756c77e6 last_write_checksum: sha1:8a391070d3f8e58a29b53b34e71ea702519f0b38 @@ -4111,12 +4111,12 @@ 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 - pristine_git_object: d735553bc134b3dcb46068a5c2063f1128f0334a + last_write_checksum: sha1:a27f265c26b26d70b8b11dcfd1289ac92c7f8dde + pristine_git_object: a20cd015019bc0de5ae875329e02be426697119f docs/sdks/verification/README.md: id: 8148670b64d3 last_write_checksum: sha1:e4b6b3b45b5b0c1718596fc683778df5ffc612bf @@ -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,12 +4315,12 @@ 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 - pristine_git_object: ceaf9f2296d06d6ca29a3d49ac417a439726df20 + last_write_checksum: sha1:6e6fbdf46a2d9e8957aecf1f96a92cf809cfe5da + pristine_git_object: 75ff1f514789504c9c822c5230162e761c266fb8 src/main/java/com/glean/api_client/glean_api_client/AsyncVerification.java: id: 8666e963a45c last_write_checksum: sha1:33ab517028f147aab0b1f15c15d32e0077948b58 @@ -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,12 +4463,12 @@ 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 - pristine_git_object: 85a640188a83cb03643226ac55f8d72ebaa06773 + last_write_checksum: sha1:1ac125a4e3054631833d6676a1446d779606781b + pristine_git_object: e2d497a9fcaf5cee45a18dde29ed77cad346af17 src/main/java/com/glean/api_client/glean_api_client/Verification.java: id: a9b3dde933de last_write_checksum: sha1:19ce4d59d774ae80dce441f62e87bda2e6be3fbd @@ -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 @@ -5939,8 +5939,8 @@ trackedFiles: pristine_git_object: 8765aff9af60fd7d17cffe1b25a6c10443414c11 src/main/java/com/glean/api_client/glean_api_client/models/components/Input.java: id: 5191994177f6 - last_write_checksum: sha1:74699e907843d18fa59c0bf9fef569fc5be8b533 - pristine_git_object: 8bce4079a3da95fbe36bccd808433bd509ccec0a + last_write_checksum: sha1:548841ce0622694c46a81e0bae1ee20986a9533b + pristine_git_object: 38d3eea88a9519ddeedc29fc26adf84ede32d19d src/main/java/com/glean/api_client/glean_api_client/models/components/InputOptions.java: id: 5e6954da0fe5 last_write_checksum: sha1:1266cca7e2991af173e8e8822292f270476ef0d3 @@ -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 @@ -6167,8 +6167,8 @@ trackedFiles: pristine_git_object: 86b2ac96bdcdc768cee7b3574a1cca0b83493e2a src/main/java/com/glean/api_client/glean_api_client/models/components/Object.java: id: 86fd6cc8b4d3 - last_write_checksum: sha1:2454353b86394df86bba6cb619faa7d0eb8acea5 - pristine_git_object: 90666a6ca45044400acc2dadb74f01f5a485e6a1 + last_write_checksum: sha1:edb5eafb22a636119d3b1130a94dd8242b713601 + pristine_git_object: dd5dfb2cd34eec8f65dfd8fcf73a7535f931c3c9 src/main/java/com/glean/api_client/glean_api_client/models/components/ObjectDefinition.java: id: 20f12c950005 last_write_checksum: sha1:533f08382aea9bcb77775d994bd312f75289b817 @@ -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 @@ -6335,8 +6335,8 @@ trackedFiles: pristine_git_object: e187636aa22fb8ec0f914a1738053305708c0fb5 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCitationAnnotationType.java: id: 75cbc7e24e63 - last_write_checksum: sha1:69a8e1eea90d0d9d6d8bee13bb904d04c8033056 - pristine_git_object: e4f6fef5075e0f9a7d09a63ac2fee40016061743 + last_write_checksum: sha1:811606f983e18381f60f8fba7a3ca2606c6b6ae8 + pristine_git_object: 35485098e883fc1ddbc81ee8c0075f947db59a49 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCitationSnippet.java: id: b0dc9eb7b9f6 last_write_checksum: sha1:0e5719890865910d949b26b57089b71f63989685 @@ -6351,20 +6351,20 @@ trackedFiles: pristine_git_object: 7a8ec5abd25bdcd94647742087247bf9eb617159 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCompletedResponseStatus.java: id: 9afc9bd6c744 - last_write_checksum: sha1:c92fe24c8c7b1f045ed508c1216beb8610de48b7 - pristine_git_object: 253ce33f6133eca10264dd4f7209faf707446fed + last_write_checksum: sha1:4a629f9362bc85d434dbc3750b1f4236853cdcf6 + pristine_git_object: a75fec8b685b48446318bcf459a219b39c32ba37 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCreateRequest.java: id: 47fecfbaeae8 - last_write_checksum: sha1:47c143c5c091ea0ced25b8b05eafa122dd78d2c9 - pristine_git_object: c2de544227b32e9d1620009cc0d29b5eda155154 + last_write_checksum: sha1:395db0df5714ecf28437feee6438bcd683de96bb + pristine_git_object: b0ef7f405a3e65eead15be4442932022d17b8b19 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCustomEntitySource.java: id: 32d1ae4ae106 last_write_checksum: sha1:a6052f635c66eddd33e4ed928174717c678baff4 pristine_git_object: 5ae5ca947a922d5c332e201c2633ac677692c8d8 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCustomEntitySourceType.java: id: 94b3e67d7c5a - last_write_checksum: sha1:0f77d6696202e4ceedd1a19cdc5076d6f34ebf54 - pristine_git_object: 141bd82ec4f0c1f66ac0c4baebbb25ffa2414a7a + last_write_checksum: sha1:1f26478797a47eb84d699c3606011c2d47894d42 + pristine_git_object: 069cce89b86bb453306beec8efbc308c54f96e66 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatDocumentSource.java: id: 2886a6649935 last_write_checksum: sha1:7b6ffd1f7910769da79de03def5f05f9f6e5c36f @@ -6379,56 +6379,56 @@ trackedFiles: pristine_git_object: d65df73920879f2731470bf31b726ec5a132eed8 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatDocumentSourceType1.java: id: cd867d024d28 - last_write_checksum: sha1:f3b006bf97a525335053d6a4619d87ed4405e9a9 - pristine_git_object: 8df98ec7ac1d32dacf58a49163c653634415e11e + last_write_checksum: sha1:7b62496b3bbd2305d59346c51e4fce9d029dbda2 + pristine_git_object: 16b3a577bde741147c6067b110ed848eade34f5b src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatDocumentSourceType2.java: id: c04d935ee3d0 - last_write_checksum: sha1:7e0fbb135c61f60ea67495b3406f527782b1ce67 - pristine_git_object: 560d020141b84658e88265ebbdcde1c1d8eee053 + last_write_checksum: sha1:f665e9067fdbc9a2e11b995af94109287de93823 + pristine_git_object: cb8314a5c756bac26833203aee86d75cf6072d7b src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatFileSource.java: id: 6bd3d8d6dcbc last_write_checksum: sha1:701f8ed49e58f97ee32f4d213bc69f2d504bb8a0 pristine_git_object: 4c3b62dac3a9d8ccab65b51cd329ab2573ae220f src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatFileSourceType.java: id: 4d5a7815db26 - last_write_checksum: sha1:ec257f40aa1a1a74dc3ba3d318aefe6c2a0396e5 - pristine_git_object: ded15dc434acf4a5c73413a9bab401aa332efff2 + last_write_checksum: sha1:57aa2cd265b1bd68aace92d0f41e08adef00df34 + pristine_git_object: d471df93326431eba1135318c96dffbc83000083 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatInputMessage.java: id: 7ed293471f2e last_write_checksum: sha1:b9cf997aeba6526705896b1956519c2202c63e77 pristine_git_object: 7cbf60cf2ef88bf696c33490ff1c78ded3cf6e29 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatInputMessageRole.java: id: 79d671fea9aa - last_write_checksum: sha1:2b1fd482f2d3c3740a9f852fa81528cce53ab3f2 - pristine_git_object: 7b69b458ce5d4e41fd3bd736cf2a10eff1909b23 + last_write_checksum: sha1:a0a460698f52359c4f8c029d50eb6631114860bc + pristine_git_object: 74a248a1497695e2aecfab5907f0991c7f051f50 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputMessage.java: id: bc251074af4b last_write_checksum: sha1:e652a47b0e3741015154d72b5b8686fe337d6c8f pristine_git_object: b6402ccff48e4de2fc5fe04c916e3c118bdc18b3 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputMessageRole.java: id: 9f6078aafd6a - last_write_checksum: sha1:71fbea39795ed1a5a6640847035a90730603f1c2 - pristine_git_object: 28cbe96f9c81605cd42264b6f9472e9dd343f826 + last_write_checksum: sha1:10ccc1d489719f113a56c90d2c95485eab79964c + pristine_git_object: 8a818b42a820af28c1aa161197f9d2ac7e85e5dd src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputMessageType.java: id: 15095f4e4467 - last_write_checksum: sha1:955bddd4dcecc5188e11b249a5e8dfa93c84ea18 - pristine_git_object: ea96a39e7bc21bb2480acb78d01d5451b4746a31 + last_write_checksum: sha1:eb877b2d32dca850201aee8594a6670423c9e3f7 + pristine_git_object: 6127a9fa518d39b1d427470deeaed19fb9d0872f src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputTextContent.java: id: a322812aaabe last_write_checksum: sha1:1cf874fed72b2a4ea77a557283266aba97698629 pristine_git_object: 2a634a45e5c3eba768cf36b92a2aae6e42e3ff2f src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputTextContentType.java: id: f0b0e0085fe8 - last_write_checksum: sha1:d167218ba524a837470726a6c98129a6032dcf21 - pristine_git_object: 394fc66d1b1c5b48a928b63fa91b2d8b11f221d2 + last_write_checksum: sha1:7b41b321fe2d21d411a279b7dbed9ce0625ce606 + pristine_git_object: bde6402aa8b8a0050032da8874c95f4b95a99dd3 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatPersonSource.java: id: 3d042fb0ddba last_write_checksum: sha1:f9f72ad88b427e2d51fcdbbd6280079bb203899a pristine_git_object: 2914ebbf9f5487d2a4b983e78eb685d20e123923 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatPersonSourceType.java: id: ddb60ba6386a - last_write_checksum: sha1:f5aec6c7340b22962b628d2922ffa195dc4fb016 - pristine_git_object: 8bad9407d717705e4204dd838af04feef6a4a459 + last_write_checksum: sha1:24137e3784668601f67acd989f0fdae00dde46f8 + pristine_git_object: c15c4e88ebadb613a1a53b136f553452fe9335e1 src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformContentType.java: id: de39566bcffe last_write_checksum: sha1:769c4d48aedfb3638a6dde3e762d9373b3155d20 @@ -12354,7 +12354,7 @@ examples: application/json: {"input": "", "stream": false, "store": true} responses: "200": - application/json: {"id": "", "object": "response", "created_at": "2026-05-19T05:32:52.505Z", "status": "completed", "output": [{"type": "message", "role": "assistant", "content": [{"type": "output_text", "text": ""}]}], "store": false, "request_id": ""} + application/json: {"id": "", "object": "RESPONSE", "created_at": "2026-05-19T05:32:52.505Z", "status": "COMPLETED", "output": [{"type": "MESSAGE", "role": "ASSISTANT", "content": [{"type": "OUTPUT_TEXT", "text": ""}]}], "store": false, "request_id": ""} text/event-stream: "" "400": application/problem+json: {"type": "https://developers.glean.com/errors/invalid-cursor", "title": "Invalid Pagination Cursor", "status": 400, "detail": "The provided cursor has expired. Start a new search to get a fresh cursor.\n", "code": "invalid_cursor", "documentation_url": "https://developers.glean.com/errors/invalid-cursor", "request_id": "req_7f8a9b0c1d2e", "errors": [{"pointer": "/messages/0/role", "detail": "Must be one of: USER, GLEAN_AI.", "code": "invalid_cursor"}]} @@ -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.chat.create()`: \n * `request.input.union(Array)[].role` **Changed** (Breaking ⚠️)\n * `response` **Changed** (Breaking ⚠️)\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..e031eb14 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: 2288984b38ffe35327b6acd9c627f5c8e988cbc9 + x-open-api-commit-sha: 39dce31b0d2a433e036ea5fa62954a892f5d12f6 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": @@ -277,20 +282,24 @@ paths: Server-sent events for a streaming chat run. Event payloads are documented under ChatStream* schemas. example: | id: 1 - event: response.created - data: {"type":"response.created","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015"} + event: RESPONSE_CREATED + data: {"type":"RESPONSE_CREATED","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015"} id: 2 - event: response.output_text.delta - data: {"type":"response.output_text.delta","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","delta":"Hello"} + event: RESPONSE_PROGRESS + data: {"type":"RESPONSE_PROGRESS","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","text":"**Searching:** foo"} id: 3 - event: response.output_text.done - data: {"type":"response.output_text.done","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","text":"Hello"} + event: RESPONSE_OUTPUT_TEXT_DELTA + data: {"type":"RESPONSE_OUTPUT_TEXT_DELTA","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","delta":"Hello"} id: 4 - 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"}} + event: RESPONSE_OUTPUT_TEXT_DONE + data: {"type":"RESPONSE_OUTPUT_TEXT_DONE","response_id":"resp_e65a0a77-97a2-4c91-be60-eae7f6238015","text":"Hello"} + + 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": $ref: "#/components/responses/PlatformBadRequest" "401": @@ -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: @@ -3999,14 +4008,15 @@ paths: summary: Get tool definitions from a tool server. description: | Returns the name, description and JSON input schema for the named tools on the - specified tool server. Works for both action packs and MCP servers. + specified tool server. Works for Glean's built-in tools, tool packs and MCP + servers. `toolNames` is required. Names that do not exist on the server are returned in `notFound` rather than failing the request, so a single bad name does not force callers into one-at-a-time retries. Matching is case-insensitive and treats `-` and `_` as equivalent. - Native tools are not served; `serverId=native` returns 404. + Use `serverId=native` for Glean's built-in tools. tags: - Tools security: @@ -6014,6 +6024,8 @@ paths: summary: Chat description: Have a conversation with Glean AI. operationId: chatStream + security: + - APIToken: [] x-visibility: Public x-codegen-request-body-name: payload parameters: @@ -6603,8 +6615,8 @@ components: role: type: string enum: - - user - - assistant + - USER + - ASSISTANT content: type: string minLength: 1 @@ -6616,7 +6628,7 @@ components: properties: input: description: | - Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. The final array message must be `user`. + Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`. oneOf: - type: string minLength: 1 @@ -6654,7 +6666,7 @@ components: type: type: string enum: - - document + - DOCUMENT document_id: type: string minLength: 1 @@ -6680,7 +6692,7 @@ components: type: type: string enum: - - person + - PERSON person_id: type: string minLength: 1 @@ -6698,7 +6710,7 @@ components: type: type: string enum: - - file + - FILE file_id: type: string minLength: 1 @@ -6718,7 +6730,7 @@ components: type: type: string enum: - - custom_entity + - CUSTOM_ENTITY entity_id: type: string minLength: 1 @@ -6740,10 +6752,10 @@ components: discriminator: propertyName: type mapping: - document: "#/components/schemas/ChatDocumentSource" - person: "#/components/schemas/ChatPersonSource" - file: "#/components/schemas/ChatFileSource" - custom_entity: "#/components/schemas/ChatCustomEntitySource" + DOCUMENT: "#/components/schemas/ChatDocumentSource" + PERSON: "#/components/schemas/ChatPersonSource" + FILE: "#/components/schemas/ChatFileSource" + CUSTOM_ENTITY: "#/components/schemas/ChatCustomEntitySource" PlatformChatCitationSnippet: type: object additionalProperties: false @@ -6766,7 +6778,7 @@ components: type: type: string enum: - - citation + - CITATION sources: type: array minItems: 1 @@ -6795,7 +6807,7 @@ components: type: type: string enum: - - output_text + - OUTPUT_TEXT text: type: string annotations: @@ -6813,11 +6825,11 @@ components: type: type: string enum: - - message + - MESSAGE role: type: string enum: - - assistant + - ASSISTANT content: type: array minItems: 1 @@ -6841,7 +6853,7 @@ components: object: type: string enum: - - response + - RESPONSE created_at: type: string format: date-time @@ -6849,7 +6861,7 @@ components: status: type: string enum: - - completed + - COMPLETED output: type: array minItems: 1 @@ -7008,6 +7020,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 +7112,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 +14356,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 +14802,7 @@ components: - OOO_PLANNER - OOO_CATCH_UP - ADMIN_HEALTH_CENTER + - KNOWLEDGE_GAP description: Type of the justification. justification: type: string @@ -14880,6 +14894,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 +14911,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..aa88ad4e 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.792.0 +speakeasyVersion: 1.793.2 sources: Glean API: sourceNamespace: glean-api-specs - sourceRevisionDigest: sha256:ca77ef4550d695da210e8f0d32f3422d29e9d09f7aa66f7b13d248c6ec8c7941 - sourceBlobDigest: sha256:469de4cd2c8ab4928c3989656bf63cc265a8ceea5a8b3e3498734137b19723f8 + sourceRevisionDigest: sha256:e1ee49fd7feb0a8d82f357f647835566a9a6ac91542790c1c2f48732b7dcb923 + sourceBlobDigest: sha256:338cd7c98353a9d15702b9ef4d062ab1b33816303cfcf2b26486a129269f2814 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:e1ee49fd7feb0a8d82f357f647835566a9a6ac91542790c1c2f48732b7dcb923 + sourceBlobDigest: sha256:338cd7c98353a9d15702b9ef4d062ab1b33816303cfcf2b26486a129269f2814 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..d75e9fbf 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-14 02:27:48 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.793.2 (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/Input.md b/docs/models/components/Input.md index c2cd7804..cfd493ab 100644 --- a/docs/models/components/Input.md +++ b/docs/models/components/Input.md @@ -1,5 +1,5 @@ # Input -Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. The final array message must be `user`. +Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`. 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/Object.md b/docs/models/components/Object.md index 8ea493af..fd1ecf2b 100644 --- a/docs/models/components/Object.md +++ b/docs/models/components/Object.md @@ -13,4 +13,4 @@ Object value = Object.RESPONSE; | Name | Value | | ---------- | ---------- | -| `RESPONSE` | response | \ No newline at end of file +| `RESPONSE` | RESPONSE | \ 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/models/components/PlatformChatCitationAnnotationType.md b/docs/models/components/PlatformChatCitationAnnotationType.md index eeeda8a7..1b3ca34a 100644 --- a/docs/models/components/PlatformChatCitationAnnotationType.md +++ b/docs/models/components/PlatformChatCitationAnnotationType.md @@ -13,4 +13,4 @@ PlatformChatCitationAnnotationType value = PlatformChatCitationAnnotationType.CI | Name | Value | | ---------- | ---------- | -| `CITATION` | citation | \ No newline at end of file +| `CITATION` | CITATION | \ No newline at end of file diff --git a/docs/models/components/PlatformChatCompletedResponseStatus.md b/docs/models/components/PlatformChatCompletedResponseStatus.md index c0112e72..20f5a52a 100644 --- a/docs/models/components/PlatformChatCompletedResponseStatus.md +++ b/docs/models/components/PlatformChatCompletedResponseStatus.md @@ -13,4 +13,4 @@ PlatformChatCompletedResponseStatus value = PlatformChatCompletedResponseStatus. | Name | Value | | ----------- | ----------- | -| `COMPLETED` | completed | \ No newline at end of file +| `COMPLETED` | COMPLETED | \ No newline at end of file diff --git a/docs/models/components/PlatformChatCreateRequest.md b/docs/models/components/PlatformChatCreateRequest.md index f1a555e3..6231cff7 100644 --- a/docs/models/components/PlatformChatCreateRequest.md +++ b/docs/models/components/PlatformChatCreateRequest.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------ | -| `input` | [Input](../../models/components/Input.md) | :heavy_check_mark: | Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. The final array message must be `user`.
| +| `input` | [Input](../../models/components/Input.md) | :heavy_check_mark: | Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. The final array message must be `USER`.
| | `stream` | *Optional\* | :heavy_minus_sign: | When true, respond with `text/event-stream`. When false or omitted, respond with `application/json`.
| | `store` | *Optional\* | :heavy_minus_sign: | When true (default), persist the interaction and return a `conversation_id`. When false, run ephemerally with no persistence.
| | `conversationId` | *Optional\* | :heavy_minus_sign: | Continue an existing stored conversation. Incompatible with message-array `input` and with `store: false`.
| \ No newline at end of file diff --git a/docs/models/components/PlatformChatCustomEntitySourceType.md b/docs/models/components/PlatformChatCustomEntitySourceType.md index c5cdfaf6..657728f9 100644 --- a/docs/models/components/PlatformChatCustomEntitySourceType.md +++ b/docs/models/components/PlatformChatCustomEntitySourceType.md @@ -13,4 +13,4 @@ PlatformChatCustomEntitySourceType value = PlatformChatCustomEntitySourceType.CU | Name | Value | | --------------- | --------------- | -| `CUSTOM_ENTITY` | custom_entity | \ No newline at end of file +| `CUSTOM_ENTITY` | CUSTOM_ENTITY | \ No newline at end of file diff --git a/docs/models/components/PlatformChatDocumentSourceType1.md b/docs/models/components/PlatformChatDocumentSourceType1.md index e84dcc5b..47d6d8a1 100644 --- a/docs/models/components/PlatformChatDocumentSourceType1.md +++ b/docs/models/components/PlatformChatDocumentSourceType1.md @@ -13,4 +13,4 @@ PlatformChatDocumentSourceType1 value = PlatformChatDocumentSourceType1.DOCUMENT | Name | Value | | ---------- | ---------- | -| `DOCUMENT` | document | \ No newline at end of file +| `DOCUMENT` | DOCUMENT | \ No newline at end of file diff --git a/docs/models/components/PlatformChatDocumentSourceType2.md b/docs/models/components/PlatformChatDocumentSourceType2.md index e7b64298..c346c489 100644 --- a/docs/models/components/PlatformChatDocumentSourceType2.md +++ b/docs/models/components/PlatformChatDocumentSourceType2.md @@ -13,4 +13,4 @@ PlatformChatDocumentSourceType2 value = PlatformChatDocumentSourceType2.DOCUMENT | Name | Value | | ---------- | ---------- | -| `DOCUMENT` | document | \ No newline at end of file +| `DOCUMENT` | DOCUMENT | \ No newline at end of file diff --git a/docs/models/components/PlatformChatFileSourceType.md b/docs/models/components/PlatformChatFileSourceType.md index 84e65617..a5d6a3be 100644 --- a/docs/models/components/PlatformChatFileSourceType.md +++ b/docs/models/components/PlatformChatFileSourceType.md @@ -13,4 +13,4 @@ PlatformChatFileSourceType value = PlatformChatFileSourceType.FILE; | Name | Value | | ------ | ------ | -| `FILE` | file | \ No newline at end of file +| `FILE` | FILE | \ No newline at end of file diff --git a/docs/models/components/PlatformChatInputMessageRole.md b/docs/models/components/PlatformChatInputMessageRole.md index b67650cb..19c27383 100644 --- a/docs/models/components/PlatformChatInputMessageRole.md +++ b/docs/models/components/PlatformChatInputMessageRole.md @@ -13,5 +13,5 @@ PlatformChatInputMessageRole value = PlatformChatInputMessageRole.USER; | Name | Value | | ----------- | ----------- | -| `USER` | user | -| `ASSISTANT` | assistant | \ No newline at end of file +| `USER` | USER | +| `ASSISTANT` | ASSISTANT | \ No newline at end of file diff --git a/docs/models/components/PlatformChatOutputMessageRole.md b/docs/models/components/PlatformChatOutputMessageRole.md index 695adf37..55e27c9f 100644 --- a/docs/models/components/PlatformChatOutputMessageRole.md +++ b/docs/models/components/PlatformChatOutputMessageRole.md @@ -13,4 +13,4 @@ PlatformChatOutputMessageRole value = PlatformChatOutputMessageRole.ASSISTANT; | Name | Value | | ----------- | ----------- | -| `ASSISTANT` | assistant | \ No newline at end of file +| `ASSISTANT` | ASSISTANT | \ No newline at end of file diff --git a/docs/models/components/PlatformChatOutputMessageType.md b/docs/models/components/PlatformChatOutputMessageType.md index c1e5a4aa..aa3ecd26 100644 --- a/docs/models/components/PlatformChatOutputMessageType.md +++ b/docs/models/components/PlatformChatOutputMessageType.md @@ -13,4 +13,4 @@ PlatformChatOutputMessageType value = PlatformChatOutputMessageType.MESSAGE; | Name | Value | | --------- | --------- | -| `MESSAGE` | message | \ No newline at end of file +| `MESSAGE` | MESSAGE | \ No newline at end of file diff --git a/docs/models/components/PlatformChatOutputTextContentType.md b/docs/models/components/PlatformChatOutputTextContentType.md index 069271f3..1299d123 100644 --- a/docs/models/components/PlatformChatOutputTextContentType.md +++ b/docs/models/components/PlatformChatOutputTextContentType.md @@ -13,4 +13,4 @@ PlatformChatOutputTextContentType value = PlatformChatOutputTextContentType.OUTP | Name | Value | | ------------- | ------------- | -| `OUTPUT_TEXT` | output_text | \ No newline at end of file +| `OUTPUT_TEXT` | OUTPUT_TEXT | \ No newline at end of file diff --git a/docs/models/components/PlatformChatPersonSourceType.md b/docs/models/components/PlatformChatPersonSourceType.md index b8af5ea3..2084ff25 100644 --- a/docs/models/components/PlatformChatPersonSourceType.md +++ b/docs/models/components/PlatformChatPersonSourceType.md @@ -13,4 +13,4 @@ PlatformChatPersonSourceType value = PlatformChatPersonSourceType.PERSON; | Name | Value | | -------- | -------- | -| `PERSON` | person | \ No newline at end of file +| `PERSON` | PERSON | \ 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/docs/sdks/tools/README.md b/docs/sdks/tools/README.md index d735553b..a20cd015 100644 --- a/docs/sdks/tools/README.md +++ b/docs/sdks/tools/README.md @@ -349,14 +349,15 @@ public class Application { ## getToolServerTools Returns the name, description and JSON input schema for the named tools on the -specified tool server. Works for both action packs and MCP servers. +specified tool server. Works for Glean's built-in tools, tool packs and MCP +servers. `toolNames` is required. Names that do not exist on the server are returned in `notFound` rather than failing the request, so a single bad name does not force callers into one-at-a-time retries. Matching is case-insensitive and treats `-` and `_` as equivalent. -Native tools are not served; `serverId=native` returns 404. +Use `serverId=native` for Glean's built-in tools. ### Example Usage 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/AsyncTools.java b/src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java index ceaf9f22..75ff1f51 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java +++ b/src/main/java/com/glean/api_client/glean_api_client/AsyncTools.java @@ -300,14 +300,15 @@ public CompletableFuture authorizeToolServer(String * Get tool definitions from a tool server. * *

Returns the name, description and JSON input schema for the named tools on the - * specified tool server. Works for both action packs and MCP servers. + * specified tool server. Works for Glean's built-in tools, tool packs and MCP + * servers. * *

`toolNames` is required. Names that do not exist on the server are returned in * `notFound` rather than failing the request, so a single bad name does not force * callers into one-at-a-time retries. Matching is case-insensitive and treats `-` * and `_` as equivalent. * - *

Native tools are not served; `serverId=native` returns 404. + *

Use `serverId=native` for Glean's built-in tools. * * @return The async call builder */ @@ -319,14 +320,15 @@ public GetToolServerToolsRequestBuilder getToolServerTools() { * Get tool definitions from a tool server. * *

Returns the name, description and JSON input schema for the named tools on the - * specified tool server. Works for both action packs and MCP servers. + * specified tool server. Works for Glean's built-in tools, tool packs and MCP + * servers. * *

`toolNames` is required. Names that do not exist on the server are returned in * `notFound` rather than failing the request, so a single bad name does not force * callers into one-at-a-time retries. Matching is case-insensitive and treats `-` * and `_` as equivalent. * - *

Native tools are not served; `serverId=native` returns 404. + *

Use `serverId=native` for Glean's built-in tools. * * @param serverId Unique identifier of the tool server. * @param toolNames Tool names to look up on this server. Maximum 100. 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/Tools.java b/src/main/java/com/glean/api_client/glean_api_client/Tools.java index 85a64018..e2d497a9 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/Tools.java +++ b/src/main/java/com/glean/api_client/glean_api_client/Tools.java @@ -293,14 +293,15 @@ public AuthorizeToolServerResponse authorizeToolServer(String serverId, Authoriz * Get tool definitions from a tool server. * *

Returns the name, description and JSON input schema for the named tools on the - * specified tool server. Works for both action packs and MCP servers. + * specified tool server. Works for Glean's built-in tools, tool packs and MCP + * servers. * *

`toolNames` is required. Names that do not exist on the server are returned in * `notFound` rather than failing the request, so a single bad name does not force * callers into one-at-a-time retries. Matching is case-insensitive and treats `-` * and `_` as equivalent. * - *

Native tools are not served; `serverId=native` returns 404. + *

Use `serverId=native` for Glean's built-in tools. * * @return The call builder */ @@ -312,14 +313,15 @@ public GetToolServerToolsRequestBuilder getToolServerTools() { * Get tool definitions from a tool server. * *

Returns the name, description and JSON input schema for the named tools on the - * specified tool server. Works for both action packs and MCP servers. + * specified tool server. Works for Glean's built-in tools, tool packs and MCP + * servers. * *

`toolNames` is required. Names that do not exist on the server are returned in * `notFound` rather than failing the request, so a single bad name does not force * callers into one-at-a-time retries. Matching is case-insensitive and treats `-` * and `_` as equivalent. * - *

Native tools are not served; `serverId=native` returns 404. + *

Use `serverId=native` for Glean's built-in tools. * * @param serverId Unique identifier of the tool server. * @param toolNames Tool names to look up on this server. Maximum 100. 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/Input.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Input.java index 8bce4079..38d3eea8 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Input.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Input.java @@ -20,8 +20,8 @@ /** * Input * - *

Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. - * The final array message must be `user`. + *

Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. + * The final array message must be `USER`. */ @JsonDeserialize(using = Input._Deserializer.class) public class Input { 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/Object.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/Object.java index 90666a6c..dd5dfb2c 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/Object.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/Object.java @@ -21,7 +21,7 @@ */ public class Object { - public static final Object RESPONSE = new Object("response"); + public static final Object RESPONSE = new Object("RESPONSE"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -95,20 +95,20 @@ public static Object[] values() { private static final Map createValuesMap() { Map map = new LinkedHashMap<>(); - map.put("response", RESPONSE); + map.put("RESPONSE", RESPONSE); return map; } private static final Map createEnumsMap() { Map map = new HashMap<>(); - map.put("response", ObjectEnum.RESPONSE); + map.put("RESPONSE", ObjectEnum.RESPONSE); return map; } public enum ObjectEnum { - RESPONSE("response"),; + RESPONSE("RESPONSE"),; 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; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCitationAnnotationType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCitationAnnotationType.java index e4f6fef5..35485098 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCitationAnnotationType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCitationAnnotationType.java @@ -21,7 +21,7 @@ */ public class PlatformChatCitationAnnotationType { - public static final PlatformChatCitationAnnotationType CITATION = new PlatformChatCitationAnnotationType("citation"); + public static final PlatformChatCitationAnnotationType CITATION = new PlatformChatCitationAnnotationType("CITATION"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -95,20 +95,20 @@ public static PlatformChatCitationAnnotationType[] values() { private static final Map createValuesMap() { Map map = new LinkedHashMap<>(); - map.put("citation", CITATION); + map.put("CITATION", CITATION); return map; } private static final Map createEnumsMap() { Map map = new HashMap<>(); - map.put("citation", PlatformChatCitationAnnotationTypeEnum.CITATION); + map.put("CITATION", PlatformChatCitationAnnotationTypeEnum.CITATION); return map; } public enum PlatformChatCitationAnnotationTypeEnum { - CITATION("citation"),; + CITATION("CITATION"),; private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCompletedResponseStatus.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCompletedResponseStatus.java index 253ce33f..a75fec8b 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCompletedResponseStatus.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCompletedResponseStatus.java @@ -21,7 +21,7 @@ */ public class PlatformChatCompletedResponseStatus { - public static final PlatformChatCompletedResponseStatus COMPLETED = new PlatformChatCompletedResponseStatus("completed"); + public static final PlatformChatCompletedResponseStatus COMPLETED = new PlatformChatCompletedResponseStatus("COMPLETED"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -95,20 +95,20 @@ public static PlatformChatCompletedResponseStatus[] values() { private static final Map createValuesMap() { Map map = new LinkedHashMap<>(); - map.put("completed", COMPLETED); + map.put("COMPLETED", COMPLETED); return map; } private static final Map createEnumsMap() { Map map = new HashMap<>(); - map.put("completed", PlatformChatCompletedResponseStatusEnum.COMPLETED); + map.put("COMPLETED", PlatformChatCompletedResponseStatusEnum.COMPLETED); return map; } public enum PlatformChatCompletedResponseStatusEnum { - COMPLETED("completed"),; + COMPLETED("COMPLETED"),; private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCreateRequest.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCreateRequest.java index c2de5442..b0ef7f40 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCreateRequest.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCreateRequest.java @@ -20,8 +20,8 @@ public class PlatformChatCreateRequest { /** - * Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. - * The final array message must be `user`. + * Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. + * The final array message must be `USER`. */ @JsonProperty("input") private Input input; @@ -72,8 +72,8 @@ public PlatformChatCreateRequest( } /** - * Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. - * The final array message must be `user`. + * Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. + * The final array message must be `USER`. */ @JsonIgnore public Input input() { @@ -112,8 +112,8 @@ public static Builder builder() { /** - * Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. - * The final array message must be `user`. + * Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. + * The final array message must be `USER`. */ public PlatformChatCreateRequest withInput(Input input) { Utils.checkNotNull(input, "input"); @@ -231,8 +231,8 @@ private Builder() { /** - * Either a plain string (single user turn) or a chronological array of `user`/`assistant` messages. - * The final array message must be `user`. + * Either a plain string (single user turn) or a chronological array of `USER`/`ASSISTANT` messages. + * The final array message must be `USER`. */ public Builder input(Input input) { Utils.checkNotNull(input, "input"); diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCustomEntitySourceType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCustomEntitySourceType.java index 141bd82e..069cce89 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCustomEntitySourceType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatCustomEntitySourceType.java @@ -21,7 +21,7 @@ */ public class PlatformChatCustomEntitySourceType { - public static final PlatformChatCustomEntitySourceType CUSTOM_ENTITY = new PlatformChatCustomEntitySourceType("custom_entity"); + public static final PlatformChatCustomEntitySourceType CUSTOM_ENTITY = new PlatformChatCustomEntitySourceType("CUSTOM_ENTITY"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -95,20 +95,20 @@ public static PlatformChatCustomEntitySourceType[] values() { private static final Map createValuesMap() { Map map = new LinkedHashMap<>(); - map.put("custom_entity", CUSTOM_ENTITY); + map.put("CUSTOM_ENTITY", CUSTOM_ENTITY); return map; } private static final Map createEnumsMap() { Map map = new HashMap<>(); - map.put("custom_entity", PlatformChatCustomEntitySourceTypeEnum.CUSTOM_ENTITY); + map.put("CUSTOM_ENTITY", PlatformChatCustomEntitySourceTypeEnum.CUSTOM_ENTITY); return map; } public enum PlatformChatCustomEntitySourceTypeEnum { - CUSTOM_ENTITY("custom_entity"),; + CUSTOM_ENTITY("CUSTOM_ENTITY"),; private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatDocumentSourceType1.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatDocumentSourceType1.java index 8df98ec7..16b3a577 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatDocumentSourceType1.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatDocumentSourceType1.java @@ -21,7 +21,7 @@ */ public class PlatformChatDocumentSourceType1 { - public static final PlatformChatDocumentSourceType1 DOCUMENT = new PlatformChatDocumentSourceType1("document"); + public static final PlatformChatDocumentSourceType1 DOCUMENT = new PlatformChatDocumentSourceType1("DOCUMENT"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -95,20 +95,20 @@ public static PlatformChatDocumentSourceType1[] values() { private static final Map createValuesMap() { Map map = new LinkedHashMap<>(); - map.put("document", DOCUMENT); + map.put("DOCUMENT", DOCUMENT); return map; } private static final Map createEnumsMap() { Map map = new HashMap<>(); - map.put("document", PlatformChatDocumentSourceType1Enum.DOCUMENT); + map.put("DOCUMENT", PlatformChatDocumentSourceType1Enum.DOCUMENT); return map; } public enum PlatformChatDocumentSourceType1Enum { - DOCUMENT("document"),; + DOCUMENT("DOCUMENT"),; private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatDocumentSourceType2.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatDocumentSourceType2.java index 560d0201..cb8314a5 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatDocumentSourceType2.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatDocumentSourceType2.java @@ -21,7 +21,7 @@ */ public class PlatformChatDocumentSourceType2 { - public static final PlatformChatDocumentSourceType2 DOCUMENT = new PlatformChatDocumentSourceType2("document"); + public static final PlatformChatDocumentSourceType2 DOCUMENT = new PlatformChatDocumentSourceType2("DOCUMENT"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -95,20 +95,20 @@ public static PlatformChatDocumentSourceType2[] values() { private static final Map createValuesMap() { Map map = new LinkedHashMap<>(); - map.put("document", DOCUMENT); + map.put("DOCUMENT", DOCUMENT); return map; } private static final Map createEnumsMap() { Map map = new HashMap<>(); - map.put("document", PlatformChatDocumentSourceType2Enum.DOCUMENT); + map.put("DOCUMENT", PlatformChatDocumentSourceType2Enum.DOCUMENT); return map; } public enum PlatformChatDocumentSourceType2Enum { - DOCUMENT("document"),; + DOCUMENT("DOCUMENT"),; private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatFileSourceType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatFileSourceType.java index ded15dc4..d471df93 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatFileSourceType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatFileSourceType.java @@ -21,7 +21,7 @@ */ public class PlatformChatFileSourceType { - public static final PlatformChatFileSourceType FILE = new PlatformChatFileSourceType("file"); + public static final PlatformChatFileSourceType FILE = new PlatformChatFileSourceType("FILE"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -95,20 +95,20 @@ public static PlatformChatFileSourceType[] values() { private static final Map createValuesMap() { Map map = new LinkedHashMap<>(); - map.put("file", FILE); + map.put("FILE", FILE); return map; } private static final Map createEnumsMap() { Map map = new HashMap<>(); - map.put("file", PlatformChatFileSourceTypeEnum.FILE); + map.put("FILE", PlatformChatFileSourceTypeEnum.FILE); return map; } public enum PlatformChatFileSourceTypeEnum { - FILE("file"),; + FILE("FILE"),; private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatInputMessageRole.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatInputMessageRole.java index 7b69b458..74a248a1 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatInputMessageRole.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatInputMessageRole.java @@ -10,8 +10,8 @@ import java.util.Optional; public enum PlatformChatInputMessageRole { - USER("user"), - ASSISTANT("assistant"); + USER("USER"), + ASSISTANT("ASSISTANT"); @JsonValue private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputMessageRole.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputMessageRole.java index 28cbe96f..8a818b42 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputMessageRole.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputMessageRole.java @@ -21,7 +21,7 @@ */ public class PlatformChatOutputMessageRole { - public static final PlatformChatOutputMessageRole ASSISTANT = new PlatformChatOutputMessageRole("assistant"); + public static final PlatformChatOutputMessageRole ASSISTANT = new PlatformChatOutputMessageRole("ASSISTANT"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -95,20 +95,20 @@ public static PlatformChatOutputMessageRole[] values() { private static final Map createValuesMap() { Map map = new LinkedHashMap<>(); - map.put("assistant", ASSISTANT); + map.put("ASSISTANT", ASSISTANT); return map; } private static final Map createEnumsMap() { Map map = new HashMap<>(); - map.put("assistant", PlatformChatOutputMessageRoleEnum.ASSISTANT); + map.put("ASSISTANT", PlatformChatOutputMessageRoleEnum.ASSISTANT); return map; } public enum PlatformChatOutputMessageRoleEnum { - ASSISTANT("assistant"),; + ASSISTANT("ASSISTANT"),; private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputMessageType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputMessageType.java index ea96a39e..6127a9fa 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputMessageType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputMessageType.java @@ -21,7 +21,7 @@ */ public class PlatformChatOutputMessageType { - public static final PlatformChatOutputMessageType MESSAGE = new PlatformChatOutputMessageType("message"); + public static final PlatformChatOutputMessageType MESSAGE = new PlatformChatOutputMessageType("MESSAGE"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -95,20 +95,20 @@ public static PlatformChatOutputMessageType[] values() { private static final Map createValuesMap() { Map map = new LinkedHashMap<>(); - map.put("message", MESSAGE); + map.put("MESSAGE", MESSAGE); return map; } private static final Map createEnumsMap() { Map map = new HashMap<>(); - map.put("message", PlatformChatOutputMessageTypeEnum.MESSAGE); + map.put("MESSAGE", PlatformChatOutputMessageTypeEnum.MESSAGE); return map; } public enum PlatformChatOutputMessageTypeEnum { - MESSAGE("message"),; + MESSAGE("MESSAGE"),; private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputTextContentType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputTextContentType.java index 394fc66d..bde6402a 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputTextContentType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatOutputTextContentType.java @@ -21,7 +21,7 @@ */ public class PlatformChatOutputTextContentType { - public static final PlatformChatOutputTextContentType OUTPUT_TEXT = new PlatformChatOutputTextContentType("output_text"); + public static final PlatformChatOutputTextContentType OUTPUT_TEXT = new PlatformChatOutputTextContentType("OUTPUT_TEXT"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -95,20 +95,20 @@ public static PlatformChatOutputTextContentType[] values() { private static final Map createValuesMap() { Map map = new LinkedHashMap<>(); - map.put("output_text", OUTPUT_TEXT); + map.put("OUTPUT_TEXT", OUTPUT_TEXT); return map; } private static final Map createEnumsMap() { Map map = new HashMap<>(); - map.put("output_text", PlatformChatOutputTextContentTypeEnum.OUTPUT_TEXT); + map.put("OUTPUT_TEXT", PlatformChatOutputTextContentTypeEnum.OUTPUT_TEXT); return map; } public enum PlatformChatOutputTextContentTypeEnum { - OUTPUT_TEXT("output_text"),; + OUTPUT_TEXT("OUTPUT_TEXT"),; private final String value; diff --git a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatPersonSourceType.java b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatPersonSourceType.java index 8bad9407..c15c4e88 100644 --- a/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatPersonSourceType.java +++ b/src/main/java/com/glean/api_client/glean_api_client/models/components/PlatformChatPersonSourceType.java @@ -21,7 +21,7 @@ */ public class PlatformChatPersonSourceType { - public static final PlatformChatPersonSourceType PERSON = new PlatformChatPersonSourceType("person"); + public static final PlatformChatPersonSourceType PERSON = new PlatformChatPersonSourceType("PERSON"); // This map will grow whenever a Color gets created with a new // unrecognized value (a potential memory leak if the user is not @@ -95,20 +95,20 @@ public static PlatformChatPersonSourceType[] values() { private static final Map createValuesMap() { Map map = new LinkedHashMap<>(); - map.put("person", PERSON); + map.put("PERSON", PERSON); return map; } private static final Map createEnumsMap() { Map map = new HashMap<>(); - map.put("person", PlatformChatPersonSourceTypeEnum.PERSON); + map.put("PERSON", PlatformChatPersonSourceTypeEnum.PERSON); return map; } public enum PlatformChatPersonSourceTypeEnum { - PERSON("person"),; + PERSON("PERSON"),; private final String value;