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
38 changes: 19 additions & 19 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
lockVersion: 2.0.0
id: 664aaca5-a41f-4434-8f2a-642dba92fe68
management:
docChecksum: e61f09454154d7eb019991c03f6d19eb
docChecksum: 168d09185da75c45f6edca32cb2bc2dd
docVersion: 0.9.0
speakeasyVersion: 1.722.7
generationVersion: 2.832.9
releaseVersion: 0.14.6
configChecksum: 2e4ae2e107a7c4c46e5c93681b7c6430
releaseVersion: 0.14.7
configChecksum: b06f2629547070d2cfd1d03303bd53b6
repoURL: https://github.com/gleanwork/api-client-typescript.git
installationURL: https://github.com/gleanwork/api-client-typescript
published: true
persistentEdits:
generation_id: de845636-3e48-4739-be11-ed855453b7be
pristine_commit_hash: 9a6d8252c042937c6297974ed05d8802055cd6ad
pristine_tree_hash: b7d3346ddc6247b21f25cf1e1922c01e7bbf8c33
generation_id: 892d7f4e-9488-48a6-91f4-326d6d1b3b4f
pristine_commit_hash: 75264de4fd20d49fb7e91bd2666b130c753e73f9
pristine_tree_hash: 0c21dfd90e6925a2720790e8a8b7e272377d663b
features:
typescript:
additionalDependencies: 0.1.0
Expand Down Expand Up @@ -432,8 +432,8 @@ trackedFiles:
pristine_git_object: 630c94f0888410ef52e47247cafb0986dce0300d
docs/models/components/checkdatasourceauthresponse.md:
id: c9e52d770713
last_write_checksum: sha1:bd392f24303f36c80b113f16af339d19e0857d3e
pristine_git_object: 3e54e40aebd33d4e51298d5f6dea02f49d8c81e9
last_write_checksum: sha1:f652ad19175f361e197a065beba7b4d0e12660df
pristine_git_object: 8593bbe5c8a9524dd6d36db6f8e2894f9e47181d
docs/models/components/checkdocumentaccessrequest.md:
id: e202c5bf96ac
last_write_checksum: sha1:8244a3b3a96f003f68e09b7ddb2e1f4680032818
Expand Down Expand Up @@ -2756,12 +2756,12 @@ trackedFiles:
pristine_git_object: 5a2797590d4be351d62915017d5b2a0f853537c8
jsr.json:
id: 7f6ab7767282
last_write_checksum: sha1:343af9a901fc22fe24ef7434cc4af4d715aa9c6d
pristine_git_object: d3899087d6d8e23e17c8113e847ca102dd32ce35
last_write_checksum: sha1:4ff06cc44b374f7cfeb6de6c83a2ae287eff00f8
pristine_git_object: 94384f253516c2630de1fa237932c439e03054d4
package.json:
id: 7030d0b2f71b
last_write_checksum: sha1:f788f26ab3eab6af72a569a70a0b085269d34bd5
pristine_git_object: 34f4501c2c533deda5e3386cb4942ab9e9eba2a9
last_write_checksum: sha1:da35263bc77e5a049e0cfdef868de9017fdd8dcd
pristine_git_object: 9e74a1f5d35d9f4d39134c8a96fb09206057cbf8
src/__tests__/activities.test.ts:
id: 65fa859b8f59
last_write_checksum: sha1:967fae9ee4ae9dd9ee8383b2ce261d26d05d9873
Expand Down Expand Up @@ -3007,7 +3007,7 @@ trackedFiles:
src/__tests__/mockserver/internal/handler/pathpostrestapiv1getanswer.go:
last_write_checksum: sha1:3bec6f7cd190f9394bebac2407f9d7f1e606e479
src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchat.go:
last_write_checksum: sha1:2c2b7acb22e422a721a21801cccfa30fedfd3169
last_write_checksum: sha1:089475adb3686c656bd0eb52940285a7e037ab83
src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchatapplication.go:
last_write_checksum: sha1:7b81898137fdb3a89b4dcfa318b9b5b92e8860c0
src/__tests__/mockserver/internal/handler/pathpostrestapiv1getchatfiles.go:
Expand Down Expand Up @@ -3213,7 +3213,7 @@ trackedFiles:
src/__tests__/mockserver/internal/sdk/models/components/chatzerostatesuggestionoptions.go:
last_write_checksum: sha1:da633547681ec1c8ef5df79cc1d2919fb3714d13
src/__tests__/mockserver/internal/sdk/models/components/checkdatasourceauthresponse.go:
last_write_checksum: sha1:caa976ebc0e76d521725d4dd83e17c840842fd9a
last_write_checksum: sha1:e99e71069a2dee200904ebf2457ee9853b1777b4
src/__tests__/mockserver/internal/sdk/models/components/checkdocumentaccessrequest.go:
last_write_checksum: sha1:4b403181de5f24bde26d022703e625a832f685c8
src/__tests__/mockserver/internal/sdk/models/components/checkdocumentaccessresponse.go:
Expand Down Expand Up @@ -4734,8 +4734,8 @@ trackedFiles:
pristine_git_object: 0aebd8b0a4867e35cb3348fc52921c3c0b4725b7
src/lib/config.ts:
id: 320761608fb3
last_write_checksum: sha1:c430511ea1666f524057ac05272990a0dba5e28b
pristine_git_object: a5c481f4012201a967eee985546952b6a1a15dcc
last_write_checksum: sha1:f2d5b512605e8a404aa255ed6c5b918c0c0e61de
pristine_git_object: 715aecd5112f10c945520be15b20596ffcce83f3
src/lib/dlv.ts:
id: b1988214835a
last_write_checksum: sha1:1dd3e3fbb4550c4bf31f5ef997faff355d6f3250
Expand Down Expand Up @@ -5058,8 +5058,8 @@ trackedFiles:
pristine_git_object: e73c632fccabf514c5a0218ec3d7cdcacdc15edd
src/models/components/checkdatasourceauthresponse.ts:
id: 25ae9960eb9b
last_write_checksum: sha1:f7f152d5a45205903bde819e1ec1999effacd746
pristine_git_object: 19ce89fac908895cdb6d27eecb8983c91956d7ce
last_write_checksum: sha1:74c730dec9fc28f8b115000b718a930f69bd1adc
pristine_git_object: e2f0642d11fb401e630905d9dfb11cbd1b31fa9d
src/models/components/checkdocumentaccessrequest.ts:
id: 9b62d0ab3d53
last_write_checksum: sha1:abdb770748b2dfe5e6aefd0382940276b1c0483a
Expand Down Expand Up @@ -8413,7 +8413,7 @@ generatedTests:
checkdatasourceauth: "2026-02-19T15:51:26Z"
releaseNotes: |
## Typescript SDK Changes:
* `glean.authentication.checkdatasourceauth()`: **Added**
* `glean.authentication.checkdatasourceauth()`: `response.unauthorizedDatasourceInstances` **Changed**
generatedFiles:
- .devcontainer/README.md
- .devcontainer/devcontainer.json
Expand Down
2 changes: 1 addition & 1 deletion .speakeasy/gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ generation:
generateNewTests: true
skipResponseBodyAssertions: true
typescript:
version: 0.14.6
version: 0.14.7
acceptHeaderEnum: true
additionalDependencies:
dependencies: {}
Expand Down
8 changes: 5 additions & 3 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: 204dc378669e42116b8b928d58d5fddabb228aef
x-source-commit-sha: 56c08697ca3b6869022a262114e61f1385914425
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: 8a4d8a857ef07a135526624459142e85f9444ec2
x-open-api-commit-sha: daa8736a6f0763faffd2c1079da8a42345536ed7
x-speakeasy-name: 'Glean API'
servers:
- url: https://{instance}-be.glean.com
Expand Down Expand Up @@ -7367,11 +7367,13 @@ components:
description: |
Relative path to initiate or resume OAuth for the current user and instance, including a one-time authentication token as a query parameter. Clients should prepend their configured Glean backend base URL.
CheckDatasourceAuthResponse:
required:
- unauthorizedDatasourceInstances
properties:
unauthorizedDatasourceInstances:
type: array
description: |
Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources are authorized.
Datasource instances that require per-user OAuth authorization. Empty when all datasources are authorized.
items:
$ref: "#/components/schemas/UnauthorizedDatasourceInstance"
CreateAuthTokenResponse:
Expand Down
12 changes: 6 additions & 6 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ speakeasyVersion: 1.722.7
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:aa0a496396e723844c85b7713e2a2d9795a8e4c9bb8ad5f4119e1ff0b3f46fc1
sourceBlobDigest: sha256:f052174bfef7ebd0efee80555a7ae4db9d3ba41118e726db87762ea1dbab1240
sourceRevisionDigest: sha256:8b912e61e9727548c1e231c33a1cab5988630896d3c81639fe9b2961c8656d94
sourceBlobDigest: sha256:079082f8fabe8221e1d14af242c72c22efa7be6626969593ccebcd74d19c3c80
tags:
- latest
- speakeasy-sdk-regen-1771466080
- speakeasy-sdk-regen-1771525202
Glean Client API:
sourceNamespace: glean-client-api
sourceRevisionDigest: sha256:aec0770b5bcca91068c3a844cb9ef4a091281f6cc3b7d86f2abef1bd6fb2b301
Expand All @@ -18,10 +18,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:aa0a496396e723844c85b7713e2a2d9795a8e4c9bb8ad5f4119e1ff0b3f46fc1
sourceBlobDigest: sha256:f052174bfef7ebd0efee80555a7ae4db9d3ba41118e726db87762ea1dbab1240
sourceRevisionDigest: sha256:8b912e61e9727548c1e231c33a1cab5988630896d3c81639fe9b2961c8656d94
sourceBlobDigest: sha256:079082f8fabe8221e1d14af242c72c22efa7be6626969593ccebcd74d19c3c80
codeSamplesNamespace: glean-api-specs-typescript-code-samples
codeSamplesRevisionDigest: sha256:8b8fdf0a8a039b5167e3bff70afe6df9a0267c61abac3c256fafb222f71f30b0
codeSamplesRevisionDigest: sha256:ad6f99f3b206e106f2c721dbee4d1e2d7108f1debab5d4bddbeb42a01141145e
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -628,4 +628,14 @@ Based on:
### Generated
- [typescript v0.14.6] .
### Releases
- [NPM v0.14.6] https://www.npmjs.com/package/@gleanwork/api-client/v/0.14.6 - .
- [NPM v0.14.6] https://www.npmjs.com/package/@gleanwork/api-client/v/0.14.6 - .

