Skip to content

Commit ed324c5

Browse files
feat(portal): support tunnel authorization header (#9597)
1 parent 4cafa17 commit ed324c5

2 files changed

Lines changed: 12 additions & 9 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: 120
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-96b0ac0a148db6fde2e8363ea2dcfaa63f2dc23cf35c30c5fcfffbefc222e5d1.yml
3-
openapi_spec_hash: 01b9dbab4b732e4b83952debd108e404
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/runloop-ai/runloop-1fc91661b27bb65f33c23969c150c99919820c6750b0f40dfad0d22e8827a82c.yml
3+
openapi_spec_hash: 2659e11dc1a69ec327f5e7bb0c0c6fe2
44
config_hash: ed1fdd7c9f0a25647e16b602bad4ff2e

src/resources/devboxes/devboxes.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ export class Devboxes extends APIResource {
169169
/**
170170
* Create an ephemeral authenticated tunnel for terminal access to a running
171171
* Devbox. This tunnel is not persisted on the Devbox and is generated fresh on
172-
* each request. The returned auth_token must be passed as a Bearer token in the
173-
* Authorization header.
172+
* each request. The returned auth_token should be passed as a Bearer token in the
173+
* X-Runloop-Tunnel-Authorization header.
174174
*/
175175
createPtyTunnel(id: string, options?: Core.RequestOptions): Core.APIPromise<PtyTunnelView> {
176176
return this._client.post(`/v1/devboxes/${id}/create_pty_tunnel`, options);
@@ -929,7 +929,8 @@ export interface DevboxView {
929929
* running inside a Devbox without requiring direct network access. Each tunnel is
930930
* uniquely identified by an encrypted tunnel_key and can be configured for either
931931
* open (public) or authenticated access. Usage:
932-
* https://{port}-{tunnel_key}.tunnel.runloop.ai
932+
* https://{port}-{tunnel_key}.tunnel.runloop.ai. Authenticated tunnels should pass
933+
* auth_token as X-Runloop-Tunnel-Authorization: Bearer {auth_token}.
933934
*/
934935
tunnel?: TunnelView | null;
935936
}
@@ -994,11 +995,12 @@ export namespace DevboxView {
994995
* An ephemeral PTY tunnel providing authenticated terminal access to a Devbox.
995996
* These tunnels are not stored on the Devbox and are generated fresh on each
996997
* request. Usage: https://{port}-{tunnel_key}.tunnel.runloop.ai with
997-
* Authorization: Bearer {auth_token}
998+
* X-Runloop-Tunnel-Authorization: Bearer {auth_token}.
998999
*/
9991000
export interface PtyTunnelView {
10001001
/**
1001-
* Bearer token for tunnel authentication. Always required for PTY tunnels.
1002+
* Bearer token for tunnel authentication. Always required for PTY tunnels. Pass as
1003+
* X-Runloop-Tunnel-Authorization: Bearer {auth_token}.
10021004
*/
10031005
auth_token: string;
10041006

@@ -1015,7 +1017,8 @@ export interface PtyTunnelView {
10151017
* running inside a Devbox without requiring direct network access. Each tunnel is
10161018
* uniquely identified by an encrypted tunnel_key and can be configured for either
10171019
* open (public) or authenticated access. Usage:
1018-
* https://{port}-{tunnel_key}.tunnel.runloop.ai
1020+
* https://{port}-{tunnel_key}.tunnel.runloop.ai. Authenticated tunnels should pass
1021+
* auth_token as X-Runloop-Tunnel-Authorization: Bearer {auth_token}.
10191022
*/
10201023
export interface TunnelView {
10211024
/**
@@ -1048,7 +1051,7 @@ export interface TunnelView {
10481051

10491052
/**
10501053
* Bearer token for tunnel authentication. Only present when auth_mode is
1051-
* 'authenticated'.
1054+
* 'authenticated'. Pass as X-Runloop-Tunnel-Authorization: Bearer {auth_token}.
10521055
*/
10531056
auth_token?: string | null;
10541057
}

0 commit comments

Comments
 (0)