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
176 changes: 108 additions & 68 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

5 changes: 4 additions & 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.15.0
version: 0.16.0
acceptHeaderEnum: true
additionalDependencies:
dependencies: {}
Expand Down Expand Up @@ -74,6 +74,7 @@ typescript:
./hooks/*.js: ./src/hooks/*.ts
additionalScripts: {}
alwaysIncludeInboundAndOutbound: false
apiPromiseHelpers: false
author: Speakeasy
baseErrorName: GleanBaseError
clientServerStatusCodesAsErrors: true
Expand All @@ -84,6 +85,7 @@ typescript:
enableReactQuery: true
enumFormat: union
envVarPrefix: GLEAN
eventStreamClassName: EventStream
exportZodModelNamespace: false
fixEnumNameSanitization: false
flatAdditionalProperties: false
Expand Down Expand Up @@ -116,6 +118,7 @@ typescript:
preApplyUnionDiscriminators: true
preserveModelFieldNames: false
privateIdentifierPrefix: '#'
requestExtras: false
responseFormat: flat
sseFlatResponse: false
templateVersion: v2
Expand Down
183 changes: 121 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: cf15fd506176731ed4902240d191c4b188abe40b
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: 17892576626fe616bf9f0ca9da2fce86a173abc3
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 Expand Up @@ -11639,6 +11692,12 @@ components:
rank:
type: integer
description: Rank of the result. Rank is suggested by server. Client side rank may differ.
placementReason:
type: string
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.
FeedResponse:
required:
- serverTimestamp
Expand Down
16 changes: 16 additions & 0 deletions .speakeasy/tests.arazzo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -164589,3 +164589,19 @@ workflows:
type: simple
x-speakeasy-test-group: Datasources
x-speakeasy-test-rebuild: true
- workflowId: createAgent
steps:
- stepId: test
operationId: createAgent
requestBody:
contentType: application/json
payload: {}
successCriteria:
- condition: $statusCode == 200
- condition: $response.header.Content-Type == application/json
- context: $response.body
condition: |
{"workflow":{"author":{"name":"George Clooney","obfuscatedId":"abc123"},"lastDraftSavedBy":{"name":"George Clooney","obfuscatedId":"abc123"},"lastUpdatedBy":{"name":"George Clooney","obfuscatedId":"abc123"}}}
type: simple
x-speakeasy-test-group: Agents
x-speakeasy-test-rebuild: true
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.778.0
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:847b1f126f78c86bb63c1c27b6053ba6a9afe8855aab3e82d1f7f71501a5e840
sourceBlobDigest: sha256:b685acc261c79f1c7579b236eaff1ea63982eb1f4be4c318bd6c9a24998c6132
sourceRevisionDigest: sha256:480b2df77c4b26eed2339eb9d3a2ad6614664268a99605cb246c959e030c5fe5
sourceBlobDigest: sha256:d18d0e969d05e3582691328db06528a6ce3273c5c03f221a1d6c095ef6a7b1e7
tags:
- latest
Glean Client API:
Expand All @@ -17,10 +17,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:847b1f126f78c86bb63c1c27b6053ba6a9afe8855aab3e82d1f7f71501a5e840
sourceBlobDigest: sha256:b685acc261c79f1c7579b236eaff1ea63982eb1f4be4c318bd6c9a24998c6132
sourceRevisionDigest: sha256:480b2df77c4b26eed2339eb9d3a2ad6614664268a99605cb246c959e030c5fe5
sourceBlobDigest: sha256:d18d0e969d05e3582691328db06528a6ce3273c5c03f221a1d6c095ef6a7b1e7
codeSamplesNamespace: glean-api-specs-typescript-code-samples
codeSamplesRevisionDigest: sha256:b5791cfb1d37e9b90281cd3010643044add839fc460327b5789a1e216e4c5538
codeSamplesRevisionDigest: sha256:02a92d9a9841dfb2b044ff55dda34078d6ca1a9b0dd6db833fb9c084b04dfa8b
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,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 @@ -537,6 +538,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).

<summary>Available standalone functions</summary>

- [`agentsCreateAgent`](docs/sdks/agents/README.md#createagent) - Create an agent
- [`agentsEditAgent`](docs/sdks/agents/README.md#editagent) - Edit an agent
- [`authenticationCheckdatasourceauth`](docs/sdks/authentication/README.md#checkdatasourceauth) - Check datasource authorization
- [`chatGetChatFile`](docs/sdks/chat/README.md#getchatfile) - Download a chat file
Expand Down Expand Up @@ -697,6 +699,7 @@ To learn about this feature and how to get started, check

<summary>Available React hooks</summary>

- [`useAgentsCreateAgentMutation`](docs/sdks/agents/README.md#createagent) - Create an agent
- [`useAgentsEditAgentMutation`](docs/sdks/agents/README.md#editagent) - Edit an agent
- [`useAuthenticationCheckdatasourceauthMutation`](docs/sdks/authentication/README.md#checkdatasourceauth) - Check datasource authorization
- [`useChatGetChatFile`](docs/sdks/chat/README.md#getchatfile) - Download a chat file
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -768,4 +768,14 @@ Based on:
### Generated
- [typescript v0.15.0] .
### Releases
- [NPM v0.15.0] https://www.npmjs.com/package/@gleanwork/api-client/v/0.15.0 - .
- [NPM v0.15.0] https://www.npmjs.com/package/@gleanwork/api-client/v/0.15.0 - .

## 2026-06-14 03:37:00
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.778.0 (2.904.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.16.0] .
### Releases
- [NPM v0.16.0] https://www.npmjs.com/package/@gleanwork/api-client/v/0.16.0 - .
17 changes: 17 additions & 0 deletions docs/models/components/createworkflowrequest.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# CreateWorkflowRequest

## Example Usage

```typescript
import { CreateWorkflowRequest } from "@gleanwork/api-client/models/components";

let value: CreateWorkflowRequest = {};
```

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- | ------------------------------------------------- |
| `name` | *string* | :heavy_minus_sign: | The name of the workflow. |
| `transient` | *boolean* | :heavy_minus_sign: | Used to create a transient workflow. |
| `parentWorkflowId` | *string* | :heavy_minus_sign: | id of the parent workflow for transient workflows |
Loading
Loading