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
293 changes: 214 additions & 79 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.12.38
version: 0.12.39
additionalDependencies: []
additionalPlugins: []
artifactID: glean-api-client
Expand Down
220 changes: 216 additions & 4 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: 0aa266469924048ad422bf6314104f79b477e46a
x-source-commit-sha: 03f10583d7c4014a489e7725831733ecf14b7d60
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: 122e22b59935f3ed61845da28a7c607ebc115c9b
x-open-api-commit-sha: 6ead61f0572c0e5aaba51fea6477eb510c5daa9b
x-speakeasy-name: 'Glean API'
servers:
- url: https://{instance}-be.glean.com
Expand Down Expand Up @@ -4014,6 +4014,93 @@ paths:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-visibility: Preview
/rest/api/v1/datasource/{datasourceInstanceId}/credentialstatus:
get:
operationId: getDatasourceCredentialStatus
summary: Get datasource instance credential status
description: |
Returns the current credential status for a datasource instance. Access is limited to callers with the ADMIN scope; the handler enforces this check.
tags:
- Datasources
security:
- APIToken: []
parameters:
- $ref: '#/components/parameters/datasourceInstanceId'
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/DatasourceCredentialStatusResponse'
"400":
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
"401":
description: Not authorized
"403":
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
"404":
description: Datasource instance not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-visibility: Preview
/rest/api/v1/datasource/{datasourceInstanceId}/credentials:
post:
operationId: rotateDatasourceCredentials
summary: Rotate datasource instance credentials
description: |
Rotates the credentials that a datasource instance uses to connect to its upstream system. Replaces the active credential material with the supplied values and returns the credential status after rotation. Access is limited to callers with the ADMIN scope; the handler enforces this check.
Only keys recognized as credential material for the datasource type may be set in `credentials.values` (e.g. `clientSecret`, `apiToken`, `privateKey`, depending on the configured auth method). Unrecognized keys, or keys that correspond to non-credential configuration, cause a 400; other instance configuration must be updated via PATCH /configure/datasources/{datasourceId}/instances/{instanceId}.
tags:
- Datasources
security:
- APIToken: []
parameters:
- $ref: '#/components/parameters/datasourceInstanceId'
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RotateDatasourceCredentialsRequest'
required: true
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/DatasourceCredentialStatusResponse'
"400":
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
"401":
description: Not authorized
"403":
description: Forbidden
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
"404":
description: Datasource instance not found
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-visibility: Preview
/rest/api/v1/chat#stream:
post:
tags:
Expand Down Expand Up @@ -8709,6 +8796,7 @@ components:
type: string
enum:
- EXISTING_ITEM
- CORRUPT_ITEM
AddCollectionItemsResponse:
properties:
collection:
Expand Down Expand Up @@ -8738,6 +8826,7 @@ components:
- HEIGHT_VIOLATION
- WIDTH_VIOLATION
- NO_PERMISSIONS
- CORRUPT_ITEM
CreateCollectionResponse:
allOf:
- type: object
Expand Down Expand Up @@ -8988,6 +9077,44 @@ components:
dayRange:
$ref: "#/components/schemas/Period"
description: Time period for which Insights are requested.
McpBreakdownInsightsRequest:
properties:
departments:
type: array
items:
type: string
description: Departments for which Insights are requested.
managerIds:
type: array
items:
type: string
description: Manager user IDs whose teams should be filtered for. Empty array means no filtering.
dayRange:
$ref: "#/components/schemas/Period"
description: Time period for which Insights are requested.
breakdownType:
type: string
enum:
- USERS
- HOST_APPLICATIONS
- TOOLS
- SERVERS
description: Type of breakdown to return.
hostApplications:
type: array
items:
type: string
description: Host applications to filter by. Empty array means all host applications.
tools:
type: array
items:
type: string
description: MCP tools to filter by. Empty array means all tools.
servers:
type: array
items:
type: string
description: MCP servers to filter by. Empty array means all servers.
InsightsRequest:
properties:
overviewRequest:
Expand All @@ -9002,6 +9129,8 @@ components:
$ref: "#/components/schemas/AgentsInsightsV2Request"
x-visibility: Public
description: If specified, will return data for the Agents section of the Insights Dashboard.
mcpBreakdownRequest:
$ref: "#/components/schemas/McpBreakdownInsightsRequest"
disablePerUserInsights:
type: boolean
description: If true, suppresses the generation of per-user Insights in the response. Default is false.
Expand Down Expand Up @@ -9052,10 +9181,10 @@ components:
properties:
monthlyActiveUsers:
type: integer
description: Number of current Monthly Active Users, in the specified departments.
description: Number of current Monthly Active Users.
weeklyActiveUsers:
type: integer
description: Number of current Weekly Active Users, in the specified departments.
description: Number of current Weekly Active Users.
InsightsSearchSummary:
allOf:
- $ref: "#/components/schemas/CurrentActiveUsers"
Expand Down Expand Up @@ -9286,6 +9415,33 @@ components:
downvoteCount:
type: integer
description: Total number of downvotes for this agent over the specified time period.
AgentUseCaseInsight:
properties:
useCase:
type: string
description: Use case name
runCount:
type: integer
description: Total number of runs for this use case over the specified time period.
trend:
type: number
format: float
description: Percentage change in runs compared to the previous equivalent time period.
topDepartments:
type: string
description: Comma-separated list of the top departments using this use case.
topAgentId:
type: string
description: ID of the most-used agent for this use case.
topAgentName:
type: string
description: Name of the most-used agent for this use case.
topAgentIcon:
$ref: "#/components/schemas/IconConfig"
description: Icon of the most-used agent for this use case.
topAgentIsDeleted:
type: boolean
description: Indicates whether the top agent has been deleted.
AgentsUsageByDepartmentInsight:
properties:
department:
Expand Down Expand Up @@ -9375,6 +9531,10 @@ components:
type: array
items:
$ref: "#/components/schemas/PerAgentInsight"
topUseCasesInsights:
type: array
items:
$ref: "#/components/schemas/AgentUseCaseInsight"
agentsUsageByDepartmentInsights:
type: array
items:
Expand Down Expand Up @@ -10196,6 +10356,7 @@ components:
- FOLLOW_UP
- MILESTONE_TIMELINE_CHECK
- PROJECT_DISCUSSION_DIGEST
- PROJECT_FOCUS_BLOCK
- PROJECT_NEXT_STEP
description: Categories of content requested. An allowlist gives flexibility to request content separately or together.
requestOptions:
Expand Down Expand Up @@ -10533,6 +10694,7 @@ components:
- SHORTCUTS_TYPE
- SLIDE_TYPE
- SPREADSHEET_TYPE
- INLINE_HTML_TYPE
- WORKFLOWS_TYPE
FavoriteInfo:
type: object
Expand Down Expand Up @@ -10706,6 +10868,7 @@ components:
- FOLLOW_UP
- MILESTONE_TIMELINE_CHECK
- PROJECT_DISCUSSION_DIGEST
- PROJECT_FOCUS_BLOCK
- PROJECT_NEXT_STEP
description: Type of the justification.
justification:
Expand Down Expand Up @@ -10789,6 +10952,7 @@ components:
- FOLLOW_UP
- MILESTONE_TIMELINE_CHECK
- PROJECT_DISCUSSION_DIGEST
- PROJECT_FOCUS_BLOCK
- PROJECT_NEXT_STEP
description: Category of the result, one of the requested categories in incoming request.
primaryEntry:
Expand Down Expand Up @@ -13841,6 +14005,46 @@ components:
- configuration
description: |
Request to update greenlisted configuration values for a datasource instance. Only keys that are exposed via the public API greenlist may be set.
DatasourceCredentialStatus:
type: string
enum:
- VALID
- VALID_WITH_WARNINGS
- VALIDATING
- INVALID
- MISSING
description: |
Lifecycle state of the credentials installed for a datasource instance. Mirrors the internal admin Status enum so the handler can surface the same health signals already tracked today. EXPIRING_SOON is represented as VALID_WITH_WARNINGS (with detail in `message`); EXPIRED is surfaced as INVALID plus a non-null `expiresAt` in the past.
DatasourceCredentialStatusResponse:
type: object
properties:
status:
$ref: '#/components/schemas/DatasourceCredentialStatus'
lastRotatedAt:
type: string
format: date-time
description: When the credentials were last rotated. Omitted when not known.
expiresAt:
type: string
format: date-time
description: |
When the active credentials expire. Omitted when not known or not applicable to this credential type.
message:
type: string
description: Optional human-readable detail about the current credential status.
required:
- status
description: Status of the credentials currently installed for a datasource instance.
RotateDatasourceCredentialsRequest:
type: object
properties:
credentials:
$ref: '#/components/schemas/DatasourceInstanceConfiguration'
required:
- credentials
description: |
Request to rotate the credentials used by a datasource instance. Replaces the active credential material with the supplied values.
`credentials.values` must contain only keys recognized as credential material for the datasource type (for example `clientSecret` for OAuth, `apiToken` for API-token auth, `privateKey` for certificate auth). Unrecognized keys, or keys that correspond to non-credential configuration, cause a 400; use the configure endpoint to change non-credential config.
ChatRequestStream:
required:
- messages
Expand Down Expand Up @@ -13914,6 +14118,14 @@ components:
schema:
type: string
example: o365sharepoint_abc123
datasourceInstanceId:
name: datasourceInstanceId
in: path
description: The full datasource instance identifier (e.g. o365sharepoint_abc123)
required: true
schema:
type: string
example: o365sharepoint_abc123
responses:
SuccessResponse:
description: OK
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.761.8
speakeasyVersion: 1.761.9
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:5fafd8224d41224b85cbb5f39c686e5da647fadcd8211bc9fae3c0834341dae6
sourceBlobDigest: sha256:884a6119e9d59c15d47e169eaa496571dae1c106d390990aee38a25cb51e42c3
sourceRevisionDigest: sha256:7b6ba2caca499cf578253e645f0d7589959f6b5f2b2a5b6c9a8809b0b8b7ba53
sourceBlobDigest: sha256:2492510a1489222f760fc76cfb55429a67a3597270508f51f102bd89d04b2e34
tags:
- latest
Glean-OAS:
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:5fafd8224d41224b85cbb5f39c686e5da647fadcd8211bc9fae3c0834341dae6
sourceBlobDigest: sha256:884a6119e9d59c15d47e169eaa496571dae1c106d390990aee38a25cb51e42c3
sourceRevisionDigest: sha256:7b6ba2caca499cf578253e645f0d7589959f6b5f2b2a5b6c9a8809b0b8b7ba53
sourceBlobDigest: sha256:2492510a1489222f760fc76cfb55429a67a3597270508f51f102bd89d04b2e34
codeSamplesNamespace: glean-api-specs-java-code-samples
codeSamplesRevisionDigest: sha256:ae9e0d92820a63defd05d413b6e301b7717405a6b9a992c754166897b2d7cb45
codeSamplesRevisionDigest: sha256:8b313f02415b6d8207a31cf9285a19d7c83872589fd5a44f1b0ccd0f503e82f3
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
Loading