Skip to content

Commit cdcd3dd

Browse files
google-genai-botcopybara-github
authored andcommitted
feat(cli): update Speakeasy generator to v2.948.0, bump CLI to v0.4.2, and apply CLI overlay fixes
- Update `third_party/golang/github_com/speakeasy_api/openapi_generation/v/v2` to `v2.948.0` (`7c3f416f053d1eab4df1809a063574b60fedd695`), removing the `charm.land/huh/v2` import/theme workarounds from `sync_speakeasy_outputs.py` and `third_party/gemini_api_cli/copy.bara.sky`. - Move `x-speakeasy-enum-groups` onto `ModelOption` in `overlays/gaos/08-published-shapes.yaml` alongside `ModelOption.enum`. - Add `x-speakeasy-pattern-error-message` on resource ID dot-segment validation rules in `overlays/cli/behavior.yaml`. - Mark write-only credential secret properties (`EnvironmentVariableConfig.value`, `HttpBearerConfig.token`, `OAuth2Config.{client_secret,refresh_token}`, and their update counterparts) with `x-speakeasy-param-sensitive: true`. - Default `stream` to `false` on `agent status` (`getInteractionById`), default `pageSize` to `1000` on `models list`, and require `requestBody` on `webhooks rotate-signing-secret` so empty calls send `{}`. - Expose `--previous-interaction-id` and `output.stream.metadata` (`$.data.interaction.id`) on streaming interaction commands, add `--previous-interaction-id` / `--aspect-ratio` / `--image-size` / `--output-mime-type` to `image`, update `video` resume docs to `gemini-api video --resume <id>`, update `VideoConfig` `reference_to_video` description, and document OAuth requirements on `files register`. - Bring `tests/contract/` into `third_party/gemini_api_cli/tests/contract/` as Piper Source of Truth (exported via Copybara) and update contract assertions for `video --async` resume hint and `agent status` default `stream=false`. - Bump `cli.version` to `0.4.2` and regenerate OAD specs, SDKs, and the CLI. PiperOrigin-RevId: 997961678
1 parent 6a6501c commit cdcd3dd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎.github/workflows/mypy.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- main
1111

1212
env:
13-
SPEAKEASY_VERSION: v2.945.4
13+
SPEAKEASY_VERSION: v2.948.0
1414

1515
jobs:
1616
mypy:

‎google/genai/_gaos/utils/datetimes.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def parse_datetime(datetime_string: str) -> datetime:
4242
return datetime.fromisoformat(datetime_string)
4343

4444

45-
_DURATION_ADAPTER = TypeAdapter(timedelta)
45+
_DURATION_ADAPTER: TypeAdapter[timedelta] = TypeAdapter(timedelta)
4646

4747

4848
def parse_duration(duration_string: str) -> timedelta:

0 commit comments

Comments
 (0)