Skip to content

Commit 95b47dd

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.456.0
1 parent fbbc69a commit 95b47dd

File tree

953 files changed

+522
-36247
lines changed

Some content is hidden

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

953 files changed

+522
-36247
lines changed

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
speakeasyVersion: 1.455.5
1+
speakeasyVersion: 1.456.0
22
sources:
33
orq-ai-sdk-prerelease-python:
44
sourceNamespace: orq-ai-sdk-prerelease-python
5-
sourceRevisionDigest: sha256:c7315cd6af5156b06e7a6ff1d8cfeb9419772a981863c9488d93c5f61708d41e
6-
sourceBlobDigest: sha256:681ec46f6a6da4f5b0517da2ea671dd014626d4882afc16d2fd1fd50fbe3c8b4
5+
sourceRevisionDigest: sha256:ddde6a2051ffdb41723fad3a9926396369a873bc9a5fc451801d4644287a0b07
6+
sourceBlobDigest: sha256:50e17411344ec12e10192e00c84c37f0cd6dadb1de208b2cd85aeabb994ada5b
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1733176525
9+
- speakeasy-sdk-regen-1734470266
1010
- "2.0"
1111
orq-ai-sdk-python:
1212
sourceNamespace: orq-ai-sdk-python
@@ -20,10 +20,10 @@ targets:
2020
orq-ai-sdk-prerelease-python:
2121
source: orq-ai-sdk-prerelease-python
2222
sourceNamespace: orq-ai-sdk-prerelease-python
23-
sourceRevisionDigest: sha256:c7315cd6af5156b06e7a6ff1d8cfeb9419772a981863c9488d93c5f61708d41e
24-
sourceBlobDigest: sha256:681ec46f6a6da4f5b0517da2ea671dd014626d4882afc16d2fd1fd50fbe3c8b4
23+
sourceRevisionDigest: sha256:ddde6a2051ffdb41723fad3a9926396369a873bc9a5fc451801d4644287a0b07
24+
sourceBlobDigest: sha256:50e17411344ec12e10192e00c84c37f0cd6dadb1de208b2cd85aeabb994ada5b
2525
codeSamplesNamespace: orq-ai-sdk-prerelease-python-code-samples
26-
codeSamplesRevisionDigest: sha256:9b6468b0a8ec6d328b9f89a1a36bfcd324f17b51d7e0190f3246594444418a71
26+
codeSamplesRevisionDigest: sha256:12e0a7aea54872770fa97d9cbaa28ccbd660442d81bb67d78b3a50a8fa855977
2727
orq-ai-sdk-python:
2828
source: orq-ai-sdk-python
2929
sourceNamespace: orq-ai-sdk-python

packages/orq-rc/.speakeasy/gen.lock

Lines changed: 9 additions & 916 deletions
Large diffs are not rendered by default.

packages/orq-rc/README.md

Lines changed: 67 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,14 @@ import os
8888

8989
with Orq(
9090
api_key=os.getenv("ORQ_API_KEY", ""),
91-
) as s:
92-
res = s.contacts.create(external_id="<id>")
91+
) as orq:
9392

94-
if res is not None:
95-
# handle response
96-
pass
93+
res = orq.contacts.create(external_id="<id>")
94+
95+
assert res is not None
96+
97+
# Handle response
98+
print(res)
9799
```
98100

99101
</br>
@@ -108,12 +110,14 @@ import os
108110
async def main():
109111
async with Orq(
110112
api_key=os.getenv("ORQ_API_KEY", ""),
111-
) as s:
112-
res = await s.contacts.create_async(external_id="<id>")
113+
) as orq:
114+
115+
res = await orq.contacts.create_async(external_id="<id>")
116+
117+
assert res is not None
113118

114-
if res is not None:
115-
# handle response
116-
pass
119+
# Handle response
120+
print(res)
117121

118122
asyncio.run(main())
119123
```
@@ -137,12 +141,14 @@ import os
137141