## 2026-02-20 01:49:39
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.722.7 (2.832.9) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.14.7] .
### Releases
- [NPM v0.14.7] https://www.npmjs.com/package/@gleanwork/api-client/v/0.14.7 - .
13 changes: 4 additions & 9 deletions docs/models/components/checkdatasourceauthresponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,12 @@
import { CheckDatasourceAuthResponse } from "@gleanwork/api-client/models/components";

let value: CheckDatasourceAuthResponse = {
unauthorizedDatasourceInstances: [
{
datasourceInstance: "slack_0",
displayName: "Slack",
},
],
unauthorizedDatasourceInstances: [],
};
```

## Fields

| Field | Type | Required | Description |
| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `unauthorizedDatasourceInstances` | [components.UnauthorizedDatasourceInstance](../../models/components/unauthorizeddatasourceinstance.md)[] | :heavy_minus_sign: | Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources are authorized.<br/> |
| Field | Type | Required | Description |
| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| `unauthorizedDatasourceInstances` | [components.UnauthorizedDatasourceInstance](../../models/components/unauthorizeddatasourceinstance.md)[] | :heavy_check_mark: | Datasource instances that require per-user OAuth authorization. Empty when all datasources are authorized.<br/> |
2 changes: 1 addition & 1 deletion examples/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

{
"name": "@gleanwork/api-client",
"version": "0.14.6",
"version": "0.14.7",
"exports": {
".": "./src/index.ts",
"./models/errors": "./src/models/errors/index.ts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gleanwork/api-client",
"version": "0.14.6",
"version": "0.14.7",
"author": "Speakeasy",
"tshy": {
"sourceDialects": [
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = {
language: "typescript",
openapiDocVersion: "0.9.0",
sdkVersion: "0.14.6",
sdkVersion: "0.14.7",
genVersion: "2.832.9",
userAgent:
"speakeasy-sdk/typescript 0.14.6 2.832.9 0.9.0 @gleanwork/api-client",
"speakeasy-sdk/typescript 0.14.7 2.832.9 0.9.0 @gleanwork/api-client",
} as const;
8 changes: 3 additions & 5 deletions src/models/components/checkdatasourceauthresponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ import {

export type CheckDatasourceAuthResponse = {
/**
* Datasource instances that require per-user OAuth authorization. Empty or absent when all datasources are authorized.
* Datasource instances that require per-user OAuth authorization. Empty when all datasources are authorized.
*
* @remarks
*/
unauthorizedDatasourceInstances?:
| Array<UnauthorizedDatasourceInstance>
| undefined;
unauthorizedDatasourceInstances: Array<UnauthorizedDatasourceInstance>;
};

/** @internal */
Expand All @@ -30,7 +28,7 @@ export const CheckDatasourceAuthResponse$inboundSchema: z.ZodType<
> = z.object({
unauthorizedDatasourceInstances: z.array(
UnauthorizedDatasourceInstance$inboundSchema,
).optional(),
),
});

export function checkDatasourceAuthResponseFromJSON(
Expand Down