Skip to content

Commit 85c5f67

Browse files
feat(api): api update
1 parent 8d8e4b7 commit 85c5f67

5 files changed

Lines changed: 110 additions & 5 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 29
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/arcade-ai%2Farcade-engine-be6f90be8433b813acc6dc79a4eceb1a6577681c634c7b13299e341b6441f13b.yml
3-
openapi_spec_hash: 98600ad55c83ef5d71b3fbac3881f6d0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/arcade-ai%2Farcade-engine-8446c4e394ac1eeeab4eea23ba29649287af8cf410607dc8eea7ad6ec7d39861.yml
3+
openapi_spec_hash: 6127f3474724e78ea9875ee712cfb551
44
config_hash: 00b1a3fd1b197bd253cdd6b7bc360c02

src/arcadepy/types/worker_create_params.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
from __future__ import annotations
44

5+
from typing import Dict
56
from typing_extensions import Required, TypedDict
67

7-
__all__ = ["WorkerCreateParams", "HTTP", "Mcp"]
8+
__all__ = ["WorkerCreateParams", "HTTP", "Mcp", "McpOauth2"]
89

910

1011
class WorkerCreateParams(TypedDict, total=False):
@@ -29,9 +30,25 @@ class HTTP(TypedDict, total=False):
2930
uri: Required[str]
3031

3132

33+
class McpOauth2(TypedDict, total=False):
34+
authorization_url: str
35+
36+
client_id: str
37+
38+
client_secret: str
39+
40+
external_id: str
41+
42+
3243
class Mcp(TypedDict, total=False):
3344
retry: Required[int]
3445

3546
timeout: Required[int]
3647

3748
uri: Required[str]
49+
50+
headers: Dict[str, str]
51+
52+
oauth2: McpOauth2
53+
54+
secrets: Dict[str, str]

src/arcadepy/types/worker_response.py

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import Optional
3+
from typing import Dict, Optional
44
from typing_extensions import Literal
55

66
from .._models import BaseModel
@@ -11,6 +11,9 @@
1111
"HTTP",
1212
"HTTPSecret",
1313
"Mcp",
14+
"McpOauth2",
15+
"McpOauth2ClientSecret",
16+
"McpSecrets",
1417
"Requirements",
1518
"RequirementsAuthorization",
1619
"RequirementsAuthorizationOauth2",
@@ -45,9 +48,49 @@ class HTTP(BaseModel):
4548
uri: Optional[str] = None
4649

4750

51+
class McpOauth2ClientSecret(BaseModel):
52+
binding: Optional[Literal["static", "tenant", "project", "account"]] = None
53+
54+
editable: Optional[bool] = None
55+
56+
exists: Optional[bool] = None
57+
58+
hint: Optional[str] = None
59+
60+
value: Optional[str] = None
61+
62+
63+
class McpOauth2(BaseModel):
64+
authorization_url: Optional[str] = None
65+
66+
client_id: Optional[str] = None
67+
68+
client_secret: Optional[McpOauth2ClientSecret] = None
69+
70+
redirect_uri: Optional[str] = None
71+
72+
73+
class McpSecrets(BaseModel):
74+
binding: Optional[Literal["static", "tenant", "project", "account"]] = None
75+
76+
editable: Optional[bool] = None
77+
78+
exists: Optional[bool] = None
79+
80+
hint: Optional[str] = None
81+
82+
value: Optional[str] = None
83+
84+
4885
class Mcp(BaseModel):
86+
headers: Optional[Dict[str, str]] = None
87+
88+
oauth2: Optional[McpOauth2] = None
89+
4990
retry: Optional[int] = None
5091

92+
secrets: Optional[Dict[str, McpSecrets]] = None
93+
5194
timeout: Optional[int] = None
5295

5396
uri: Optional[str] = None

src/arcadepy/types/worker_update_params.py

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
from __future__ import annotations
44

5+
from typing import Dict
56
from typing_extensions import TypedDict
67

7-
__all__ = ["WorkerUpdateParams", "HTTP", "Mcp"]
8+
__all__ = ["WorkerUpdateParams", "HTTP", "Mcp", "McpOauth2"]
89

910

1011
class WorkerUpdateParams(TypedDict, total=False):
@@ -25,9 +26,23 @@ class HTTP(TypedDict, total=False):
2526
uri: str
2627

2728

29+
class McpOauth2(TypedDict, total=False):
30+
authorization_url: str
31+
32+
client_id: str
33+
34+
client_secret: str
35+
36+
2837
class Mcp(TypedDict, total=False):
38+
headers: Dict[str, str]
39+
40+
oauth2: McpOauth2
41+
2942
retry: int
3043

44+
secrets: Dict[str, str]
45+
3146
timeout: int
3247

3348
uri: str

tests/api_resources/test_workers.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,14 @@ def test_method_create_with_all_params(self, client: Arcade) -> None:
4444
"retry": 0,
4545
"timeout": 1,
4646
"uri": "uri",
47+
"headers": {"foo": "string"},
48+
"oauth2": {
49+
"authorization_url": "authorization_url",
50+
"client_id": "client_id",
51+
"client_secret": "client_secret",
52+
"external_id": "external_id",
53+
},
54+
"secrets": {"foo": "string"},
4755
},
4856
type="type",
4957
)
@@ -92,7 +100,14 @@ def test_method_update_with_all_params(self, client: Arcade) -> None:
92100
"uri": "uri",
93101
},
94102
mcp={
103+
"headers": {"foo": "string"},
104+
"oauth2": {
105+
"authorization_url": "authorization_url",
106+
"client_id": "client_id",
107+
"client_secret": "client_secret",
108+
},
95109
"retry": 0,
110+
"secrets": {"foo": "string"},
96111
"timeout": 1,
97112
"uri": "uri",
98113
},
@@ -352,6 +367,14 @@ async def test_method_create_with_all_params(self, async_client: AsyncArcade) ->
352367
"retry": 0,
353368
"timeout": 1,
354369
"uri": "uri",
370+
"headers": {"foo": "string"},
371+
"oauth2": {
372+
"authorization_url": "authorization_url",
373+
"client_id": "client_id",
374+
"client_secret": "client_secret",
375+
"external_id": "external_id",
376+
},
377+
"secrets": {"foo": "string"},
355378
},
356379
type="type",
357380
)
@@ -400,7 +423,14 @@ async def test_method_update_with_all_params(self, async_client: AsyncArcade) ->
400423
"uri": "uri",
401424
},
402425
mcp={
426+
"headers": {"foo": "string"},
427+
"oauth2": {
428+
"authorization_url": "authorization_url",
429+
"client_id": "client_id",
430+
"client_secret": "client_secret",
431+
},
403432
"retry": 0,
433+
"secrets": {"foo": "string"},
404434
"timeout": 1,
405435
"uri": "uri",
406436
},

0 commit comments

Comments
 (0)