Skip to content

Commit ae21770

Browse files
authored
Merge pull request #1 from QuePlatform/speakeasy-sdk-regen-1758290879
chore: 🐝 Update SDK - Generate 0.1.0
2 parents f02b956 + 9914574 commit ae21770

Some content is hidden

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

86 files changed

+2726
-661
lines changed

.devcontainer/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11

2+
<div align="center">
3+
<a href="https://codespaces.new/QuePlatform/PythonSDK.git/tree/main"><img src="https://github.com/codespaces/badge.svg" /></a>
4+
</div>
5+
<br>
6+
27
> **Remember to shutdown a GitHub Codespace when it is not in use!**
38
49
# Dev Containers Quick Start

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.env
2+
.env.local
13
.venv/
24
venv/
35
src/*.egg-info/

.speakeasy/gen.lock

Lines changed: 88 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,26 @@
11
lockVersion: 2.0.0
22
id: a559c4f4-5ced-4888-977e-9da6df24ea1e
33
management:
4-
docChecksum: 1b6f1e0e724a103c5bafac828edf515a
4+
docChecksum: 5be1033d3fcd17c8b64f613200c1ef01
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.606.3
7-
generationVersion: 2.687.1
8-
releaseVersion: 0.0.2
9-
configChecksum: 3cb87fb1854fe2e2685bcb6699703b19
6+
speakeasyVersion: 1.621.0
7+
generationVersion: 2.707.0
8+
releaseVersion: 0.1.0
9+
configChecksum: e02e2d791f75a4bfe768d682325c2131
10+
repoURL: https://github.com/QuePlatform/PythonSDK.git
11+
installationURL: https://github.com/QuePlatform/PythonSDK.git
12+
published: true
1013
features:
1114
python:
1215
additionalDependencies: 1.0.0
13-
additionalProperties: 1.0.1
1416
constsAndDefaults: 1.0.5
15-
core: 5.19.9
17+
core: 5.20.4
1618
defaultEnabledRetries: 0.2.0
17-
deprecations: 3.0.2
1819
devContainers: 3.0.0
1920
enumUnions: 0.1.0
2021
envVarSecurityUsage: 0.3.2
2122
flatRequests: 1.0.1
22-
globalSecurity: 3.0.3
23+
globalSecurity: 3.0.4
2324
globalSecurityCallbacks: 1.0.0
2425
globalSecurityFlattening: 1.0.0
2526
globalServerURLs: 3.1.1
@@ -37,39 +38,51 @@ generatedFiles:
3738
- .vscode/settings.json
3839
- USAGE.md
3940
- docs/errors/problemresponseerror.md
41+
- docs/models/alg.md
4042
- docs/models/assetrefdto.md
41-
- docs/models/bytesbase64.md
43+
- docs/models/assurance.md
44+
- docs/models/cawgidentitydto.md
45+
- docs/models/cawgverifydto.md
4246
- docs/models/data.md
47+
- docs/models/default.md
4348
- docs/models/details.md
4449
- docs/models/evidence.md
4550
- docs/models/getpresignedurlresponse.md
4651
- docs/models/gettrustlistresponse.md
4752
- docs/models/healthzresponse.md
48-
- docs/models/manifestjson.md
53+
- docs/models/limitsdto.md
54+
- docs/models/mode.md
4955
- docs/models/policy.md
5056
- docs/models/presignedurl.md
5157
- docs/models/presignresponse.md
5258
- docs/models/s3.md
5359
- docs/models/security.md
5460
- docs/models/signassetresponse.md
61+
- docs/models/signer.md
62+
- docs/models/signerrefdto.md
63+
- docs/models/signerrefdtoenv.md
64+
- docs/models/signerrefdtolocal.md
65+
- docs/models/signerseparate.md
66+
- docs/models/signerusemainsigner.md
67+
- docs/models/signingalg.md
5568
- docs/models/signrequest.md
56-
- docs/models/signrequestmode.md
5769
- docs/models/signresponse.md
58-
- docs/models/summary.md
5970
- docs/models/trustlistresponse.md
71+
- docs/models/typeenv.md
72+
- docs/models/typelocal.md
73+
- docs/models/typeseparate.md
74+
- docs/models/typeusemainsigner.md
6075
- docs/models/utils/retryconfig.md
61-
- docs/models/validationstatus.md
62-
- docs/models/verificationreport.md
6376
- docs/models/verifyassetresponse.md
6477
- docs/models/verifyrequest.md
65-
- docs/models/verifyrequestmode.md
6678
- docs/models/verifyresponse.md
6779
- docs/sdks/assetmanagement/README.md
6880
- docs/sdks/que/README.md
6981
- docs/sdks/utility/README.md
7082
- py.typed
7183
- pylintrc
7284
- pyproject.toml
85+
- scripts/prepare_readme.py
7386
- scripts/publish.sh
7487
- src/que_media/__init__.py
7588
- src/que_media/_hooks/__init__.py
@@ -87,20 +100,22 @@ generatedFiles:
87100
- src/que_media/httpclient.py
88101
- src/que_media/models/__init__.py
89102
- src/que_media/models/assetrefdto.py
90-
- src/que_media/models/bytesbase64.py
103+
- src/que_media/models/cawgidentitydto.py
104+
- src/que_media/models/cawgverifydto.py
91105
- src/que_media/models/getpresignedurlop.py
92106
- src/que_media/models/gettrustlistop.py
93107
- src/que_media/models/healthzresponse.py
108+
- src/que_media/models/limitsdto.py
94109
- src/que_media/models/presignedurl.py
95110
- src/que_media/models/presignresponse.py
96111
- src/que_media/models/problemresponse_error.py
97112
- src/que_media/models/s3.py
98113
- src/que_media/models/security.py
99114
- src/que_media/models/signassetop.py
115+
- src/que_media/models/signerrefdto.py
100116
- src/que_media/models/signrequest.py
101117
- src/que_media/models/signresponse.py
102118
- src/que_media/models/trustlistresponse.py
103-
- src/que_media/models/verificationreport.py
104119
- src/que_media/models/verifyassetop.py
105120
- src/que_media/models/verifyrequest.py
106121
- src/que_media/models/verifyresponse.py
@@ -131,10 +146,34 @@ examples:
131146
verifyAsset:
132147
speakeasy-default-verify-asset:
133148
requestBody:
134-
application/json: {"asset": {"url": "https://example.com/images/provenance-image.jpg"}, "mode": "detailed"}
149+
application/json: {"asset": {"url": "https://example.com/images/provenance-image.jpg"}, "mode": "detailed", "allow_remote_manifests": false, "allow_insecure_remote_http": false, "include_certificates": true, "limits": {"max_asset_size_bytes": 104857600, "max_output_size_bytes": 104857600, "max_stream_copy_bytes": 104857600, "stream_timeout_ms": 30000}}
135150
responses:
136151
"200":
137-
application/json: {"report": {"report": {"validationStatus": [{"code": "claim.signature.validated", "explanation": "Claim signature validated"}], "summary": {"isTrusted": true, "signer": "CN=Que Signing Service"}}}}
152+
application/json: {"report": "<value>"}
153+
"400":
154+
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
155+
"429":
156+
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
157+
"500":
158+
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
159+
basic-verification:
160+
requestBody:
161+
application/json: {"asset": {"bucket": "que-assets-dev", "key": "uploads/photo.jpg"}, "mode": "summary", "allow_remote_manifests": false, "allow_insecure_remote_http": false, "include_certificates": true}
162+
responses:
163+
"200":
164+
application/json: {"report": "<value>"}
165+
"400":
166+
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
167+
"429":
168+
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
169+
"500":
170+
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
171+
detailed-verification:
172+
requestBody:
173+
application/json: {"asset": {"bucket": "que-assets-dev", "key": "uploads/document.pdf"}, "mode": "detailed", "allow_remote_manifests": true, "allow_insecure_remote_http": false, "include_certificates": true, "limits": {"max_asset_size_bytes": 52428800}}
174+
responses:
175+
"200":
176+
application/json: {"report": "<value>"}
138177
"400":
139178
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
140179
"429":
@@ -144,10 +183,34 @@ examples:
144183
signAsset:
145184
speakeasy-default-sign-asset:
146185
requestBody:
147-
application/json: {"asset": {"b64": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="}, "mode": "server_measure", "manifest_json": {}}
186+
application/json: {"asset": {"bucket": "que-assets-dev", "key": "uploads/user123/asset.jpg"}, "mode": "server_measure", "manifest_json": "{\"title\":\"Original Photograph\",\"format\":\"image/jpeg\",\"assertions\":[{\"label\":\"stds.schema-org.CreativeWork\",\"data\":{\"@context\":\"https://schema.org\",\"@type\":\"CreativeWork\",\"author\":[{\"@type\":\"Person\",\"name\":\"Jane Photographer\"}]}}]}", "allow_insecure_remote_http": false, "limits": {"max_asset_size_bytes": 104857600, "max_output_size_bytes": 104857600, "max_stream_copy_bytes": 104857600, "stream_timeout_ms": 30000}}
187+
responses:
188+
"200":
189+
application/json: {"assurance": "server_measured", "evidence": {"signer": "env_dev", "alg": "ES256"}, "asset_s3_uri": "s3://que-signed-assets/uuid/signed.jpg"}
190+
"400":
191+
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
192+
"429":
193+
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
194+
"500":
195+
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
196+
basic-signing:
197+
requestBody:
198+
application/json: {"asset": {"bucket": "que-assets-dev", "key": "uploads/photo.jpg"}, "mode": "server_measure", "manifest_json": "{\"title\":\"Original Photograph\",\"assertions\":[{\"label\":\"stds.schema-org.CreativeWork\",\"data\":{\"@context\":\"https://schema.org\",\"@type\":\"CreativeWork\",\"author\":[{\"@type\":\"Person\",\"name\":\"Jane Photographer\"}]}}]}", "allow_insecure_remote_http": false}
199+
responses:
200+
"200":
201+
application/json: {"assurance": "server_measured", "evidence": {"signer": "env_dev", "alg": "ES256"}, "asset_s3_uri": "s3://que-signed-assets/uuid/signed.jpg"}
202+
"400":
203+
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
204+
"429":
205+
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
206+
"500":
207+
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
208+
advanced-signing:
209+
requestBody:
210+
application/json: {"asset": {"bucket": "que-assets-dev", "key": "uploads/document.pdf"}, "mode": "server_measure", "manifest_json": "{\"title\":\"Signed Document\",\"assertions\":[{\"label\":\"stds.schema-org.CreativeWork\",\"data\":{\"@context\":\"https://schema.org\",\"@type\":\"CreativeWork\",\"author\":[{\"@type\":\"Person\",\"name\":\"John Author\"}]}}]}", "allow_insecure_remote_http": false, "limits": {"max_asset_size_bytes": 104857600, "stream_timeout_ms": 60000}}
148211
responses:
149212
"200":
150-
application/json: {"assurance": "server_measured", "evidence": {}, "asset_s3_uri": "s3://Que-signed-assets/a1b2c3d4-e5f6-7890-g1h2-i3j4k5l6m7n8/signed.jpg"}
213+
application/json: {"assurance": "server_measured", "evidence": {"signer": "env_dev", "alg": "ES256"}, "asset_s3_uri": "s3://que-signed-assets/uuid/signed.jpg"}
151214
"400":
152215
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
153216
"429":
@@ -163,7 +226,7 @@ examples:
163226
speakeasy-default-get-trust-list:
164227
responses:
165228
"200":
166-
application/json: {"version": "prod-2025-08-15", "issued_at": "2025-08-15T20:00:00Z", "data": {"manufacturers": ["Example Camera Corp"], "cas": ["-----BEGIN CERTIFICATE-----\nMIID...=\n-----END CERTIFICATE-----"], "policy": {"default": "allow"}}}
229+
application/json: {"version": "dev-1", "issued_at": "2024-01-15T10:00:00Z", "data": {"manufacturers": [], "cas": [], "policy": {"default": "allow"}}}
167230
"401":
168231
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
169232
"429":
@@ -174,11 +237,12 @@ examples:
174237
speakeasy-default-get-presigned-url:
175238
responses:
176239
"200":
177-
application/json: {"url": "https://Que-customer-uploads.s3.amazonaws.com/new-asset-key?AWSAccessKeyId=...", "key": "uploads/user123/timestamp/asset.jpg"}
240+
application/json: {"url": "https://que-assets-dev.s3.us-east-2.amazonaws.com/uploads/user123/asset.jpg?AWSAccessKeyId=...&Signature=...&Expires=...", "key": "uploads/user123/asset.jpg"}
178241
"401":
179242
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
180243
"429":
181244
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
182245
"500":
183246
application/problem+json: {"type": "about:blank", "title": "rate_limited", "status": 429, "code": "rate_limited", "detail": "try again in 5000 ms", "details": {}}
184247
examplesVersion: 1.0.2
248+
releaseNotes: "## Python SDK Changes Detected:\n* `que.verify_asset()`: \n * `request` **Changed** **Breaking** :warning:\n * `response.report` **Changed** **Breaking** :warning:\n* `que.sign_asset()`: \n * `request` **Changed** **Breaking** :warning:\n * `response` **Changed** **Breaking** :warning:\n* `que.utility.get_trust_list()`: `response.data.policy.default` **Changed** **Breaking** :warning:\n"

.speakeasy/gen.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,22 @@ generation:
1717
securityFeb2025: true
1818
sharedErrorComponentsApr2025: true
1919
auth:
20-
oAuth2ClientCredentialsEnabled: true
21-
oAuth2PasswordEnabled: true
20+
oAuth2ClientCredentialsEnabled: false
21+
oAuth2PasswordEnabled: false
22+
hoistGlobalSecurity: true
2223
sdkHooksConfigAccess: true
2324
tests:
2425
generateTests: false
2526
generateNewTests: true
2627
skipResponseBodyAssertions: false
2728
python:
28-
version: 0.0.2
29+
version: 0.1.0
2930
additionalDependencies:
3031
dev: {}
3132
main: {}
33+
allowedRedefinedBuiltins:
34+
- id
35+
- object
3236
authors:
3337
- Speakeasy
3438
baseErrorName: QueError
@@ -61,4 +65,5 @@ python:
6165
pytestFilterWarnings: []
6266
pytestTimeout: 0
6367
responseFormat: flat
68+
sseFlatResponse: false
6469
templateVersion: v2

0 commit comments

Comments
 (0)