Skip to content
Merged
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
162 changes: 82 additions & 80 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 @@ -35,7 +35,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
typescript:
version: 0.20.1
version: 0.20.2
acceptHeaderEnum: true
additionalDependencies:
dependencies: {}
Expand Down
51 changes: 41 additions & 10 deletions .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ openapi: 3.1.0
info:
version: "0.9.0"
title: Glean API
x-source-commit-sha: 5385fd04e94476a27a2fbb6d7dc806af5c4d61c8
x-open-api-commit-sha: 78c3048aaa90e6293ba0522adee1866a5613da27
x-source-commit-sha: 6c454c6b185ebe58e74e781a36041222f47897e0
x-open-api-commit-sha: 0df5939226dc378b392825655b036df1e08909a7
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 Down Expand Up @@ -90,6 +90,7 @@ paths:
name: agent_id
description: ID of the agent to retrieve.
required: true
example: "{agent_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -134,6 +135,7 @@ paths:
name: agent_id
description: ID of the agent whose schemas should be retrieved.
required: true
example: "{agent_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -186,6 +188,7 @@ paths:
name: agent_id
description: ID of the agent to run.
required: true
example: "{agent_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -586,6 +589,7 @@ paths:
in: path
required: true
description: Glean skill ID.
example: "{skill_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -643,6 +647,7 @@ paths:
in: path
required: true
description: Glean skill ID.
example: "{skill_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -685,6 +690,7 @@ paths:
in: path
required: true
description: Glean skill ID.
example: "{skill_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -732,6 +738,7 @@ paths:
in: path
required: true
description: Glean skill ID.
example: "{skill_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -785,6 +792,7 @@ paths:
in: path
required: true
description: ID of the GitHub-imported skill to sync.
example: "{skill_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -836,6 +844,7 @@ paths:
in: path
required: true
description: Glean skill ID.
example: "{skill_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -893,6 +902,7 @@ paths:
in: path
required: true
description: Glean skill ID.
example: "{skill_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -955,13 +965,15 @@ paths:
in: path
required: true
description: Glean skill ID.
example: "{skill_id}"
schema:
type: string
minLength: 1
- name: version
in: path
required: true
description: Major version number.
example: 1
schema:
type: integer
minimum: 1
Expand Down Expand Up @@ -1009,13 +1021,15 @@ paths:
in: path
required: true
description: Glean skill ID.
example: "{skill_id}"
schema:
type: string
minLength: 1
- name: version
in: path
required: true
description: Major version number.
example: 1
schema:
type: integer
minimum: 1
Expand Down Expand Up @@ -1325,6 +1339,7 @@ paths:
name: trigger_id
description: ID of the trigger to retrieve.
required: true
example: "{trigger_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -1372,6 +1387,7 @@ paths:
name: trigger_id
description: ID of the trigger to update.
required: true
example: "{trigger_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -1426,6 +1442,7 @@ paths:
name: trigger_id
description: ID of the trigger to delete.
required: true
example: "{trigger_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -1469,6 +1486,7 @@ paths:
name: trigger_id
description: ID of the trigger whose events to search.
required: true
example: "{trigger_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -1585,6 +1603,7 @@ paths:
name: preset_id
description: ID of the preset to retrieve.
required: true
example: "{preset_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -1632,13 +1651,15 @@ paths:
name: preset_id
description: ID of the preset the input belongs to.
required: true
example: "{preset_id}"
schema:
type: string
minLength: 1
- in: query
name: field
description: Field identifier of the input whose values to list.
required: true
example: "{field}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -1693,6 +1714,7 @@ paths:
name: preset_id
description: ID of the preset to preview.
required: true
example: "{preset_id}"
schema:
type: string
minLength: 1
Expand Down Expand Up @@ -8279,14 +8301,6 @@ components:
- query
example:
query: quarterly planning 2026
datasources:
- confluence
- google_drive
filters:
- field: type
values:
- spreadsheet
- presentation
properties:
query:
type: string
Expand Down Expand Up @@ -8589,6 +8603,12 @@ components:
required:
- preset_id
- delivery
example:
preset_id: GITHUB_1
inputs:
repository: "{repository}"
delivery:
webhook_url: https://example.com/webhook
properties:
preset_id:
type: string
Expand Down Expand Up @@ -8760,6 +8780,11 @@ components:
type: object
additionalProperties: false
description: Partial update. Only the supplied fields are changed.
example:
inputs:
repository: "{repository}"
delivery:
webhook_url: https://example.com/webhook
properties:
status:
$ref: "#/components/schemas/PlatformTriggerStatus"
Expand All @@ -8778,6 +8803,8 @@ components:
PlatformTriggerEventSearchRequest:
type: object
additionalProperties: false
example:
page_size: 10
properties:
page_size:
type: integer
Expand Down Expand Up @@ -9044,6 +9071,10 @@ components:
PlatformTriggerPresetEventSearchRequest:
type: object
additionalProperties: false
example:
inputs:
repository: "{repository}"
page_size: 10
properties:
inputs:
type: object
Expand Down
31 changes: 9 additions & 22 deletions .speakeasy/tests.arazzo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164692,14 +164692,6 @@ workflows:
requestBody:
contentType: application/json
payload:
datasources:
- confluence
- google_drive
filters:
- field: type
values:
- spreadsheet
- presentation
page_size: 10
query: quarterly planning 2026
successCriteria:
Expand Down Expand Up @@ -165182,13 +165174,9 @@ workflows:
contentType: application/json
payload:
delivery:
auth:
secret: secret_test_123
type: BEARER
webhook_url: https://customer.app/webhook
description: Reviews I am tagged on, sent to my team's review channel
webhook_url: https://example.com/webhook
inputs:
repository: acme/payments-api
repository: '{repository}'
preset_id: GITHUB_1
successCriteria:
- condition: $statusCode == 201
Expand Down Expand Up @@ -165245,14 +165233,9 @@ workflows:
contentType: application/json
payload:
delivery:
auth:
secret: secret_test_123
type: BEARER
webhook_url: https://customer.app/webhook
description: Reviews I am tagged on, sent to my team's review channel
webhook_url: https://example.com/webhook
inputs:
repository: acme/payments-api
status: ENABLED
repository: '{repository}'
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
Expand All @@ -165277,6 +165260,10 @@ workflows:
condition: |
{"results":[{"event_type":"DOCUMENT_CHANGE","datasource":"GITHUB","reason":"REVIEW_REQUESTED","doc_type":"pull","doc_id":"<id>","view_url":"https://silent-omelet.biz","title":"<value>","event_time":"2024-06-12T22:23:25.274Z"}],"has_more":false,"request_id":"<id>"}
type: simple
requestBody:
contentType: application/json
payload:
page_size: 10
x-speakeasy-test-group: triggers
x-speakeasy-test-rebuild: true
- workflowId: platform-trigger-presets-list
Expand Down Expand Up @@ -165345,7 +165332,7 @@ workflows:
contentType: application/json
payload:
inputs:
repository: acme/payments-api
repository: '{repository}'
page_size: 10
successCriteria:
- condition: $statusCode == 200
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ speakeasyVersion: 1.796.3
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:2b3f26244cb020a2b993f2ab0e89b609ddb1b9de5405cfd6b4f8706080a5a054
sourceBlobDigest: sha256:23c5ad26db734cb51ec976cb1d9eca9d671b5482e8f290e98cf6b06ad4725d5a
sourceRevisionDigest: sha256:e247e871123d34059c563050f008462386b91706ae3dff64ae6d76ba1db41c47
sourceBlobDigest: sha256:492a86ef598c2a97eeabd40c94fcbbdfe57c36e0381cf8bb18d91b8f6f8f135f
tags:
- latest
Glean Client API:
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:2b3f26244cb020a2b993f2ab0e89b609ddb1b9de5405cfd6b4f8706080a5a054
sourceBlobDigest: sha256:23c5ad26db734cb51ec976cb1d9eca9d671b5482e8f290e98cf6b06ad4725d5a
sourceRevisionDigest: sha256:e247e871123d34059c563050f008462386b91706ae3dff64ae6d76ba1db41c47
sourceBlobDigest: sha256:492a86ef598c2a97eeabd40c94fcbbdfe57c36e0381cf8bb18d91b8f6f8f135f
codeSamplesNamespace: glean-api-specs-typescript-code-samples
codeSamplesRevisionDigest: sha256:530ccf3adcf17c36d6baddaf4e156ae128d474bce63563bdbe7995152d9cb760
codeSamplesRevisionDigest: sha256:37d8a1ee10aad5726f24ee15c09570bea21e19071ab41fdd2c9035040918a3be
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
8 changes: 4 additions & 4 deletions REACT_QUERY.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ from TanStack Query.
import { useAgentsGet } from "@gleanwork/api-client/react-query/agentsGet.js";

export function Example() {
const { data, error, status } = useAgentsGet("<id>");
const { data, error, status } = useAgentsGet("{agent_id}");

// Render the UI here...
}
Expand All @@ -71,7 +71,7 @@ import { useAgentsGet } from "@gleanwork/api-client/react-query/agentsGet.js";
export function ExampleWithOptions() {
const [enabled, setEnabled] = useState(true);
const { data, error, status } = useAgentsGet(
"<id>",
"{agent_id}",
{
// TanStack Query options:
enabled,
Expand Down Expand Up @@ -256,7 +256,7 @@ export function App() {
}

function Example() {
const { data } = useAgentsGetSuspense("<id>");
const { data } = useAgentsGetSuspense("{agent_id}");

// Render the UI here...
}
Expand Down Expand Up @@ -284,7 +284,7 @@ export default async function Page() {
apiToken: process.env["GLEAN_API_TOKEN"] ?? "",
});

await prefetchAgentsGet(queryClient, glean, "<id>");
await prefetchAgentsGet(queryClient, glean, "{agent_id}");

return (
// HydrationBoundary is a Client Component, so hydration will happen there.
Expand Down
Loading
Loading