Skip to content

Commit 73b8380

Browse files
feat(api): manual updates
1 parent 32114ac commit 73b8380

3 files changed

Lines changed: 16 additions & 16 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 7
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/browserbase%2Fstagehand-991d1530002115ecec027f98cad357d39ca1ece6784f62d48e6740b8830e1104.yml
33
openapi_spec_hash: 303329893ced56b2c129fb9fd666144e
4-
config_hash: 3906b0eb870b3efb11f24b0069668c94
4+
config_hash: 3ad8653f1cf35720ac8f2f8643969e15

cmd/stagehand/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
func main() {
1818
app := cmd.Command
1919
if err := app.Run(context.Background(), os.Args); err != nil {
20-
var apierr *stagehand.Error
20+
var apierr *stagehandsdk.Error
2121
if errors.As(err, &apierr) {
2222
fmt.Fprintf(os.Stderr, "%s %q: %d %s\n", apierr.Request.Method, apierr.Request.URL, apierr.Response.StatusCode, http.StatusText(apierr.Response.StatusCode))
2323
format := app.String("format-error")

pkg/cmd/session.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ var sessionsStart = requestflag.WithInnerFlags(cli.Command{
509509
})
510510

511511
func handleSessionsAct(ctx context.Context, cmd *cli.Command) error {
512-
client := stagehand.NewClient(getDefaultRequestOptions(cmd)...)
512+
client := stagehandsdk.NewClient(getDefaultRequestOptions(cmd)...)
513513
unusedArgs := cmd.Args().Slice()
514514
if !cmd.IsSet("id") && len(unusedArgs) > 0 {
515515
cmd.Set("id", unusedArgs[0])
@@ -519,7 +519,7 @@ func handleSessionsAct(ctx context.Context, cmd *cli.Command) error {
519519
return fmt.Errorf("Unexpected extra arguments: %v", unusedArgs)
520520
}
521521

522-
params := stagehand.SessionActParams{}
522+
params := stagehandsdk.SessionActParams{}
523523

524524
options, err := flagOptions(
525525
cmd,
@@ -544,7 +544,7 @@ func handleSessionsAct(ctx context.Context, cmd *cli.Command) error {
544544
}
545545

546546
func handleSessionsEnd(ctx context.Context, cmd *cli.Command) error {
547-
client := stagehand.NewClient(getDefaultRequestOptions(cmd)...)
547+
client := stagehandsdk.NewClient(getDefaultRequestOptions(cmd)...)
548548
unusedArgs := cmd.Args().Slice()
549549
if !cmd.IsSet("id") && len(unusedArgs) > 0 {
550550
cmd.Set("id", unusedArgs[0])
@@ -554,7 +554,7 @@ func handleSessionsEnd(ctx context.Context, cmd *cli.Command) error {
554554
return fmt.Errorf("Unexpected extra arguments: %v", unusedArgs)
555555
}
556556

557-
params := stagehand.SessionEndParams{}
557+
params := stagehandsdk.SessionEndParams{}
558558

559559
options, err := flagOptions(
560560
cmd,
@@ -586,7 +586,7 @@ func handleSessionsEnd(ctx context.Context, cmd *cli.Command) error {
586586
}
587587

588588
func handleSessionsExecute(ctx context.Context, cmd *cli.Command) error {
589-
client := stagehand.NewClient(getDefaultRequestOptions(cmd)...)
589+
client := stagehandsdk.NewClient(getDefaultRequestOptions(cmd)...)
590590
unusedArgs := cmd.Args().Slice()
591591
if !cmd.IsSet("id") && len(unusedArgs) > 0 {
592592
cmd.Set("id", unusedArgs[0])
@@ -596,7 +596,7 @@ func handleSessionsExecute(ctx context.Context, cmd *cli.Command) error {
596596
return fmt.Errorf("Unexpected extra arguments: %v", unusedArgs)
597597
}
598598

599-
params := stagehand.SessionExecuteParams{}
599+
params := stagehandsdk.SessionExecuteParams{}
600600

601601
options, err := flagOptions(
602602
cmd,
@@ -621,7 +621,7 @@ func handleSessionsExecute(ctx context.Context, cmd *cli.Command) error {
621621
}
622622

623623
func handleSessionsExtract(ctx context.Context, cmd *cli.Command) error {
624-
client := stagehand.NewClient(getDefaultRequestOptions(cmd)...)
624+
client := stagehandsdk.NewClient(getDefaultRequestOptions(cmd)...)
625625
unusedArgs := cmd.Args().Slice()
626626
if !cmd.IsSet("id") && len(unusedArgs) > 0 {
627627
cmd.Set("id", unusedArgs[0])
@@ -631,7 +631,7 @@ func handleSessionsExtract(ctx context.Context, cmd *cli.Command) error {
631631
return fmt.Errorf("Unexpected extra arguments: %v", unusedArgs)
632632
}
633633

634-
params := stagehand.SessionExtractParams{}
634+
params := stagehandsdk.SessionExtractParams{}
635635

636636
options, err := flagOptions(
637637
cmd,
@@ -656,7 +656,7 @@ func handleSessionsExtract(ctx context.Context, cmd *cli.Command) error {
656656
}
657657

658658
func handleSessionsNavigate(ctx context.Context, cmd *cli.Command) error {
659-
client := stagehand.NewClient(getDefaultRequestOptions(cmd)...)
659+
client := stagehandsdk.NewClient(getDefaultRequestOptions(cmd)...)
660660
unusedArgs := cmd.Args().Slice()
661661
if !cmd.IsSet("id") && len(unusedArgs) > 0 {
662662
cmd.Set("id", unusedArgs[0])
@@ -666,7 +666,7 @@ func handleSessionsNavigate(ctx context.Context, cmd *cli.Command) error {
666666
return fmt.Errorf("Unexpected extra arguments: %v", unusedArgs)
667667
}
668668

669-
params := stagehand.SessionNavigateParams{}
669+
params := stagehandsdk.SessionNavigateParams{}
670670

671671
options, err := flagOptions(
672672
cmd,
@@ -698,7 +698,7 @@ func handleSessionsNavigate(ctx context.Context, cmd *cli.Command) error {
698698
}
699699

700700
func handleSessionsObserve(ctx context.Context, cmd *cli.Command) error {
701-
client := stagehand.NewClient(getDefaultRequestOptions(cmd)...)
701+
client := stagehandsdk.NewClient(getDefaultRequestOptions(cmd)...)
702702
unusedArgs := cmd.Args().Slice()
703703
if !cmd.IsSet("id") && len(unusedArgs) > 0 {
704704
cmd.Set("id", unusedArgs[0])
@@ -708,7 +708,7 @@ func handleSessionsObserve(ctx context.Context, cmd *cli.Command) error {
708708
return fmt.Errorf("Unexpected extra arguments: %v", unusedArgs)
709709
}
710710

711-
params := stagehand.SessionObserveParams{}
711+
params := stagehandsdk.SessionObserveParams{}
712712

713713
options, err := flagOptions(
714714
cmd,
@@ -733,14 +733,14 @@ func handleSessionsObserve(ctx context.Context, cmd *cli.Command) error {
733733
}
734734

735735
func handleSessionsStart(ctx context.Context, cmd *cli.Command) error {
736-
client := stagehand.NewClient(getDefaultRequestOptions(cmd)...)
736+
client := stagehandsdk.NewClient(getDefaultRequestOptions(cmd)...)
737737
unusedArgs := cmd.Args().Slice()
738738

739739
if len(unusedArgs) > 0 {
740740
return fmt.Errorf("Unexpected extra arguments: %v", unusedArgs)
741741
}
742742

743-
params := stagehand.SessionStartParams{}
743+
params := stagehandsdk.SessionStartParams{}
744744

745745
options, err := flagOptions(
746746
cmd,

0 commit comments

Comments
 (0)