Commit 40974cc
Sync OpenAPI: add clone and artifact endpoints, replace CostModel (#83)
* Sync OpenAPI: add clone and artifact endpoints, replace CostModel
Regenerate the client against the upstream v0.4 spec (issue #52).
- Add clone_job (POST /jobs/{UUID}/clone) and CloneJobPayload.
- Replace get_compiled_file (GET /jobs/{UUID}/circuits/{lang}) with
get_job_artifact (GET /jobs/{UUID}/artifacts/{artifactId}); the response
body is opaque, so only the *_detailed callables are generated.
- Replace CostModel with ApiCostModel ("QCT" / "2QGE_operations").
- Add Backend.supported_gates/supported_native_gates/supported_error_mitigations.
- Add estimate_job_cost fields: estimated_quantum_compute_time_us, plus
rate_information.qct_cost_cents and rate_type; cost fields now nullable.
- Update tests, AGENTS.md, and CHANGELOG accordingly.
* Bump https://github.com/astral-sh/ruff-pre-commit
Bumps the pre-commit group with 1 update: [https://github.com/astral-sh/ruff-pre-commit](https://github.com/astral-sh/ruff-pre-commit).
Updates `https://github.com/astral-sh/ruff-pre-commit` from v0.15.14 to 0.15.15
- [Release notes](https://github.com/astral-sh/ruff-pre-commit/releases)
- [Commits](astral-sh/ruff-pre-commit@v0.15.14...v0.15.15)
---
updated-dependencies:
- dependency-name: https://github.com/astral-sh/ruff-pre-commit
dependency-version: 0.15.15
dependency-type: direct:production
dependency-group: pre-commit
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump actions/checkout from 6.0.2 to 6.0.3 in the actions group
Bumps the actions group with 1 update: [actions/checkout](https://github.com/actions/checkout).
Updates `actions/checkout` from 6.0.2 to 6.0.3
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](actions/checkout@de0fac2...df4cb1c)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 6.0.3
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: actions
...
Signed-off-by: dependabot[bot] <support@github.com>
* Bump the python group across 1 directory with 5 updates
Bumps the python group with 5 updates in the / directory:
| Package | From | To |
| --- | --- | --- |
| [pytest](https://github.com/pytest-dev/pytest) | `9.0.3` | `9.1.0` |
| [pytest-asyncio](https://github.com/pytest-dev/pytest-asyncio) | `1.3.0` | `1.4.0` |
| [ruff](https://github.com/astral-sh/ruff) | `0.15.15` | `0.15.18` |
| [ty](https://github.com/astral-sh/ty) | `0.0.40` | `0.0.50` |
| [openapi-python-client](https://github.com/openapi-generators/openapi-python-client) | `0.28.4` | `0.29.0` |
Updates `pytest` from 9.0.3 to 9.1.0
- [Release notes](https://github.com/pytest-dev/pytest/releases)
- [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst)
- [Commits](pytest-dev/pytest@9.0.3...9.1.0)
Updates `pytest-asyncio` from 1.3.0 to 1.4.0
- [Release notes](https://github.com/pytest-dev/pytest-asyncio/releases)
- [Commits](pytest-dev/pytest-asyncio@v1.3.0...v1.4.0)
Updates `ruff` from 0.15.15 to 0.15.18
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ruff@0.15.15...0.15.18)
Updates `ty` from 0.0.40 to 0.0.50
- [Release notes](https://github.com/astral-sh/ty/releases)
- [Changelog](https://github.com/astral-sh/ty/blob/main/CHANGELOG.md)
- [Commits](astral-sh/ty@0.0.40...0.0.50)
Updates `openapi-python-client` from 0.28.4 to 0.29.0
- [Release notes](https://github.com/openapi-generators/openapi-python-client/releases)
- [Changelog](https://github.com/openapi-generators/openapi-python-client/blob/main/CHANGELOG.md)
- [Commits](openapi-generators/openapi-python-client@v0.28.4...v0.29.0)
---
updated-dependencies:
- dependency-name: pytest
dependency-version: 9.1.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: python
- dependency-name: pytest-asyncio
dependency-version: 1.4.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: python
- dependency-name: ruff
dependency-version: 0.15.18
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: python
- dependency-name: ty
dependency-version: 0.0.50
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: python
- dependency-name: openapi-python-client
dependency-version: 0.29.0
dependency-type: direct:development
update-type: version-update:semver-minor
dependency-group: python
...
Signed-off-by: dependabot[bot] <support@github.com>
* Regenerate client with openapi-python-client 0.29.0
Pulls in the pending dependabot bumps (openapi-python-client 0.29.0,
ruff 0.15.18, ty 0.0.50, pytest 9.1.0, pytest-asyncio 1.4.0,
actions/checkout 6.0.3, ruff-pre-commit v0.15.15) and regenerates the
client against them.
- 0.29.0 parses timestamps via stdlib datetime.fromisoformat instead of
dateutil.parser.isoparse, so drop the now-unused python-dateutil runtime
dependency.
- 0.29.0 emits bare 'return value' (not cast(Enum, value)) in the generated
enum check_* helpers, which ty 0.0.50 flags as invalid-return-type since
it can't narrow str to the Literal through the 'value in <set>' guard.
Ignore that rule for ionq_core/models/** (the only place those helpers
live; api/** return types stay checked), mirroring the existing
invalid-argument-type override for generated code.
* chore: Simplify the comment
* chore: Normalize indentations
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>1 parent c697a8d commit 40974cc
75 files changed
Lines changed: 1509 additions & 285 deletions
File tree
- .github/workflows
- ionq_core
- api
- default
- usage
- models
- tests
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
14 | 18 | | |
15 | 19 | | |
16 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
17 | 28 | | |
18 | 29 | | |
19 | 30 | | |
| |||
0 commit comments