Skip to content

Commit 8809e1c

Browse files
feat(api): manual updates
1 parent 4c2fcc1 commit 8809e1c

File tree

9 files changed

+23
-23
lines changed

9 files changed

+23
-23
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 16
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/stainless%2Fstainless-v0-0eed0c3c47bb630ed692f2de1c5228e3e1a29f52489851aecc0b9f9f3b5bce61.yml
33
openapi_spec_hash: c62aa08b1662b81b6ede9e298e4f1882
4-
config_hash: 8a921dfc8d183e865a02718de6783412
4+
config_hash: 2161cb69f5b32b6423d993cc6746ecce

cmd/stl/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
func main() {
1616
app := cmd.Command
1717
if err := app.Run(context.Background(), os.Args); err != nil {
18-
var apierr *stainlessv0.Error
18+
var apierr *stainless.Error
1919
if errors.As(err, &apierr) {
2020
fmt.Printf("%s\n", cmd.ColorizeJSON(apierr.RawJSON(), os.Stderr))
2121
} else {

pkg/cmd/build.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ func handleBuildsCreate(ctx context.Context, cmd *cli.Command) error {
311311
return err
312312
}
313313
Progress("Creating build...")
314-
params := stainlessv0.BuildNewParams{}
314+
params := stainless.BuildNewParams{}
315315
res, err := cc.client.Builds.New(
316316
context.TODO(),
317317
params,
@@ -559,7 +559,7 @@ func pullOutput(output, url, ref, targetDir string) error {
559559

560560
func handleBuildsList(ctx context.Context, cmd *cli.Command) error {
561561
cc := getAPICommandContext(cmd)
562-
params := stainlessv0.BuildListParams{}
562+
params := stainless.BuildListParams{}
563563
res, err := cc.client.Builds.List(
564564
context.TODO(),
565565
params,
@@ -575,7 +575,7 @@ func handleBuildsList(ctx context.Context, cmd *cli.Command) error {
575575

576576
func handleBuildsCompare(ctx context.Context, cmd *cli.Command) error {
577577
cc := getAPICommandContext(cmd)
578-
params := stainlessv0.BuildCompareParams{}
578+
params := stainless.BuildCompareParams{}
579579
res, err := cc.client.Builds.Compare(
580580
context.TODO(),
581581
params,

pkg/cmd/builddiagnostic.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ var buildsDiagnosticsList = cli.Command{
6262

6363
func handleBuildsDiagnosticsList(ctx context.Context, cmd *cli.Command) error {
6464
cc := getAPICommandContext(cmd)
65-
params := stainlessv0.BuildDiagnosticListParams{}
65+
params := stainless.BuildDiagnosticListParams{}
6666
res, err := cc.client.Builds.Diagnostics.List(
6767
context.TODO(),
6868
cmd.Value("build-id").(string),

pkg/cmd/buildtargetoutput.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ var buildsTargetOutputsRetrieve = cli.Command{
5454

5555
func handleBuildsTargetOutputsRetrieve(ctx context.Context, cmd *cli.Command) error {
5656
cc := getAPICommandContext(cmd)
57-
params := stainlessv0.BuildTargetOutputGetParams{}
57+
params := stainless.BuildTargetOutputGetParams{}
5858
res, err := cc.client.Builds.TargetOutputs.Get(
5959
context.TODO(),
6060
params,

pkg/cmd/project.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ func handleProjectsCreate(ctx context.Context, cmd *cli.Command) error {
308308
}
309309
}
310310

311-
params := stainlessv0.ProjectNewParams{}
311+
params := stainless.ProjectNewParams{}
312312
res, err := cc.client.Projects.New(
313313
context.TODO(),
314314
params,
@@ -349,9 +349,9 @@ func handleProjectsCreate(ctx context.Context, cmd *cli.Command) error {
349349

350350
func handleProjectsRetrieve(ctx context.Context, cmd *cli.Command) error {
351351
cc := getAPICommandContext(cmd)
352-
params := stainlessv0.ProjectGetParams{}
352+
params := stainless.ProjectGetParams{}
353353
if cmd.IsSet("project") {
354-
params.Project = stainlessv0.String(cmd.Value("project").(string))
354+
params.Project = stainless.String(cmd.Value("project").(string))
355355
}
356356
res, err := cc.client.Projects.Get(
357357
context.TODO(),
@@ -368,9 +368,9 @@ func handleProjectsRetrieve(ctx context.Context, cmd *cli.Command) error {
368368

369369
func handleProjectsUpdate(ctx context.Context, cmd *cli.Command) error {
370370
cc := getAPICommandContext(cmd)
371-
params := stainlessv0.ProjectUpdateParams{}
371+
params := stainless.ProjectUpdateParams{}
372372
if cmd.IsSet("project") {
373-
params.Project = stainlessv0.String(cmd.Value("project").(string))
373+
params.Project = stainless.String(cmd.Value("project").(string))
374374
}
375375
res, err := cc.client.Projects.Update(
376376
context.TODO(),
@@ -387,7 +387,7 @@ func handleProjectsUpdate(ctx context.Context, cmd *cli.Command) error {
387387

388388
func handleProjectsList(ctx context.Context, cmd *cli.Command) error {
389389
cc := getAPICommandContext(cmd)
390-
params := stainlessv0.ProjectListParams{}
390+
params := stainless.ProjectListParams{}
391391
res, err := cc.client.Projects.List(
392392
context.TODO(),
393393
params,

pkg/cmd/projectbranch.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ var projectsBranchesRetrieve = cli.Command{
6464

6565
func handleProjectsBranchesCreate(ctx context.Context, cmd *cli.Command) error {
6666
cc := getAPICommandContext(cmd)
67-
params := stainlessv0.ProjectBranchNewParams{}
67+
params := stainless.ProjectBranchNewParams{}
6868
if cmd.IsSet("project") {
69-
params.Project = stainlessv0.String(cmd.Value("project").(string))
69+
params.Project = stainless.String(cmd.Value("project").(string))
7070
}
7171
res, err := cc.client.Projects.Branches.New(
7272
context.TODO(),
@@ -83,9 +83,9 @@ func handleProjectsBranchesCreate(ctx context.Context, cmd *cli.Command) error {
8383

8484
func handleProjectsBranchesRetrieve(ctx context.Context, cmd *cli.Command) error {
8585
cc := getAPICommandContext(cmd)
86-
params := stainlessv0.ProjectBranchGetParams{}
86+
params := stainless.ProjectBranchGetParams{}
8787
if cmd.IsSet("project") {
88-
params.Project = stainlessv0.String(cmd.Value("project").(string))
88+
params.Project = stainless.String(cmd.Value("project").(string))
8989
}
9090
res, err := cc.client.Projects.Branches.Get(
9191
context.TODO(),

pkg/cmd/projectconfig.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ var projectsConfigsGuess = cli.Command{
6060

6161
func handleProjectsConfigsRetrieve(ctx context.Context, cmd *cli.Command) error {
6262
cc := getAPICommandContext(cmd)
63-
params := stainlessv0.ProjectConfigGetParams{}
63+
params := stainless.ProjectConfigGetParams{}
6464
if cmd.IsSet("project") {
65-
params.Project = stainlessv0.String(cmd.Value("project").(string))
65+
params.Project = stainless.String(cmd.Value("project").(string))
6666
}
6767
res := []byte{}
6868
_, err := cc.client.Projects.Configs.Get(
@@ -81,9 +81,9 @@ func handleProjectsConfigsRetrieve(ctx context.Context, cmd *cli.Command) error
8181

8282
func handleProjectsConfigsGuess(ctx context.Context, cmd *cli.Command) error {
8383
cc := getAPICommandContext(cmd)
84-
params := stainlessv0.ProjectConfigGuessParams{}
84+
params := stainless.ProjectConfigGuessParams{}
8585
if cmd.IsSet("project") {
86-
params.Project = stainlessv0.String(cmd.Value("project").(string))
86+
params.Project = stainless.String(cmd.Value("project").(string))
8787
}
8888
res := []byte{}
8989
_, err := cc.client.Projects.Configs.Guess(

pkg/cmd/util.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func getDefaultRequestOptions(cmd *cli.Command) []option.RequestOption {
4040
}
4141

4242
type apiCommandContext struct {
43-
client stainlessv0.Client
43+
client stainless.Client
4444
cmd *cli.Command
4545
}
4646

@@ -136,7 +136,7 @@ func (c apiCommandContext) AsMiddleware() option.Middleware {
136136
}
137137

138138
func getAPICommandContext(cmd *cli.Command) *apiCommandContext {
139-
client := stainlessv0.NewClient(getDefaultRequestOptions(cmd)...)
139+
client := stainless.NewClient(getDefaultRequestOptions(cmd)...)
140140
return &apiCommandContext{client, cmd}
141141
}
142142

0 commit comments

Comments
 (0)