Skip to content

Commit 6cd2470

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.489.1
1 parent b0960ef commit 6cd2470

18 files changed

+87
-25
lines changed

.speakeasy/gen.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: fd34e2fb-ef13-41ac-aee3-a7cff2be8de7
33
management:
4-
docChecksum: 1ef71539e3bdf0770a76513c30f7af4d
4+
docChecksum: c7089932c76999de457cb64c764bcfd6
55
docVersion: "2.0"
6-
speakeasyVersion: 1.488.0
7-
generationVersion: 2.506.0
8-
releaseVersion: 3.1.4
9-
configChecksum: f6f1aa4fcfa7a780c2f6b74332d2a7aa
6+
speakeasyVersion: 1.489.1
7+
generationVersion: 2.511.2
8+
releaseVersion: 3.1.5
9+
configChecksum: 077afbaeeaff7dadda8a2b9e0f52169b
1010
repoURL: https://github.com/orq-ai/orq-python.git
1111
installationURL: https://github.com/orq-ai/orq-python.git
1212
published: true
@@ -20,7 +20,7 @@ features:
2020
envVarSecurityUsage: 0.3.2
2121
flatRequests: 1.0.1
2222
flattening: 3.1.1
23-
globalSecurity: 3.0.2
23+
globalSecurity: 3.0.3
2424
globalSecurityCallbacks: 1.0.0
2525
globalSecurityFlattening: 1.0.0
2626
globalServerURLs: 3.1.0

.speakeasy/gen.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ generation:
99
nameResolutionDec2023: true
1010
parameterOrderingFeb2024: true
1111
requestResponseComponentNamesFeb2024: true
12+
securityFeb2025: false
1213
auth:
1314
oAuth2ClientCredentialsEnabled: true
1415
oAuth2PasswordEnabled: false
@@ -43,5 +44,6 @@ python:
4344
methodArguments: infer-optional-args
4445
outputModelSuffix: output
4546
packageName: orq-ai-sdk
47+
pytestTimeout: 0
4648
responseFormat: flat
4749
templateVersion: v2

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
speakeasyVersion: 1.488.0
1+
speakeasyVersion: 1.489.1
22
sources:
33
orq-ai-sdk-prerelease-python:
44
sourceNamespace: orq-ai-sdk-prerelease-python
@@ -10,11 +10,11 @@ sources:
1010
- "2.0"
1111
orq-ai-sdk-python:
1212
sourceNamespace: orq-ai-sdk-python
13-
sourceRevisionDigest: sha256:138036b0b0394a8e48cc99a8cb1754392940c4e67846fdae0fc7c5a8466c12c4
14-
sourceBlobDigest: sha256:a22f48d1fdb44a5f79f1120e342bd4b48195a074f04b1ba3c06ffc0e458f9b2d
13+
sourceRevisionDigest: sha256:7cc96c978c898826c1feb2e1477f3905128eba85df288e72dba014acedbc9adb
14+
sourceBlobDigest: sha256:6c05af758c3529e25ed59836e2ea1c315dc27c92dc7a940dd2596a4c145320da
1515
tags:
1616
- latest
17-
- speakeasy-sdk-regen-1739309630
17+
- speakeasy-sdk-regen-1739348051
1818
- "2.0"
1919
targets:
2020
orq-ai-sdk-prerelease-python:
@@ -27,10 +27,10 @@ targets:
2727
orq-ai-sdk-python:
2828
source: orq-ai-sdk-python
2929
sourceNamespace: orq-ai-sdk-python
30-
sourceRevisionDigest: sha256:138036b0b0394a8e48cc99a8cb1754392940c4e67846fdae0fc7c5a8466c12c4
31-
sourceBlobDigest: sha256:a22f48d1fdb44a5f79f1120e342bd4b48195a074f04b1ba3c06ffc0e458f9b2d
30+
sourceRevisionDigest: sha256:7cc96c978c898826c1feb2e1477f3905128eba85df288e72dba014acedbc9adb
31+
sourceBlobDigest: sha256:6c05af758c3529e25ed59836e2ea1c315dc27c92dc7a940dd2596a4c145320da
3232
codeSamplesNamespace: orq-ai-sdk-python-code-samples
33-
codeSamplesRevisionDigest: sha256:2df88f08e10be07999655d50cb4029ebf572c99a563a30d06ed1617bd1af911e
33+
codeSamplesRevisionDigest: sha256:4a3d3d1b659f204ff93571f4b943f470d00daa92ef4acd68b442e11aa4ee787f
3434
workflow:
3535
workflowVersion: 1.0.0
3636
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,14 @@ Based on:
7878
### Generated
7979
- [python v3.1.4] .
8080
### Releases
81-
- [PyPI v3.1.4] https://pypi.org/project/orq-ai-sdk/3.1.4 - .
81+
- [PyPI v3.1.4] https://pypi.org/project/orq-ai-sdk/3.1.4 - .
82+
83+
## 2025-02-12 08:13:54
84+
### Changes
85+
Based on:
86+
- OpenAPI Doc
87+
- Speakeasy CLI 1.489.1 (2.511.2) https://github.com/speakeasy-api/speakeasy
88+
### Generated
89+
- [python v3.1.5] .
90+
### Releases
91+
- [PyPI v3.1.5] https://pypi.org/project/orq-ai-sdk/3.1.5 - .

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "orq-ai-sdk"
3-
version = "3.1.4"
3+
version = "3.1.5"
44
description = "Python Client SDK for the Orq API."
55
authors = [{ name = "Orq" },]
66
readme = "README-PYPI.md"

