Skip to content

Commit 8e74c97

Browse files
Merge pull request #99 from gleanwork/speakeasy-sdk-regen-1780711317
chore: 🐝 Update SDK - Generate 0.13.2
2 parents 4fa9a12 + 567b89a commit 8e74c97

50 files changed

Lines changed: 2315 additions & 1440 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.speakeasy/gen.lock

Lines changed: 115 additions & 90 deletions
Large diffs are not rendered by default.

.speakeasy/gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ generation:
3030
generateNewTests: false
3131
skipResponseBodyAssertions: false
3232
java:
33-
version: 0.13.1
33+
version: 0.13.2
3434
additionalDependencies: []
3535
additionalPlugins: []
3636
artifactID: glean-api-client

.speakeasy/glean-merged-spec.yaml

Lines changed: 133 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22
info:
33
version: 0.9.0
44
title: Glean API
5-
x-source-commit-sha: 8041c7f73ed7b1a8bb52c21b4736355b3d3ac705
5+
x-source-commit-sha: 52a3263df71e58b10c98865e6b4a6f9a29f293db
66
description: |
77
# Introduction
88
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.
@@ -22,7 +22,7 @@ info:
2222
These API clients provide type-safe, idiomatic interfaces for working with Glean IndexingAPIs in your language of choice.
2323
x-logo:
2424
url: https://app.glean.com/images/glean-text2.svg
25-
x-open-api-commit-sha: bcfb45a263878a9d08bcb4117a44e970b498dc10
25+
x-open-api-commit-sha: d3cdeccde1b5f13944a9e3958f651e8f61c667d6
2626
x-speakeasy-name: 'Glean API'
2727
servers:
2828
- url: https://{instance}-be.glean.com
@@ -910,6 +910,40 @@ paths:
910910
description: Internal server error.
911911
security:
912912
- APIToken: []
913+
/rest/api/v1/agents:
914+
post:
915+
tags:
916+
- Agents
917+
summary: Create an agent
918+
description: Create an agent.
919+
operationId: createAgent
920+
x-visibility: Preview
921+
parameters:
922+
- $ref: "#/components/parameters/locale"
923+
- $ref: "#/components/parameters/timezoneOffset"
924+
requestBody:
925+
required: true
926+
content:
927+
application/json:
928+
schema:
929+
$ref: "#/components/schemas/CreateWorkflowRequest"
930+
responses:
931+
"200":
932+
description: Success
933+
content:
934+
application/json:
935+
schema:
936+
$ref: "#/components/schemas/CreateWorkflowResponse"
937+
"400":
938+
description: Bad request
939+
"401":
940+
description: Not Authorized
941+
"403":
942+
description: Forbidden
943+
"500":
944+
description: Internal server error
945+
security:
946+
- APIToken: []
913947
/rest/api/v1/agents/{agent_id}:
914948
get:
915949
tags:
@@ -1107,7 +1141,7 @@ paths:
11071141
text/event-stream:
11081142
schema:
11091143
type: string
1110-
description: The server will send a stream of events in server-sent events (SSE) format.
1144+
description: The server will send a stream of events in server-sent events (SSE) format. If execution fails after the stream has started, the stream may terminate with an error message in a normal `message` event.
11111145
example: |
11121146
id: 1
11131147
event: message
@@ -4675,6 +4709,8 @@ components:
46754709
APIToken:
46764710
scheme: bearer
46774711
type: http
4712+
description: >-
4713+
HTTP bearer token. Accepts a Glean-issued API token, an OAuth access token from the Glean OAuth Authorization Server (including Dynamic Client Registration clients), or an OAuth access token issued by an external identity provider. External-IdP OAuth tokens must also include the `X-Glean-Auth-Type: OAUTH` request header. OAuth is supported on the Client API only; the Indexing API requires a Glean-issued token.
46784714
schemas:
46794715
ActivityEventParams:
46804716
properties:
@@ -6019,6 +6055,8 @@ components:
60196055
GroupType:
60206056
type: string
60216057
description: The type of user group
6058+
x-enumDescriptions:
6059+
COLLECTION_AUDIENCE: Refers to any viewers of the Collection.
60226060
enum:
60236061
- DEPARTMENT
60246062
- ALL
@@ -6028,6 +6066,9 @@ components:
60286066
- LOCATION
60296067
- REGION
60306068
- EXTERNAL_GROUP
6069+
- COLLECTION_AUDIENCE
6070+
x-speakeasy-enum-descriptions:
6071+
COLLECTION_AUDIENCE: Refers to any viewers of the Collection.
60316072
Group:
60326073
required:
60336074
- type
@@ -8990,6 +9031,80 @@ components:
89909031
items:
89919032
type: string
89929033
description: IDs of files to delete.
9034+
WorkflowDraftableProperties:
9035+
properties:
9036+
name:
9037+
type: string
9038+
description: The name of the workflow.
9039+
WorkflowMutableProperties:
9040+
type: object
9041+
allOf:
9042+
- $ref: "#/components/schemas/WorkflowDraftableProperties"
9043+
- type: object
9044+
CreateWorkflowRequest:
9045+
allOf:
9046+
- $ref: "#/components/schemas/WorkflowMutableProperties"
9047+
- type: object
9048+
properties:
9049+
transient:
9050+
type: boolean
9051+
description: Used to create a transient workflow.
9052+
parentWorkflowId:
9053+
type: string
9054+
description: id of the parent workflow for transient workflows
9055+
WorkflowMetadata:
9056+
allOf:
9057+
- type: object
9058+
properties:
9059+
author:
9060+
$ref: "#/components/schemas/Person"
9061+
createTimestamp:
9062+
type: integer
9063+
description: Server Unix timestamp of the creation time.
9064+
lastUpdateTimestamp:
9065+
type: integer
9066+
description: Server Unix timestamp of the last update time.
9067+
lastDraftSavedAt:
9068+
type: integer
9069+
description: Server Unix timestamp of the last time the draft was saved.
9070+
lastDraftSavedBy:
9071+
description: The person who last saved the draft.
9072+
$ref: "#/components/schemas/Person"
9073+
lastDraftGitAuthorId:
9074+
type: string
9075+
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.
9076+
lastUpdatedBy:
9077+
$ref: "#/components/schemas/Person"
9078+
AttributionProperties: {}
9079+
Workflow:
9080+
allOf:
9081+
- $ref: "#/components/schemas/PermissionedObject"
9082+
- $ref: "#/components/schemas/WorkflowMutableProperties"
9083+
- $ref: "#/components/schemas/WorkflowMetadata"
9084+
- $ref: "#/components/schemas/AttributionProperties"
9085+
- type: object
9086+
properties:
9087+
id:
9088+
type: string
9089+
description: The ID of the workflow.
9090+
verified:
9091+
type: boolean
9092+
readOnly: true
9093+
description: When present, indicates this workflow is admin-verified. Set via the dedicated admin settings endpoint, not by regular edits.
9094+
showOrganizationAsAuthor:
9095+
type: boolean
9096+
readOnly: true
9097+
description: When true, displays organization name instead of author name in agent card. Set via the dedicated admin settings endpoint, not by regular edits.
9098+
WorkflowResult:
9099+
type: object
9100+
required:
9101+
- workflow
9102+
properties:
9103+
workflow:
9104+
$ref: "#/components/schemas/Workflow"
9105+
CreateWorkflowResponse:
9106+
allOf:
9107+
- $ref: "#/components/schemas/WorkflowResult"
89939108
Agent:
89949109
title: Agent
89959110
type: object
@@ -9042,16 +9157,6 @@ components:
90429157
message:
90439158
type: string
90449159
description: Client-facing error message describing what went wrong
9045-
WorkflowDraftableProperties:
9046-
properties:
9047-
name:
9048-
type: string
9049-
description: The name of the workflow.
9050-
WorkflowMutableProperties:
9051-
type: object
9052-
allOf:
9053-
- $ref: "#/components/schemas/WorkflowDraftableProperties"
9054-
- type: object
90559160
EditWorkflowRequest:
90569161
allOf:
90579162
- $ref: "#/components/schemas/WorkflowMutableProperties"
@@ -11002,6 +11107,7 @@ components:
1100211107
- MID_DAY_CATCH_UP
1100311108
- QUERY_SUGGESTION
1100411109
- COWORK_CUJ_PROMO
11110+
- CARD_STACK_PROMO
1100511111
- WEEKLY_MEETINGS
1100611112
- FOLLOW_UP
1100711113
- MILESTONE_TIMELINE_CHECK
@@ -11310,7 +11416,6 @@ components:
1131011416
description: A list of removed user roles for the Workflow.
1131111417
items:
1131211418
$ref: "#/components/schemas/UserRoleSpecification"
11313-
AttributionProperties: {}
1131411419
PromptTemplate:
1131511420
allOf:
1131611421
- $ref: "#/components/schemas/PromptTemplateMutableProperties"
@@ -11386,55 +11491,6 @@ components:
1138611491
runCount:
1138711492
$ref: "#/components/schemas/CountInfo"
1138811493
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.
11389-
WorkflowMetadata:
11390-
allOf:
11391-
- type: object
11392-
properties:
11393-
author:
11394-
$ref: "#/components/schemas/Person"
11395-
createTimestamp:
11396-
type: integer
11397-
description: Server Unix timestamp of the creation time.
11398-
lastUpdateTimestamp:
11399-
type: integer
11400-
description: Server Unix timestamp of the last update time.
11401-
lastDraftSavedAt:
11402-
type: integer
11403-
description: Server Unix timestamp of the last time the draft was saved.
11404-
lastDraftSavedBy:
11405-
description: The person who last saved the draft.
11406-
$ref: "#/components/schemas/Person"
11407-
lastDraftGitAuthorId:
11408-
type: string
11409-
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.
11410-
lastUpdatedBy:
11411-
$ref: "#/components/schemas/Person"
11412-
Workflow:
11413-
allOf:
11414-
- $ref: "#/components/schemas/PermissionedObject"
11415-
- $ref: "#/components/schemas/WorkflowMutableProperties"
11416-
- $ref: "#/components/schemas/WorkflowMetadata"
11417-
- $ref: "#/components/schemas/AttributionProperties"
11418-
- type: object
11419-
properties:
11420-
id:
11421-
type: string
11422-
description: The ID of the workflow.
11423-
verified:
11424-
type: boolean
11425-
readOnly: true
11426-
description: When present, indicates this workflow is admin-verified. Set via the dedicated admin settings endpoint, not by regular edits.
11427-
showOrganizationAsAuthor:
11428-
type: boolean
11429-
readOnly: true
11430-
description: When true, displays organization name instead of author name in agent card. Set via the dedicated admin settings endpoint, not by regular edits.
11431-
WorkflowResult:
11432-
type: object
11433-
required:
11434-
- workflow
11435-
properties:
11436-
workflow:
11437-
$ref: "#/components/schemas/Workflow"
1143811494
UserActivity:
1143911495
properties:
1144011496
actor:
@@ -11531,6 +11587,7 @@ components:
1153111587
- MID_DAY_CATCH_UP
1153211588
- QUERY_SUGGESTION
1153311589
- COWORK_CUJ_PROMO
11590+
- CARD_STACK_PROMO
1153411591
- WEEKLY_MEETINGS
1153511592
- FOLLOW_UP
1153611593
- MILESTONE_TIMELINE_CHECK
@@ -11619,6 +11676,7 @@ components:
1161911676
- MID_DAY_CATCH_UP
1162011677
- QUERY_SUGGESTION
1162111678
- COWORK_CUJ_PROMO
11679+
- CARD_STACK_PROMO
1162211680
- WEEKLY_MEETINGS
1162311681
- FOLLOW_UP
1162411682
- MILESTONE_TIMELINE_CHECK
@@ -11639,6 +11697,12 @@ components:
1163911697
rank:
1164011698
type: integer
1164111699
description: Rank of the result. Rank is suggested by server. Client side rank may differ.
11700+
placementReason:
11701+
type: string
11702+
enum:
11703+
- ORGANIC
11704+
- PROMO
11705+
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.
1164211706
FeedResponse:
1164311707
required:
1164411708
- serverTimestamp
@@ -14289,7 +14353,12 @@ components:
1428914353
items:
1429014354
type: string
1429114355
description: list of words and phrases to consider as whitelisted content
14292-
description: Terms that are allow-listed during the scans. If any finding picked up by a rule exactly matches a term in the allow-list, it will not be counted as a violation.
14356+
regexes:
14357+
type: array
14358+
items:
14359+
type: string
14360+
description: list of regular expressions whose matches are considered whitelisted content
14361+
description: Terms and regexes that are allow-listed during the scans. If any finding picked up by a rule exactly matches a term, or matches a regex, in the allow-list, it will not be counted as a violation.
1429314362
DlpConfig:
1429414363
properties:
1429514364
version:

