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
43 changes: 43 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Test
on:
pull_request:
branches:
- main
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest

# NOTE: when ran from a fork, the secrets will not be available -- just skip the
# job instead of failing
if: github.event.pull_request.head.repo.full_name == github.repository || github.event_name == 'workflow_dispatch'

env:
SPEAKEASY_API_KEY: ${{ secrets.SPEAKEASY_API_KEY }}

steps:
- uses: actions/checkout@v4

- name: Set up mise
uses: jdx/mise-action@v2
with:
cache: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup Speakeasy CLI
uses: gleanwork/open-api/.github/actions/speakeasy-setup@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

# run the glean target specified in .speakeasy/workflow.yaml
- run: speakeasy test --target glean

- name: Publish Test Results
uses: dorny/test-reporter@v1
if: ${{ !cancelled() }} # run even if prior step failed
with:
name: Speakeasy Tests
path: './.speakeasy/reports/tests.xml'
reporter: java-junit
36 changes: 18 additions & 18 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion .speakeasy/glean-merged-spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9272,11 +9272,16 @@ 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.
WorkflowMutableProperties:
WorkflowDraftableProperties:
properties:
name:
type: string
description: The name of the workflow.
WorkflowMutableProperties:
type: object
allOf:
- $ref: "#/components/schemas/WorkflowDraftableProperties"
- type: object
WorkflowMetadata:
allOf:
- type: object
Expand Down
13 changes: 6 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
speakeasyVersion: 1.555.2
speakeasyVersion: 1.555.1
sources:
Glean API:
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:8fa342ea4c0f50e32d7b0930df581e4f4ec000f1f36a429c40f6ccc3f72c0b6b
sourceBlobDigest: sha256:914ea4a50d56c4ac1ef7a111f11756bfd8c21bd1c652b817b729ca8706a0afc7
sourceRevisionDigest: sha256:8e2d79c193d7d522db0b1817c101317269b4303fe62398cd206f47b62bf13aa7
sourceBlobDigest: sha256:317f3701feac64292f15f9c705d91ebacd1168fc2b2c29548a67f51b77189824
tags:
- latest
- speakeasy-sdk-regen-1748993191
Glean Client API:
sourceNamespace: glean-client-api
sourceRevisionDigest: sha256:4edc63ad559e4f2c9fb9ebf5edaaaaa9269f1874d271cfd84b441d6dacac43d2
Expand All @@ -17,10 +16,10 @@ targets:
glean:
source: Glean API
sourceNamespace: glean-api-specs
sourceRevisionDigest: sha256:8fa342ea4c0f50e32d7b0930df581e4f4ec000f1f36a429c40f6ccc3f72c0b6b
sourceBlobDigest: sha256:914ea4a50d56c4ac1ef7a111f11756bfd8c21bd1c652b817b729ca8706a0afc7
sourceRevisionDigest: sha256:8e2d79c193d7d522db0b1817c101317269b4303fe62398cd206f47b62bf13aa7
sourceBlobDigest: sha256:317f3701feac64292f15f9c705d91ebacd1168fc2b2c29548a67f51b77189824
codeSamplesNamespace: glean-api-specs-python-code-samples
codeSamplesRevisionDigest: sha256:74861ef8ca5de61f14037c5c7aa54891c396b1d198d3e180f03ade0523a40d74
codeSamplesRevisionDigest: sha256:38daa09fcc08430b42c527a3325478333bf123fbc4e178ec364cddbda1582359
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
2 changes: 1 addition & 1 deletion docs/models/workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

| Field | Type | Required | Description | Example |
| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- |
| `name` | *Optional[str]* | :heavy_minus_sign: | The name of the workflow. | |
| `author` | [Optional[models.Person]](../models/person.md) | :heavy_minus_sign: | N/A | {<br/>"name": "George Clooney",<br/>"obfuscatedId": "abc123"<br/>} |
| `create_timestamp` | *Optional[int]* | :heavy_minus_sign: | Server Unix timestamp of the creation time. | |
| `last_update_timestamp` | *Optional[int]* | :heavy_minus_sign: | Server Unix timestamp of the last update time. | |
| `last_updated_by` | [Optional[models.Person]](../models/person.md) | :heavy_minus_sign: | N/A | {<br/>"name": "George Clooney",<br/>"obfuscatedId": "abc123"<br/>} |
| `permissions` | [Optional[models.ObjectPermissions]](../models/objectpermissions.md) | :heavy_minus_sign: | N/A | |
| `name` | *Optional[str]* | :heavy_minus_sign: | The name of the workflow. | |
| `id` | *Optional[str]* | :heavy_minus_sign: | The ID of the workflow. | |
4 changes: 2 additions & 2 deletions docs/sdks/datasources/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ with Glean(
api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as g_client:

g_client.indexing.datasources.add(name="<value>", datasource_category=models.DatasourceCategory.UNCATEGORIZED, url_regex="https://example-company.datasource.com/.*", quicklinks=[
g_client.indexing.datasources.add(name="<value>", url_regex="https://example-company.datasource.com/.*", quicklinks=[
{
"icon_config": {
"color": "#343CED",
Expand All @@ -32,7 +32,7 @@ with Glean(
"name": "user",
},
},
], trust_url_regex_for_view_activity=True, strip_fragment_in_canonical_url=True, is_entity_datasource=False, is_test_datasource=False)
])

# Use the SDK ...

Expand Down
Loading
Loading