Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
137 changes: 77 additions & 60 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
java:
version: 0.13.1
version: 0.13.2
additionalDependencies: []
additionalPlugins: []
artifactID: glean-api-client
Expand Down
177 changes: 115 additions & 62 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ openapi: 3.0.0
info:
version: 0.9.0
title: Glean API
x-source-commit-sha: 8041c7f73ed7b1a8bb52c21b4736355b3d3ac705
x-source-commit-sha: e84874c823e13189cd25e4dd8f7ef14ab1e10d1f
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.
Expand All @@ -22,7 +22,7 @@ info:
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
x-logo:
url: https://app.glean.com/images/glean-text2.svg
x-open-api-commit-sha: bcfb45a263878a9d08bcb4117a44e970b498dc10
x-open-api-commit-sha: d497795166198bd2af608417781152c0e227e4eb
x-speakeasy-name: 'Glean API'
servers:
- url: https://{instance}-be.glean.com
Expand Down Expand Up @@ -910,6 +910,40 @@ paths:
description: Internal server error.
security:
- APIToken: []
/rest/api/v1/agents:
post:
tags:
- Agents
summary: Create an agent
description: Create an agent.
operationId: createAgent
x-visibility: Preview
parameters:
- $ref: "#/components/parameters/locale"
- $ref: "#/components/parameters/timezoneOffset"
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/CreateWorkflowRequest"
responses:
"200":
description: Success
content:
application/json:
schema:
$ref: "#/components/schemas/CreateWorkflowResponse"
"400":
description: Bad request
"401":
description: Not Authorized
"403":
description: Forbidden
"500":
description: Internal server error
security:
- APIToken: []
/rest/api/v1/agents/{agent_id}:
get:
tags:
Expand Down Expand Up @@ -6019,6 +6053,8 @@ components:
GroupType:
type: string
description: The type of user group
x-enumDescriptions:
COLLECTION_AUDIENCE: Refers to any viewers of the Collection.
enum:
- DEPARTMENT
- ALL
Expand All @@ -6028,6 +6064,9 @@ components:
- LOCATION
- REGION
- EXTERNAL_GROUP
- COLLECTION_AUDIENCE
x-speakeasy-enum-descriptions:
COLLECTION_AUDIENCE: Refers to any viewers of the Collection.
Group:
required:
- type
Expand Down Expand Up @@ -8990,6 +9029,80 @@ components:
items:
type: string
description: IDs of files to delete.
WorkflowDraftableProperties:
properties:
name:
type: string
description: The name of the workflow.
WorkflowMutableProperties:
type: object
allOf:
- $ref: "#/components/schemas/WorkflowDraftableProperties"
- type: object
CreateWorkflowRequest:
allOf:
- $ref: "#/components/schemas/WorkflowMutableProperties"
- type: object
properties:
transient:
type: boolean
description: Used to create a transient workflow.
parentWorkflowId:
type: string
description: id of the parent workflow for transient workflows
WorkflowMetadata:
allOf:
- type: object
properties:
author:
$ref: "#/components/schemas/Person"
createTimestamp:
type: integer
description: Server Unix timestamp of the creation time.
lastUpdateTimestamp:
type: integer
description: Server Unix timestamp of the last update time.
lastDraftSavedAt:
type: integer
description: Server Unix timestamp of the last time the draft was saved.
lastDraftSavedBy:
description: The person who last saved the draft.
$ref: "#/components/schemas/Person"
lastDraftGitAuthorId:
type: string
description: ID of the VCS user (e.g. GitHub username) who last saved the draft. Set only by the draft save path via the external Git integration API.
lastUpdatedBy:
$ref: "#/components/schemas/Person"
AttributionProperties: {}
Workflow:
allOf:
- $ref: "#/components/schemas/PermissionedObject"
- $ref: "#/components/schemas/WorkflowMutableProperties"
- $ref: "#/components/schemas/WorkflowMetadata"
- $ref: "#/components/schemas/AttributionProperties"
- type: object
properties:
id:
type: string
description: The ID of the workflow.
verified:
type: boolean
readOnly: true
description: When present, indicates this workflow is admin-verified. Set via the dedicated admin settings endpoint, not by regular edits.
showOrganizationAsAuthor:
type: boolean
readOnly: true
description: When true, displays organization name instead of author name in agent card. Set via the dedicated admin settings endpoint, not by regular edits.
WorkflowResult:
type: object
required:
- workflow
properties:
workflow:
$ref: "#/components/schemas/Workflow"
CreateWorkflowResponse:
allOf:
- $ref: "#/components/schemas/WorkflowResult"
Agent:
title: Agent
type: object
Expand Down Expand Up @@ -9042,16 +9155,6 @@ components:
message:
type: string
description: Client-facing error message describing what went wrong
WorkflowDraftableProperties:
properties:
name:
type: string
description: The name of the workflow.
WorkflowMutableProperties:
type: object
allOf:
- $ref: "#/components/schemas/WorkflowDraftableProperties"
- type: object
EditWorkflowRequest:
allOf:
- $ref: "#/components/schemas/WorkflowMutableProperties"
Expand Down Expand Up @@ -11310,7 +11413,6 @@ components:
description: A list of removed user roles for the Workflow.
items:
$ref: "#/components/schemas/UserRoleSpecification"
AttributionProperties: {}
PromptTemplate:
allOf:
- $ref: "#/components/schemas/PromptTemplateMutableProperties"
Expand Down Expand Up @@ -11386,55 +11488,6 @@ components:
runCount:
$ref: "#/components/schemas/CountInfo"
description: This tracks how many times this prompt template was run. If user runs a prompt template after modifying the original one, it still counts as a run for the original template.
WorkflowMetadata:
allOf:
- type: object
properties:
author:
$ref: "#/components/schemas/Person"
createTimestamp:
type: integer
description: Server Unix timestamp of the creation time.
lastUpdateTimestamp:
type: integer
description: Server Unix timestamp of the last update time.
lastDraftSavedAt:
type: integer
description: Server Unix timestamp of the last time the draft was saved.
lastDraftSavedBy:
description: The person who last saved the draft.
$ref: "#/components/schemas/Person"
lastDraftGitAuthorId:
type: string
description: ID of the VCS user (e.g. GitHub username) who last saved the draft. Set only by the draft save path via the external Git integration API.
lastUpdatedBy:
$ref: "#/components/schemas/Person"
Workflow:
allOf:
- $ref: "#/components/schemas/PermissionedObject"
- $ref: "#/components/schemas/WorkflowMutableProperties"
- $ref: "#/components/schemas/WorkflowMetadata"
- $ref: "#/components/schemas/AttributionProperties"
- type: object
properties:
id:
type: string
description: The ID of the workflow.
verified:
type: boolean
readOnly: true
description: When present, indicates this workflow is admin-verified. Set via the dedicated admin settings endpoint, not by regular edits.
showOrganizationAsAuthor:
type: boolean
readOnly: true
description: When true, displays organization name instead of author name in agent card. Set via the dedicated admin settings endpoint, not by regular edits.
WorkflowResult:
type: object
required:
- workflow
properties:
workflow:
$ref: "#/components/schemas/Workflow"
UserActivity:
properties:
actor:
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
speakeasyVersion: 1.771.0
speakeasyVersion: 1.776.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:847b1f126f78c86bb63c1c27b6053ba6a9afe8855aab3e82d1f7f71501a5e840
sourceBlobDigest: sha256:b685acc261c79f1c7579b236eaff1ea63982eb1f4be4c318bd6c9a24998c6132
sourceRevisionDigest: sha256:3def0dc0b004295449e619031ef8c25dec022e656ea557da7d1becbfdcc4ac2a
sourceBlobDigest: sha256:0c77b5cc4099e7543e10b0b009fc99e1973ee18ad9d1f5cc495f05bc281a19a8
tags:
- latest
Glean-OAS:
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:847b1f126f78c86bb63c1c27b6053ba6a9afe8855aab3e82d1f7f71501a5e840
sourceBlobDigest: sha256:b685acc261c79f1c7579b236eaff1ea63982eb1f4be4c318bd6c9a24998c6132
sourceRevisionDigest: sha256:3def0dc0b004295449e619031ef8c25dec022e656ea557da7d1becbfdcc4ac2a
sourceBlobDigest: sha256:0c77b5cc4099e7543e10b0b009fc99e1973ee18ad9d1f5cc495f05bc281a19a8
codeSamplesNamespace: glean-api-specs-java-code-samples
codeSamplesRevisionDigest: sha256:23fd3d90cd31a167fd68d0b445256a33d9ed6f54ac66a8602d421692ecf9aa78
codeSamplesRevisionDigest: sha256:e7986a33af64c6ac98803edc669175023f6a308f7135a730ef2e63c2256d7434
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ The samples below show how a published SDK artifact is used:

