Skip to content

Commit 25054a8

Browse files
feat: Browser API endpoint grouping
1 parent b7a3f0e commit 25054a8

File tree

6 files changed

+39
-39
lines changed

6 files changed

+39
-39
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 108
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-f967d3024897a6125d5d18c4577dbb2cc22d742d487e6a43165198685f992379.yml
3-
openapi_spec_hash: e1c40ef0aee3a79168eb9cc854a9e403
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-848817f2b20afb49a652952c814b99e27a94090e0770465e9a87748d27e227a7.yml
3+
openapi_spec_hash: 91efb805e45cdd4c73cd8b0950bef019
44
config_hash: 3b1fbbb6bda0dac7e8b42e155cd7da56

src/kernel/resources/auth/connections.py

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ def create(
7070
extra_body: Body | None = None,
7171
timeout: float | httpx.Timeout | None | NotGiven = not_given,
7272
) -> ManagedAuth:
73-
"""Creates managed authentication for a profile and domain combination.
73+
"""Creates an auth connection for a profile and domain combination.
7474
7575
Returns 409
76-
Conflict if managed auth already exists for the given profile and domain.
76+
Conflict if an auth connection already exists for the given profile and domain.
7777
7878
Args:
7979
domain: Domain for authentication
@@ -99,7 +99,7 @@ def create(
9999
- Ping Identity: _.pingone.com, _.pingidentity.com
100100
101101
credential:
102-
Reference to credentials for managed auth. Use one of:
102+
Reference to credentials for the auth connection. Use one of:
103103
104104
- { name } for Kernel credentials
105105
- { provider, path } for external provider item
@@ -153,10 +153,10 @@ def retrieve(
153153
extra_body: Body | None = None,
154154
timeout: float | httpx.Timeout | None | NotGiven = not_given,
155155
) -> ManagedAuth:
156-
"""Retrieve managed auth by its ID.
156+
"""Retrieve an auth connection by its ID.
157157
158-
Includes current flow state if a login is in
159-
progress.
158+
Includes current flow state if a login is
159+
in progress.
160160
161161
Args:
162162
extra_headers: Send extra headers
@@ -192,7 +192,7 @@ def list(
192192
timeout: float | httpx.Timeout | None | NotGiven = not_given,
193193
) -> SyncOffsetPagination[ManagedAuth]:
194194
"""
195-
List managed auths with optional filters for profile_name and domain.
195+
List auth connections with optional filters for profile_name and domain.
196196
197197
Args:
198198
domain: Filter by domain
@@ -243,11 +243,11 @@ def delete(
243243
extra_body: Body | None = None,
244244
timeout: float | httpx.Timeout | None | NotGiven = not_given,
245245
) -> None:
246-
"""Deletes managed auth and terminates its workflow.
246+
"""Deletes an auth connection and terminates its workflow.
247247
248248
This will:
249249
250-
- Delete the managed auth record
250+
- Delete the auth connection record
251251
- Terminate the Temporal workflow
252252
- Cancel any in-progress login flows
253253
@@ -323,10 +323,10 @@ def login(
323323
extra_body: Body | None = None,
324324
timeout: float | httpx.Timeout | None | NotGiven = not_given,
325325
) -> LoginResponse:
326-
"""Starts a login flow for the managed auth.
326+
"""Starts a login flow for the auth connection.
327327
328-
Returns immediately with a hosted URL
329-
for the user to complete authentication, or triggers automatic re-auth if
328+
Returns immediately with a hosted
329+
URL for the user to complete authentication, or triggers automatic re-auth if
330330
credentials are stored.
331331
332332
Args:
@@ -369,8 +369,8 @@ def submit(
369369
) -> SubmitFieldsResponse:
370370
"""Submits field values for the login form.
371371
372-
Poll the managed auth to track progress
373-
and get results.
372+
Poll the auth connection to track
373+
progress and get results.
374374
375375
Args:
376376
fields: Map of field name to value
@@ -443,10 +443,10 @@ async def create(
443443
extra_body: Body | None = None,
444444
timeout: float | httpx.Timeout | None | NotGiven = not_given,
445445
) -> ManagedAuth:
446-
"""Creates managed authentication for a profile and domain combination.
446+
"""Creates an auth connection for a profile and domain combination.
447447
448448
Returns 409
449-
Conflict if managed auth already exists for the given profile and domain.
449+
Conflict if an auth connection already exists for the given profile and domain.
450450
451451
Args:
452452
domain: Domain for authentication
@@ -472,7 +472,7 @@ async def create(
472472
- Ping Identity: _.pingone.com, _.pingidentity.com
473473
474474
credential:
475-
Reference to credentials for managed auth. Use one of:
475+
Reference to credentials for the auth connection. Use one of:
476476
477477
- { name } for Kernel credentials
478478
- { provider, path } for external provider item
@@ -526,10 +526,10 @@ async def retrieve(
526526
extra_body: Body | None = None,
527527
timeout: float | httpx.Timeout | None | NotGiven = not_given,
528528
) -> ManagedAuth:
529-
"""Retrieve managed auth by its ID.
529+
"""Retrieve an auth connection by its ID.
530530
531-
Includes current flow state if a login is in
532-
progress.
531+
Includes current flow state if a login is
532+
in progress.
533533
534534
Args:
535535
extra_headers: Send extra headers
@@ -565,7 +565,7 @@ def list(
565565
timeout: float | httpx.Timeout | None | NotGiven = not_given,
566566
) -> AsyncPaginator[ManagedAuth, AsyncOffsetPagination[ManagedAuth]]:
567567
"""
568-
List managed auths with optional filters for profile_name and domain.
568+
List auth connections with optional filters for profile_name and domain.
569569
570570
Args:
571571
domain: Filter by domain
@@ -616,11 +616,11 @@ async def delete(
616616
extra_body: Body | None = None,
617617
timeout: float | httpx.Timeout | None | NotGiven = not_given,
618618
) -> None:
619-
"""Deletes managed auth and terminates its workflow.
619+
"""Deletes an auth connection and terminates its workflow.
620620
621621
This will:
622622
623-
- Delete the managed auth record
623+
- Delete the auth connection record
624624
- Terminate the Temporal workflow
625625
- Cancel any in-progress login flows
626626
@@ -696,10 +696,10 @@ async def login(
696696
extra_body: Body | None = None,
697697
timeout: float | httpx.Timeout | None | NotGiven = not_given,
698698
) -> LoginResponse:
699-
"""Starts a login flow for the managed auth.
699+
"""Starts a login flow for the auth connection.
700700
701-
Returns immediately with a hosted URL
702-
for the user to complete authentication, or triggers automatic re-auth if
701+
Returns immediately with a hosted
702+
URL for the user to complete authentication, or triggers automatic re-auth if
703703
credentials are stored.
704704
705705
Args:
@@ -742,8 +742,8 @@ async def submit(
742742
) -> SubmitFieldsResponse:
743743
"""Submits field values for the login form.
744744
745-
Poll the managed auth to track progress
746-
and get results.
745+
Poll the auth connection to track
746+
progress and get results.
747747
748748
Args:
749749
fields: Map of field name to value

src/kernel/types/agents/auth_agent.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
class Credential(BaseModel):
13-
"""Reference to credentials for managed auth.
13+
"""Reference to credentials for the auth connection.
1414
1515
Use one of:
1616
- { name } for Kernel credentials
@@ -80,7 +80,7 @@ class AuthAgent(BaseModel):
8080
"""Reason why automatic re-authentication is or is not possible"""
8181

8282
credential: Optional[Credential] = None
83-
"""Reference to credentials for managed auth. Use one of:
83+
"""Reference to credentials for the auth connection. Use one of:
8484
8585
- { name } for Kernel credentials
8686
- { provider, path } for external provider item

src/kernel/types/auth/connection_create_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class ConnectionCreateParams(TypedDict, total=False):
3838
"""
3939

4040
credential: Credential
41-
"""Reference to credentials for managed auth. Use one of:
41+
"""Reference to credentials for the auth connection. Use one of:
4242
4343
- { name } for Kernel credentials
4444
- { provider, path } for external provider item
@@ -61,7 +61,7 @@ class ConnectionCreateParams(TypedDict, total=False):
6161

6262

6363
class Credential(TypedDict, total=False):
64-
"""Reference to credentials for managed auth.
64+
"""Reference to credentials for the auth connection.
6565
6666
Use one of:
6767
- { name } for Kernel credentials

src/kernel/types/auth/login_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class LoginResponse(BaseModel):
1313
"""Response from starting a login flow"""
1414

1515
id: str
16-
"""Managed auth ID"""
16+
"""Auth connection ID"""
1717

1818
flow_expires_at: datetime
1919
"""When the login flow expires"""

src/kernel/types/auth/managed_auth.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
class Credential(BaseModel):
14-
"""Reference to credentials for managed auth.
14+
"""Reference to credentials for the auth connection.
1515
1616
Use one of:
1717
- { name } for Kernel credentials
@@ -70,13 +70,13 @@ class ManagedAuth(BaseModel):
7070
"""
7171

7272
id: str
73-
"""Unique identifier for the managed auth"""
73+
"""Unique identifier for the auth connection"""
7474

7575
domain: str
7676
"""Target domain for authentication"""
7777

7878
profile_name: str
79-
"""Name of the profile associated with this managed auth"""
79+
"""Name of the profile associated with this auth connection"""
8080

8181
status: Literal["AUTHENTICATED", "NEEDS_AUTH"]
8282
"""Current authentication status of the managed profile"""
@@ -112,7 +112,7 @@ class ManagedAuth(BaseModel):
112112
"""Reason why automatic re-authentication is or is not possible"""
113113

114114
credential: Optional[Credential] = None
115-
"""Reference to credentials for managed auth. Use one of:
115+
"""Reference to credentials for the auth connection. Use one of:
116116
117117
- { name } for Kernel credentials
118118
- { provider, path } for external provider item

0 commit comments

Comments
 (0)