138142
with Orq(
139143
api_key=os.getenv("ORQ_API_KEY", ""),
140-
) as s:
141-
res = s.contacts.create(external_id="<id>")
144+
) as orq:
142145

143-
if res is not None:
144-
# handle response
145-
pass
146+
res = orq.contacts.create(external_id="<id>")
147+
148+
assert res is not None
149+
150+
# Handle response
151+
print(res)
146152

147153
```
148154
<!-- End Authentication [security] -->
@@ -178,27 +184,6 @@ with Orq(
178184
* [bulk_upload](docs/sdks/files/README.md#bulk_upload) - Bulk upload file
179185

180186

181-
### [prompt](docs/sdks/prompt/README.md)
182-
183-
184-
#### [prompt.snippets](docs/sdks/snippets/README.md)
185-
186-
* [find_one](docs/sdks/snippets/README.md#find_one) - Get one prompt snippet
187-
188-
#### [prompt.templates](docs/sdks/templates/README.md)
189-
190-
* [get_all](docs/sdks/templates/README.md#get_all) - Get all prompt templates
191-
192-
### [prompts](docs/sdks/prompts/README.md)
193-
194-
* [create](docs/sdks/prompts/README.md#create) - Create a new prompt
195-
* [create_version](docs/sdks/prompts/README.md#create_version) - Create a new prompt version
196-
* [delete](docs/sdks/prompts/README.md#delete) - Delete a prompt
197-
* [get_one](docs/sdks/prompts/README.md#get_one) - Get one prompt
198-
* [update](docs/sdks/prompts/README.md#update) - Update a prompt
199-
* [duplicate](docs/sdks/prompts/README.md#duplicate) - Duplicate a prompt
200-
* [get_all](docs/sdks/prompts/README.md#get_all) - Get all prompts
201-
202187
### [remoteconfig](docs/sdks/remoteconfig/README.md)
203188

204189
* [get_config](docs/sdks/remoteconfig/README.md#get_config) - Get Configurations
@@ -224,14 +209,16 @@ import os
224209

225210
with Orq(
226211
api_key=os.getenv("ORQ_API_KEY", ""),
227-
) as s:
228-
res = s.deployments.invoke(key="<key>")
212+
) as orq:
213+
214+
res = orq.deployments.invoke(key="<key>")
229215

230-
if res is not None:
231-
with res as event_stream:
232-
for event in event_stream:
233-
# handle event
234-
print(event, flush=True)
216+
assert res is not None
217+
218+
with res as event_stream:
219+
for event in event_stream:
220+
# handle event
221+
print(event, flush=True)
235222

236223
```
237224

@@ -256,12 +243,14 @@ import os
256243

257244
with Orq(
258245
api_key=os.getenv("ORQ_API_KEY", ""),
259-
) as s:
260-
res = s.files.upload()
246+
) as orq:
247+
248+
res = orq.files.upload()
261249

262-
if res is not None:
263-
# handle response
264-
pass
250+
assert res is not None
251+
252+
# Handle response
253+
print(res)
265254

266255
```
267256
<!-- End File uploads [file-upload] -->
@@ -273,37 +262,41 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
273262

274263
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
275264
```python
276-
from orq.utils import BackoffStrategy, RetryConfig
277265
from orq_ai_sdk import Orq
266+
from orq_ai_sdk.utils import BackoffStrategy, RetryConfig
278267
import os
279268

280269
with Orq(
281270
api_key=os.getenv("ORQ_API_KEY", ""),
282-
) as s:
283-
res = s.contacts.create(external_id="<id>",
271+
) as orq:
272+
273+
res = orq.contacts.create(external_id="<id>",
284274
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
285275

286-
if res is not None:
287-
# handle response
288-
pass
276+
assert res is not None
277+
278+
# Handle response
279+
print(res)
289280

290281
```
291282

292283
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
293284
```python
294-
from orq.utils import BackoffStrategy, RetryConfig
295285
from orq_ai_sdk import Orq
286+
from orq_ai_sdk.utils import BackoffStrategy, RetryConfig
296287
import os
297288

298289
with Orq(
299290
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
300291
api_key=os.getenv("ORQ_API_KEY", ""),
301-
) as s:
302-
res = s.contacts.create(external_id="<id>")
292+
) as orq:
303293