Gradle:
```groovy
implementation 'com.glean.api-client:glean-api-client:0.13.1'
implementation 'com.glean.api-client:glean-api-client:0.13.2'
```

Maven:
```xml
<dependency>
<groupId>com.glean.api-client</groupId>
<artifactId>glean-api-client</artifactId>
<version>0.13.1</version>
<version>0.13.2</version>
</dependency>
```

Expand Down Expand Up @@ -410,6 +410,7 @@ For more information on obtaining the appropriate token type, please contact you

### [Agents](docs/sdks/agents/README.md)

* [createAgent](docs/sdks/agents/README.md#createagent) - Create an agent
* [editAgent](docs/sdks/agents/README.md#editagent) - Edit an agent

### [Authentication](docs/sdks/authentication/README.md)
Expand Down Expand Up @@ -745,10 +746,10 @@ public class Application {
many more subclasses in the JDK platform).

**Inherit from [`GleanError`](./src/main/java/models/errors/GleanError.java)**:
* [`com.glean.api_client.glean_api_client.models.errors.ErrorResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorResponse.java): Error response returned for failed requests. Applicable to 9 of 129 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse.java): Error response for custom metadata operations. Applicable to 5 of 129 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.CollectionError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.CollectionError.java): Semantic error. Status code `422`. Applicable to 3 of 129 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.GleanDataError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.GleanDataError.java): Forbidden. Applicable to 2 of 129 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.ErrorResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorResponse.java): Error response returned for failed requests. Applicable to 9 of 130 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.ErrorInfoResponse.java): Error response for custom metadata operations. Applicable to 5 of 130 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.CollectionError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.CollectionError.java): Semantic error. Status code `422`. Applicable to 3 of 130 methods.*
* [`com.glean.api_client.glean_api_client.models.errors.GleanDataError`](./src/main/java/models/errors/com.glean.api_client.glean_api_client.models.errors.GleanDataError.java): Forbidden. Applicable to 2 of 130 methods.*


</details>
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -748,4 +748,14 @@ Based on:
### Generated
- [java v0.13.1] .
### Releases
- [Maven Central v0.13.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.13.1 - .
- [Maven Central v0.13.1] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.13.1 - .

## 2026-06-11 04:43:13
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.776.0 (2.900.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [java v0.13.2] .
### Releases
- [Maven Central v0.13.2] https://central.sonatype.com/artifact/com.glean.api-client/glean-api-client/0.13.2 - .
42 changes: 0 additions & 42 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ plugins {
id 'signing'
// V2 publishing plugin (Sonatype Central Portal)
id 'cl.franciscosolis.sonatype-central-upload' version '1.0.3'
id "io.spring.dependency-management" version "1.1.6" apply false
}

compileJava.options.encoding = "UTF-8"
Expand Down Expand Up @@ -85,47 +84,6 @@ dependencies {
api 'org.reactivestreams:reactive-streams:1.0.4'
}

ext {
springBootVersion = '2.7.18'
}

subprojects {
if (name in [
'glean-api-client-spring-boot-autoconfigure',
'glean-api-client-spring-boot-starter'
]) {
// Ensure subprojects use the same group and version as root project
group = rootProject.group
version = rootProject.version

apply {
plugin "java-library"
plugin "io.spring.dependency-management"
plugin "maven-publish"
plugin "signing"
plugin "cl.franciscosolis.sonatype-central-upload"
}
dependencyManagement {
imports {
mavenBom "org.springframework.boot:spring-boot-dependencies:${rootProject.springBootVersion}"
}
}
repositories {
mavenCentral()
}
java {
withSourcesJar()
withJavadocJar()
}
tasks.withType(JavaCompile).configureEach {
options.release = 11
}

// Apply publishing configuration to all subprojects - they'll check for publishingConfig internally
apply from: rootProject.file('publishing.gradle')
}
}

ext {
publishingConfig = [
groupId: group,
Expand Down
Loading