Skip to content

Commit 1f50f93

Browse files
feat(gateway): first-class BASIC auth mechanism (#11063)
1 parent a931408 commit 1f50f93

4 files changed

Lines changed: 20 additions & 8 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: 121
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-093c44f8ed1154c727f281b89d15dcc628edb2fb705c0155ebcdfa48f4a81d48.yml
3-
openapi_spec_hash: 9fbaad9832de897a6e6e319483ddeb6c
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-7b9d926e46ee0dca27286795e6d90d3ba75643c897ea21c3ce05a7d999a1d33b.yml
3+
openapi_spec_hash: 19d9c8ceae252900eca5fbb84eb19285
44
config_hash: 2b0535779b180339d10766ba74a96700

‎src/runloop_api_client/types/gateway_config_create_params.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,11 @@ class AuthMechanism(TypedDict, total=False):
3535
"""
3636

3737
type: Required[str]
38-
"""The type of authentication mechanism: 'header', 'bearer'."""
38+
"""The type of authentication mechanism: 'header', 'bearer', or 'basic'.
39+
40+
For 'basic', store the secret as plain 'user:pass'; the gateway base64-encodes
41+
it.
42+
"""
3943

4044
key: Optional[str]
41-
"""For 'header' type: the header name (e.g., 'x-api-key')."""
45+
"""Only valid for 'header' type: the header name (e.g., 'x-api-key')."""

‎src/runloop_api_client/types/gateway_config_update_params.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ class AuthMechanism(TypedDict, total=False):
3131
"""
3232

3333
type: Required[str]
34-
"""The type of authentication mechanism: 'header', 'bearer'."""
34+
"""The type of authentication mechanism: 'header', 'bearer', or 'basic'.
35+
36+
For 'basic', store the secret as plain 'user:pass'; the gateway base64-encodes
37+
it.
38+
"""
3539

3640
key: Optional[str]
37-
"""For 'header' type: the header name (e.g., 'x-api-key')."""
41+
"""Only valid for 'header' type: the header name (e.g., 'x-api-key')."""

‎src/runloop_api_client/types/gateway_config_view.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,14 @@ class AuthMechanism(BaseModel):
1111
"""How credentials should be applied to proxied requests."""
1212

1313
type: str
14-
"""The type of authentication mechanism: 'header', 'bearer'."""
14+
"""The type of authentication mechanism: 'header', 'bearer', or 'basic'.
15+
16+
For 'basic', store the secret as plain 'user:pass'; the gateway base64-encodes
17+
it.
18+
"""
1519

1620
key: Optional[str] = None
17-
"""For 'header' type: the header name (e.g., 'x-api-key')."""
21+
"""Only valid for 'header' type: the header name (e.g., 'x-api-key')."""
1822

1923

2024
class GatewayConfigView(BaseModel):

0 commit comments

Comments
 (0)