.speakeasy/workflow.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
speakeasyVersion: 1.771.0
1+
speakeasyVersion: 1.786.1
22
sources:
33
Glean API:
44
sourceNamespace: glean-api-specs
5-
sourceRevisionDigest: sha256:847b1f126f78c86bb63c1c27b6053ba6a9afe8855aab3e82d1f7f71501a5e840
6-
sourceBlobDigest: sha256:b685acc261c79f1c7579b236eaff1ea63982eb1f4be4c318bd6c9a24998c6132
5+
sourceRevisionDigest: sha256:979b3f1b9f64bbb58a59297a1984e17b9a8e6c7eed1d56fc712f5ffc3376c23d
6+
sourceBlobDigest: sha256:d0cf8a3fb62165cb2a1797291d7213dbfab4e80a9d8435d2ac732046c9effb28
77
tags:
88
- latest
99
Glean-OAS:
@@ -17,10 +17,10 @@ targets:
1717
glean:
1818
source: Glean API
1919
sourceNamespace: glean-api-specs
20-
sourceRevisionDigest: sha256:847b1f126f78c86bb63c1c27b6053ba6a9afe8855aab3e82d1f7f71501a5e840
21-
sourceBlobDigest: sha256:b685acc261c79f1c7579b236eaff1ea63982eb1f4be4c318bd6c9a24998c6132
20+
sourceRevisionDigest: sha256:979b3f1b9f64bbb58a59297a1984e17b9a8e6c7eed1d56fc712f5ffc3376c23d
21+
sourceBlobDigest: sha256:d0cf8a3fb62165cb2a1797291d7213dbfab4e80a9d8435d2ac732046c9effb28
2222
codeSamplesNamespace: glean-api-specs-java-code-samples
23-
codeSamplesRevisionDigest: sha256:23fd3d90cd31a167fd68d0b445256a33d9ed6f54ac66a8602d421692ecf9aa78
23+
codeSamplesRevisionDigest: sha256:e7986a33af64c6ac98803edc669175023f6a308f7135a730ef2e63c2256d7434
2424
workflow:
2525
workflowVersion: 1.0.0
2626
speakeasyVersion: latest

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ The samples below show how a published SDK artifact is used:
6767

6868
Gradle:
6969
```groovy
70-
implementation 'com.glean.api-client:glean-api-client:0.13.1'
70+
implementation 'com.glean.api-client:glean-api-client:0.13.2'
7171
```
7272

7373
Maven:
7474
```xml
7575
<dependency>
7676
<groupId>com.glean.api-client</groupId>
7777
<artifactId>glean-api-client</artifactId>
78-
<version>0.13.1</version>
78+
<version>0.13.2</version>
7979
</dependency>
8080
```
8181

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

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

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

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

747748
**Inherit from [`GleanError`](./src/main/java/models/errors/GleanError.java)**:
748-
* [`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.*
749-
* [`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.*
750-
* [`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.*
751-
* [`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.*
749+
* [`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.*
750+
* [`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.*
751+
* [`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.*
752+
* [`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.*
752753

753754

754755
</details>

0 commit comments

Comments
 (0)