src/orq_ai_sdk/_hooks/types.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@
77

88

99
class HookContext:
10+
base_url: str
1011
operation_id: str
1112
oauth2_scopes: Optional[List[str]] = None
1213
security_source: Optional[Union[Any, Callable[[], Any]]] = None
1314

1415
def __init__(
1516
self,
17+
base_url: str,
1618
operation_id: str,
1719
oauth2_scopes: Optional[List[str]],
1820
security_source: Optional[Union[Any, Callable[[], Any]]],
1921
):
22+
self.base_url = base_url
2023
self.operation_id = operation_id
2124
self.oauth2_scopes = oauth2_scopes
2225
self.security_source = security_source
@@ -25,21 +28,30 @@ def __init__(
2528
class BeforeRequestContext(HookContext):
2629
def __init__(self, hook_ctx: HookContext):
2730
super().__init__(
28-
hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source
31+
hook_ctx.base_url,
32+
hook_ctx.operation_id,
33+
hook_ctx.oauth2_scopes,
34+
hook_ctx.security_source,
2935
)
3036

3137

3238
class AfterSuccessContext(HookContext):
3339
def __init__(self, hook_ctx: HookContext):
3440
super().__init__(
35-
hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source
41+
hook_ctx.base_url,
42+
hook_ctx.operation_id,
43+
hook_ctx.oauth2_scopes,
44+
hook_ctx.security_source,
3645
)
3746

3847

3948
class AfterErrorContext(HookContext):
4049
def __init__(self, hook_ctx: HookContext):
4150
super().__init__(
42-
hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source
51+
hook_ctx.base_url,
52+
hook_ctx.operation_id,
53+
hook_ctx.oauth2_scopes,
54+
hook_ctx.security_source,
4355
)
4456

4557

src/orq_ai_sdk/_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "orq-ai-sdk"
6-
__version__: str = "3.1.4"
6+
__version__: str = "3.1.5"
77
__openapi_doc_version__: str = "2.0"
8-
__gen_version__: str = "2.506.0"
9-
__user_agent__: str = "speakeasy-sdk/python 3.1.4 2.506.0 2.0 orq-ai-sdk"
8+
__gen_version__: str = "2.511.2"
9+
__user_agent__: str = "speakeasy-sdk/python 3.1.5 2.511.2 2.0 orq-ai-sdk"
1010

1111
try:
1212
if __package__ is not None:

src/orq_ai_sdk/contacts.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def create(
8787

8888
http_res = self.do_request(
8989
hook_ctx=HookContext(
90+
base_url=base_url or "",
9091
operation_id="CreateContact",
9192
oauth2_scopes=[],
9293
security_source=get_security_from_env(
@@ -200,6 +201,7 @@ async def create_async(
200201

201202
http_res = await self.do_request_async(
202203
hook_ctx=HookContext(
204+
base_url=base_url or "",
203205
operation_id="CreateContact",
204206
oauth2_scopes=[],
205207
security_source=get_security_from_env(

src/orq_ai_sdk/deployments_sdk.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ def list(
8787

8888
http_res = self.do_request(
8989
hook_ctx=HookContext(
90+
base_url=base_url or "",
9091
operation_id="Deployments",
9192
oauth2_scopes=[],
9293
security_source=get_security_from_env(
@@ -192,6 +193,7 @@ async def list_async(
192193

193194
http_res = await self.do_request_async(
194195
hook_ctx=HookContext(
196+
base_url=base_url or "",
195197
operation_id="Deployments",
196198
oauth2_scopes=[],
197199
security_source=get_security_from_env(
@@ -355,6 +357,7 @@ def get_config(
355357

356358
http_res = self.do_request(
357359
hook_ctx=HookContext(
360+
base_url=base_url or "",
358361
operation_id="DeploymentGetConfig",
359362
oauth2_scopes=[],
360363
security_source=get_security_from_env(
@@ -516,6 +519,7 @@ async def get_config_async(
516519

517520
http_res = await self.do_request_async(
518521
hook_ctx=HookContext(
522+
base_url=base_url or "",
519523
operation_id="DeploymentGetConfig",
520524
oauth2_scopes=[],
521525
security_source=get_security_from_env(
@@ -665,6 +669,7 @@ def invoke(
665669

666670
http_res = self.do_request(
667671
hook_ctx=HookContext(
672+
base_url=base_url or "",
668673
operation_id="DeploymentInvoke",
669674
oauth2_scopes=[],
670675
security_source=get_security_from_env(
@@ -814,6 +819,7 @@ async def invoke_async(
814819

815820
http_res = await self.do_request_async(
816821
hook_ctx=HookContext(
822+
base_url=base_url or "",
817823
operation_id="DeploymentInvoke",
818824
oauth2_scopes=[],
819825
security_source=get_security_from_env(
@@ -978,6 +984,7 @@ def stream(
978984

979985
http_res = self.do_request(
980986
hook_ctx=HookContext(
987+
base_url=base_url or "",
981988
operation_id="DeploymentStream",
982989
oauth2_scopes=[],
983990
security_source=get_security_from_env(
@@ -1145,6 +1152,7 @@ async def stream_async(
11451152

11461153
http_res = await self.do_request_async(
11471154
hook_ctx=HookContext(
1155+
base_url=base_url or "",
11481156
operation_id="DeploymentStream",
11491157
oauth2_scopes=[],
11501158
security_source=get_security_from_env(

src/orq_ai_sdk/feedback.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def create(
7878

7979
http_res = self.do_request(
8080
hook_ctx=HookContext(
81+
base_url=base_url or "",
8182
operation_id="CreateFeedback",
8283
oauth2_scopes=[],
8384
security_source=get_security_from_env(
@@ -182,6 +183,7 @@ async def create_async(
182183

183184
http_res = await self.do_request_async(
184185
hook_ctx=HookContext(
186+
base_url=base_url or "",
185187
operation_id="CreateFeedback",
186188
oauth2_scopes=[],
187189
security_source=get_security_from_env(

src/orq_ai_sdk/files.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def create(
7878

7979
http_res = self.do_request(
8080
hook_ctx=HookContext(
81+
base_url=base_url or "",
8182
operation_id="FileUpload",
8283
oauth2_scopes=[],
8384
security_source=get_security_from_env(
@@ -182,6 +183,7 @@ async def create_async(
182183

183184
http_res = await self.do_request_async(
184185
hook_ctx=HookContext(
186+
base_url=base_url or "",
185187
operation_id="FileUpload",
186188
oauth2_scopes=[],
187189
security_source=get_security_from_env(
@@ -283,6 +285,7 @@ def list(
283285

284286
http_res = self.do_request(
285287
hook_ctx=HookContext(
288+
base_url=base_url or "",
286289
operation_id="FileList",
287290
oauth2_scopes=[],
288291
security_source=get_security_from_env(
@@ -384,6 +387,7 @@ async def list_async(
384387

385388
http_res = await self.do_request_async(
386389
hook_ctx=HookContext(
390+
base_url=base_url or "",
387391
operation_id="FileList",
388392
oauth2_scopes=[],
389393
security_source=get_security_from_env(
@@ -479,6 +483,7 @@ def get(
479483

480484
http_res = self.do_request(
481485
hook_ctx=HookContext(
486+
base_url=base_url or "",
482487
operation_id="FileGet",
483488
oauth2_scopes=[],
484489
security_source=get_security_from_env(
@@ -574,6 +579,7 @@ async def get_async(
574579

575580
http_res = await self.do_request_async(
576581
hook_ctx=HookContext(
582+
base_url=base_url or "",
577583
operation_id="FileGet",
578584
oauth2_scopes=[],
579585
security_source=get_security_from_env(
@@ -667,6 +673,7 @@ def delete(
667673

668674
http_res = self.do_request(
669675
hook_ctx=HookContext(
676+
base_url=base_url or "",
670677
operation_id="FileDelete",
671678
oauth2_scopes=[],
672679
security_source=get_security_from_env(
@@ -758,6 +765,7 @@ async def delete_async(
758765

759766
http_res = await self.do_request_async(
760767
hook_ctx=HookContext(
768+
base_url=base_url or "",
761769
operation_id="FileDelete",
762770
oauth2_scopes=[],
763771
security_source=get_security_from_env(

src/orq_ai_sdk/metrics.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ def create(
118118

119119
http_res = self.do_request(
120120
hook_ctx=HookContext(
121+
base_url=base_url or "",
121122
operation_id="DeploymentCreateMetric",
122123
oauth2_scopes=[],
123124
security_source=get_security_from_env(
@@ -262,6 +263,7 @@ async def create_async(
262263

263264
http_res = await self.do_request_async(
264265
hook_ctx=HookContext(
266+
base_url=base_url or "",
265267
operation_id="DeploymentCreateMetric",
266268
oauth2_scopes=[],
267269
security_source=get_security_from_env(

src/orq_ai_sdk/models/createcontactop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ class CreateContactResponseBody(BaseModel):
134134
created: Optional[datetime] = None
135135
r"""The date and time the resource was created"""
136136

137-
updated: Optional[datetime] = dateutil.parser.isoparse("2025-02-11T21:32:14.991Z")
137+
updated: Optional[datetime] = dateutil.parser.isoparse("2025-02-12T08:12:00.486Z")
138138
r"""The date and time the resource was last updated"""
139139

140140
@model_serializer(mode="wrap")

src/orq_ai_sdk/models/filegetop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@ class FileGetResponseBody(BaseModel):
6060
workspace_id: str
6161
r"""The id of the resource"""
6262

63-
created: Optional[datetime] = dateutil.parser.isoparse("2025-02-11T21:32:16.292Z")
63+
created: Optional[datetime] = dateutil.parser.isoparse("2025-02-12T08:12:01.623Z")
6464
r"""The date and time the resource was created"""

src/orq_ai_sdk/models/filelistop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class FileListData(BaseModel):
7575
workspace_id: str
7676
r"""The id of the resource"""
7777

78-
created: Optional[datetime] = dateutil.parser.isoparse("2025-02-11T21:32:16.292Z")
78+
created: Optional[datetime] = dateutil.parser.isoparse("2025-02-12T08:12:01.623Z")
7979
r"""The date and time the resource was created"""
8080

8181

src/orq_ai_sdk/models/fileuploadop.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,5 +94,5 @@ class FileUploadResponseBody(BaseModel):
9494
workspace_id: str
9595
r"""The id of the resource"""
9696

97-
created: Optional[datetime] = dateutil.parser.isoparse("2025-02-11T21:32:16.292Z")
97+
created: Optional[datetime] = dateutil.parser.isoparse("2025-02-12T08:12:01.623Z")
9898
r"""The date and time the resource was created"""

0 commit comments

Comments
 (0)