304-
if res is not None:
305-
# handle response
306-
pass
294+
res = orq.contacts.create(external_id="<id>")
295+
296+
assert res is not None
297+
298+
# Handle response
299+
print(res)
307300

308301
```
309302
<!-- End Retries [retries] -->
@@ -337,14 +330,16 @@ import os
337330

338331
with Orq(
339332
api_key=os.getenv("ORQ_API_KEY", ""),
340-
) as s:
333+
) as orq:
341334
res = None
342335
try:
343-
res = s.deployments.all()
344336

345-
if res is not None:
346-
# handle response
347-
pass
337+
res = orq.deployments.all()
338+
339+
assert res is not None
340+
341+
# Handle response
342+
print(res)
348343

349344
except models.HonoAPIError as e:
350345
# handle e.data: models.HonoAPIErrorData
@@ -368,12 +363,14 @@ import os
368363
with Orq(
369364
server_url="https://my.staging.orq.ai",
370365
api_key=os.getenv("ORQ_API_KEY", ""),
371-
) as s:
372-
res = s.contacts.create(external_id="<id>")
366+
) as orq:
367+
368+
res = orq.contacts.create(external_id="<id>")
369+
370+
assert res is not None
373371

374-
if res is not None:
375-
# handle response
376-
pass
372+
# Handle response
373+
print(res)
377374

378375
```
379376
<!-- End Server Selection [server] -->

packages/orq-rc/RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,14 @@ Based on:
1818
### Generated
1919
- [python v1.31.0-rc.12] packages/orq-rc
2020
### Releases
21-
- [PyPI v1.31.0-rc.12] https://pypi.org/project/orq-ai-sdk/1.31.0-rc.12 - packages/orq-rc
21+
- [PyPI v1.31.0-rc.12] https://pypi.org/project/orq-ai-sdk/1.31.0-rc.12 - packages/orq-rc
22+
23+
## 2024-12-17 21:17:43
24+
### Changes
25+
Based on:
26+
- OpenAPI Doc
27+
- Speakeasy CLI 1.456.0 (2.481.0) https://github.com/speakeasy-api/speakeasy
28+
### Generated
29+
- [python v1.32.0-rc.5] packages/orq-rc
30+
### Releases
31+
- [PyPI v1.32.0-rc.5] https://pypi.org/project/orq-ai-sdk/1.32.0-rc.5 - packages/orq-rc

packages/orq-rc/USAGE.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@ import os
66

77
with Orq(
88
api_key=os.getenv("ORQ_API_KEY", ""),
9-
) as s:
10-
res = s.contacts.create(external_id="<id>")
9+
) as orq:
1110

12-
if res is not None:
13-
# handle response
14-
pass
11+
res = orq.contacts.create(external_id="<id>")
12+
13+
assert res is not None
14+
15+
# Handle response
16+
print(res)
1517
```
1618

1719
</br>
@@ -26,12 +28,14 @@ import os
2628
async def main():
2729
async with Orq(
2830
api_key=os.getenv("ORQ_API_KEY", ""),
29-
) as s:
30-
res = await s.contacts.create_async(external_id="<id>")
31+
) as orq:
32+
33+
res = await orq.contacts.create_async(external_id="<id>")
34+
35+
assert res is not None
3136

32-
if res is not None:
33-
# handle response
34-
pass
37+
# Handle response
38+
print(res)
3539

3640
asyncio.run(main())
3741
```

packages/orq-rc/docs/models/createprompt21.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/orq-rc/docs/models/createprompt22.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/orq-rc/docs/models/createprompt2imageurl.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

packages/orq-rc/docs/models/createprompt2prompts1.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

packages/orq-rc/docs/models/createprompt2prompts2.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)