Skip to content

Commit d60d333

Browse files
feat(api): update via SDK Studio
1 parent 23cf4e0 commit d60d333

5 files changed

Lines changed: 12 additions & 13 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: 11
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-64ccdff4ca5d73d79d89e817fe83ccfd3d529696df3e6818c3c75e586ae00801.yml
3-
openapi_spec_hash: 21c7b8757fc0cc9415cda1bc06251de6
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/kernel%2Fkernel-1f7397b87108a992979b665f45bf0aee5b10387e8124f4768c4c7852ba0b23d7.yml
3+
openapi_spec_hash: e5460337788e7eab0d8f05ef2f55086e
44
config_hash: c6bab7ac8da570a5abbcfb19db119b6b

app.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ func NewAppService(opts ...option.RequestOption) (r AppService) {
3838
return
3939
}
4040

41-
// List application versions for the authenticated user. Optionally filter by app
42-
// name and/or version label.
41+
// List applications. Optionally filter by app name and/or version label.
4342
func (r *AppService) List(ctx context.Context, query AppListParams, opts ...option.RequestOption) (res *[]AppListResponse, err error) {
4443
opts = append(r.Options[:], opts...)
4544
path := "apps"

appdeployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func NewAppDeploymentService(opts ...option.RequestOption) (r AppDeploymentServi
4242
return
4343
}
4444

45-
// Deploy a new application
45+
// Deploy a new application and associated actions to Kernel.
4646
func (r *AppDeploymentService) New(ctx context.Context, body AppDeploymentNewParams, opts ...option.RequestOption) (res *AppDeploymentNewResponse, err error) {
4747
opts = append(r.Options[:], opts...)
4848
path := "deploy"

appinvocation.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ func NewAppInvocationService(opts ...option.RequestOption) (r AppInvocationServi
3535
return
3636
}
3737

38-
// Invoke an application
38+
// Invoke an action.
3939
func (r *AppInvocationService) New(ctx context.Context, body AppInvocationNewParams, opts ...option.RequestOption) (res *AppInvocationNewResponse, err error) {
4040
opts = append(r.Options[:], opts...)
4141
path := "invocations"
4242
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
4343
return
4444
}
4545

46-
// Get an app invocation by id
46+
// Get details about an invocation's status and output.
4747
func (r *AppInvocationService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *AppInvocationGetResponse, err error) {
4848
opts = append(r.Options[:], opts...)
4949
if id == "" {
@@ -55,7 +55,7 @@ func (r *AppInvocationService) Get(ctx context.Context, id string, opts ...optio
5555
return
5656
}
5757

58-
// Update invocation status or output
58+
// Update an invocation's status or output.
5959
func (r *AppInvocationService) Update(ctx context.Context, id string, body AppInvocationUpdateParams, opts ...option.RequestOption) (res *AppInvocationUpdateResponse, err error) {
6060
opts = append(r.Options[:], opts...)
6161
if id == "" {

browser.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ func NewBrowserService(opts ...option.RequestOption) (r BrowserService) {
3636
return
3737
}
3838

39-
// Create Browser Session
39+
// Create a new browser session from within an action.
4040
func (r *BrowserService) New(ctx context.Context, body BrowserNewParams, opts ...option.RequestOption) (res *BrowserNewResponse, err error) {
4141
opts = append(r.Options[:], opts...)
4242
path := "browsers"
4343
err = requestconfig.ExecuteNewRequest(ctx, http.MethodPost, path, body, &res, opts...)
4444
return
4545
}
4646

47-
// Get Browser Session by ID
47+
// Get information about a browser session.
4848
func (r *BrowserService) Get(ctx context.Context, id string, opts ...option.RequestOption) (res *BrowserGetResponse, err error) {
4949
opts = append(r.Options[:], opts...)
5050
if id == "" {
@@ -56,15 +56,15 @@ func (r *BrowserService) Get(ctx context.Context, id string, opts ...option.Requ
5656
return
5757
}
5858

59-
// List active browser sessions for the authenticated user
59+
// List active browser sessions
6060
func (r *BrowserService) List(ctx context.Context, opts ...option.RequestOption) (res *[]BrowserListResponse, err error) {
6161
opts = append(r.Options[:], opts...)
6262
path := "browsers"
6363
err = requestconfig.ExecuteNewRequest(ctx, http.MethodGet, path, nil, &res, opts...)
6464
return
6565
}
6666

67-
// Delete a persistent browser session by persistent_id query parameter.
67+
// Delete a persistent browser session by its persistent_id.
6868
func (r *BrowserService) Delete(ctx context.Context, body BrowserDeleteParams, opts ...option.RequestOption) (err error) {
6969
opts = append(r.Options[:], opts...)
7070
opts = append([]option.RequestOption{option.WithHeader("Accept", "")}, opts...)
@@ -73,7 +73,7 @@ func (r *BrowserService) Delete(ctx context.Context, body BrowserDeleteParams, o
7373
return
7474
}
7575

76-
// Delete Browser Session by ID
76+
// Delete a browser session by ID
7777
func (r *BrowserService) DeleteByID(ctx context.Context, id string, opts ...option.RequestOption) (err error) {
7878
opts = append(r.Options[:], opts...)
7979
opts = append([]option.RequestOption{option.WithHeader("Accept", "")}, opts...)

0 commit comments

Comments
 (0)