From 0096a079dd1ad3293f04f0586685f087e05fc6df Mon Sep 17 00:00:00 2001 From: Thomas Rooney Date: Thu, 5 Sep 2024 15:50:09 +0100 Subject: [PATCH] chore: migrate to speakeasy.com (#914) --- .goreleaser.yaml | 6 ++--- README.md | 44 ++++++++++++++++---------------- cmd/api.go | 2 +- cmd/configure.go | 2 +- cmd/generate/sdk.go | 14 +++++----- cmd/sample_openapi.yaml | 4 +-- cmd/status.go | 2 +- cmd/tag.go | 2 +- docs/generate/sdk/README.md | 14 +++++----- go.mod | 2 +- go.sum | 2 ++ install.sh | 2 +- integration/resources/part1.yaml | 4 +-- integration/resources/part2.yaml | 4 +-- integration/resources/spec.yaml | 4 +-- internal/ask/ask.go | 2 +- internal/github/github.go | 2 +- internal/log/logProxy.go | 2 +- internal/run/target.go | 2 +- internal/sdkgen/sdkgen.go | 2 +- internal/studio/sdk/README.md | 8 +++--- 21 files changed, 64 insertions(+), 62 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index b4c8cdeb..d56851e7 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -34,7 +34,7 @@ brews: repository: owner: speakeasy-api name: homebrew-tap - homepage: https://www.speakeasyapi.dev + homepage: https://www.speakeasy.com description: The Speakeasy CLI for interacting with the Speakeasy Platform license: Apache-2.0 test: | @@ -43,7 +43,7 @@ brews: repository: owner: speakeasy-api name: homebrew-tap - homepage: https://www.speakeasyapi.dev + homepage: https://www.speakeasy.com description: The Speakeasy CLI for interacting with the Speakeasy Platform license: Apache-2.0 test: | @@ -58,7 +58,7 @@ chocolateys: copyright: 2023 Speakeasy, Inc license_url: https://github.com/speakeasy-api/speakeasy/blob/main/LICENSE project_source_url: https://github.com/speakeasy-api/speakeasy - docs_url: https://speakeasyapi.dev/docs/speakeasy-cli + docs_url: https://speakeasy.com/docs/speakeasy-cli bug_tracker_url: https://github.com/speakeasy-api/speakeasy/issues tags: openapi api codegen validation speakeasy llm client-libraries sdks summary: Speakeasy CLI makes validating API specs and generating idiomatic SDKs easy! diff --git a/README.md b/README.md index 0e05c604..de2d19d0 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@
- + Speakeasy Logo

Enterprise-Ready Developer Experience for your REST API

Launch production-quality SDKs, Terraform providers, docs, and more in minutes :rocket:

@@ -10,7 +10,7 @@

-
+ ![Group 26](https://github.com/speakeasy-api/speakeasy/assets/68016351/159f0565-0cfa-468a-8fcd-7c3590eea355) @@ -21,7 +21,7 @@ ## What is Speakeasy? -[Speakeasy](https://www.speakeasyapi.dev/) gives your users the developer experience that makes API integrations easy. +[Speakeasy](https://www.speakeasy.com/) gives your users the developer experience that makes API integrations easy. Don't put the burden of integration on your users. Take your APIs to market with best-in-class, enterprise-ready SDKs, Terraform providers, SDK docs, and more. @@ -40,9 +40,9 @@ For upcoming features and bug fixes, check out our [public roadmap](https://gith ## What is the Speakeasy CLI? -The [Speakeasy CLI](https://www.speakeasyapi.dev/docs/speakeasy-cli/getting-started) is a tool for interacting with the Speakeasy platform that brings the functionality of Speakeasy into your development workflow. +The [Speakeasy CLI](https://www.speakeasy.com/docs/speakeasy-cli/getting-started) is a tool for interacting with the Speakeasy platform that brings the functionality of Speakeasy into your development workflow. -You can run the Speakeasy CLI locally or in your CI/CD pipeline to validate your API specs, generate SDKs, and more. Looking to embed this into your GitHub CI/CD? Check out [these docs](https://speakeasyapi.dev/docs/create-client-sdks/github-setup/) instead. +You can run the Speakeasy CLI locally or in your CI/CD pipeline to validate your API specs, generate SDKs, and more. Looking to embed this into your GitHub CI/CD? Check out [these docs](https://speakeasy.com/docs/create-client-sdks/github-setup/) instead. Here are a few key functions of the CLI: @@ -54,7 +54,7 @@ Here are a few key functions of the CLI: * `auth` - Authenticate with the platform and manage API keys. * `status` - Review all SDK/targets in current workspace. -For a complete list of commands check out our [reference](https://www.speakeasyapi.dev/docs/speakeasy-cli/getting-started) or type `speakeasy` and our interactive mode will take you through the available functions. +For a complete list of commands check out our [reference](https://www.speakeasy.com/docs/speakeasy-cli/getting-started) or type `speakeasy` and our interactive mode will take you through the available functions. ## Design Choices @@ -67,11 +67,11 @@ Here are some of the Speakeasy design decisions: * Based on the configuration in the OpenAPI document, Speakeasy annotates types using reflection metadata to determine how to serialize and deserialize them. * To get SDKs to your end users quickly, Speakeasy generates full packages for each language that you should be able to publish to a package registry with little additional work. If you're interested in having a managed pipeline to your package manager, check out the Speakeasy Generation GitHub Action. -Want to learn more about the Speakeasy methodology? Take a look at [how the Speakeasy SDK generator compares to OSS options](https://www.speakeasyapi.dev/post/client-sdks-as-a-service). +Want to learn more about the Speakeasy methodology? Take a look at [how the Speakeasy SDK generator compares to OSS options](https://www.speakeasy.com/post/client-sdks-as-a-service). -If you're interested in generating managed GitHub repos for your SDKs or enterprise support, [reach out to us](https://www.speakeasyapi.dev/request-access) or [schedule a chat](https://calendly.com/d/drw-t98-rpq/simon-sagar-speakeasy). We'd love to help you build out API DevEx. +If you're interested in generating managed GitHub repos for your SDKs or enterprise support, [reach out to us](https://www.speakeasy.com/request-access) or [schedule a chat](https://calendly.com/d/drw-t98-rpq/simon-sagar-speakeasy). We'd love to help you build out API DevEx. -If you're interested in having managed GitHub repos generated for your SDKs or enterprise support, [reach out to us](https://www.speakeasyapi.dev/request-access) or [schedule a chat](https://calendly.com/d/drw-t98-rpq/simon-sagar-speakeasy). We'd love to help you build out API DevEx. +If you're interested in having managed GitHub repos generated for your SDKs or enterprise support, [reach out to us](https://www.speakeasy.com/request-access) or [schedule a chat](https://calendly.com/d/drw-t98-rpq/simon-sagar-speakeasy). We'd love to help you build out API DevEx. > Speakeasy may capture metadata on usage of the Speakeasy CLI to better understand OpenAPI features so that we can build better code generators and other tools over time. @@ -117,7 +117,7 @@ Once you have installed the Speakeasy CLI, you can verify it's working by runnin speakeasy --help ``` -See the Speakeasy docs for [how to get started with the Speakeasy CLI](https://www.speakeasyapi.dev/docs/speakeasy-cli/getting-started). +See the Speakeasy docs for [how to get started with the Speakeasy CLI](https://www.speakeasy.com/docs/speakeasy-cli/getting-started). ### Authenticating the Speakeasy CLI @@ -126,7 +126,7 @@ The Speakeasy CLI depends on Speakeasy Platform APIs. Connect your Speakeasy CLI ```bash speakeasy auth login ``` -You'll be redirected to a login URL to select an existing workspace or create a new workspace on the platform. If your local network prevents you from accessing the login page prompted by the CLI, you can log in manually at [app.speakeasyapi.dev](https://app.speakeasyapi.dev), retrieve an API key, and populate a local environment variable named `SPEAKEASY_API_KEY` with the key. +You'll be redirected to a login URL to select an existing workspace or create a new workspace on the platform. If your local network prevents you from accessing the login page prompted by the CLI, you can log in manually at [app.speakeasy.com](https://app.speakeasy.com), retrieve an API key, and populate a local environment variable named `SPEAKEASY_API_KEY` with the key. Screenshot 2023-01-29 at 23 12 05 @@ -150,7 +150,7 @@ speakeasy generate sdk [flags] -y, --auto-yes string auto answer yes to all prompts ``` -Take a look at the Speakeasy [getting started](https://www.speakeasyapi.dev/docs/speakeasy-cli/getting-started) page for in-depth information. +Take a look at the Speakeasy [getting started](https://www.speakeasy.com/docs/speakeasy-cli/getting-started) page for in-depth information. ## Schema Validation @@ -293,19 +293,19 @@ The tables below give an overview of what we support from OpenAPI. ## Advanced Generation Features -* [SDK Gen Configuration](https://speakeasyapi.dev/docs/using-speakeasy/create-client-sdks/customize-sdks/intro/) - Learn how to configure the SDK generator to your needs. -* [Generated Comments](https://speakeasyapi.dev/docs/using-speakeasy/create-client-sdks/sdk-docs/#comments) - Learn how comments are generated from your OpenAPI document and how to customize them. -* [Configuring the SDK with Server URLs](https://speakeasyapi.dev/docs/using-speakeasy/create-client-sdks/customize-sdks/servers/) - Learn how to configure the SDK to use different server URLs for different environments. -* [Readme Generation](https://speakeasyapi.dev/docs/using-speakeasy/create-client-sdks/sdk-docs/) - Learn how the SDK generates README.md files and how to control this. -* [Using Custom HTTP Clients With the SDK](https://speakeasyapi.dev/docs/using-speakeasy/create-client-sdks/customize-sdks/custom-http-client/) - Learn how to provide a custom HTTP Client to the SDKs at runtime. -* [Capturing Telemetry on SDK Usage](https://speakeasyapi.dev/docs/using-speakeasy/create-client-sdks/sdk-telemetry/) - Learn how you can capture telemetry to get an understanding of how your SDKs are being used. -* [Automated SDK Generation](https://speakeasyapi.dev/docs/using-speakeasy/create-client-sdks/github-setup/) - Use our GitHub Action and Workflows to set up CI/CD for generating and publishing your SDKs. -* [Override Generated Names](https://speakeasyapi.dev/docs/using-speakeasy/create-client-sdks/customize-sdks/methods/) - Speakeasy uses your OpenAPI schema to infer names for class types, methods, and parameters. However, you can override these names to tailor the generated SDK to your preferences. -* [Add Retries to Your SDKs](https://speakeasyapi.dev/docs/using-speakeasy/create-client-sdks/customize-sdks/retries/) - The generator supports the ability to generate SDKs that will automatically retry requests that fail due to network errors or any configured HTTP status code. +* [SDK Gen Configuration](https://speakeasy.com/docs/using-speakeasy/create-client-sdks/customize-sdks/intro/) - Learn how to configure the SDK generator to your needs. +* [Generated Comments](https://speakeasy.com/docs/using-speakeasy/create-client-sdks/sdk-docs/#comments) - Learn how comments are generated from your OpenAPI document and how to customize them. +* [Configuring the SDK with Server URLs](https://speakeasy.com/docs/using-speakeasy/create-client-sdks/customize-sdks/servers/) - Learn how to configure the SDK to use different server URLs for different environments. +* [Readme Generation](https://speakeasy.com/docs/using-speakeasy/create-client-sdks/sdk-docs/) - Learn how the SDK generates README.md files and how to control this. +* [Using Custom HTTP Clients With the SDK](https://speakeasy.com/docs/using-speakeasy/create-client-sdks/customize-sdks/custom-http-client/) - Learn how to provide a custom HTTP Client to the SDKs at runtime. +* [Capturing Telemetry on SDK Usage](https://speakeasy.com/docs/using-speakeasy/create-client-sdks/sdk-telemetry/) - Learn how you can capture telemetry to get an understanding of how your SDKs are being used. +* [Automated SDK Generation](https://speakeasy.com/docs/using-speakeasy/create-client-sdks/github-setup/) - Use our GitHub Action and Workflows to set up CI/CD for generating and publishing your SDKs. +* [Override Generated Names](https://speakeasy.com/docs/using-speakeasy/create-client-sdks/customize-sdks/methods/) - Speakeasy uses your OpenAPI schema to infer names for class types, methods, and parameters. However, you can override these names to tailor the generated SDK to your preferences. +* [Add Retries to Your SDKs](https://speakeasy.com/docs/using-speakeasy/create-client-sdks/customize-sdks/retries/) - The generator supports the ability to generate SDKs that will automatically retry requests that fail due to network errors or any configured HTTP status code. ## Getting Support -If you need support using the Speakeasy CLI, please contact us via [email](info@speakeasyapi.dev), on [Slack](https://join.slack.com/t/speakeasy-dev/shared_invite/zt-1df0lalk5-HCAlpcQiqPw8vGukQWhexw), or file a GitHub issue and we'll respond ASAP! +If you need support using the Speakeasy CLI, please contact us via [email](info@speakeasy.com), on [Slack](https://join.slack.com/t/speakeasy-dev/shared_invite/zt-1df0lalk5-HCAlpcQiqPw8vGukQWhexw), or file a GitHub issue and we'll respond ASAP! diff --git a/cmd/api.go b/cmd/api.go index daafb94e..4ae0c94e 100644 --- a/cmd/api.go +++ b/cmd/api.go @@ -10,7 +10,7 @@ var apiCmd = &cobra.Command{ Use: "api", Short: "Access the Speakeasy API via the CLI", Long: `Provides access to the Speakeasy API via the CLI. -To authenticate with the Speakeasy API, you must first create an API key via https://app.speakeasyapi.dev +To authenticate with the Speakeasy API, you must first create an API key via https://app.speakeasy.com and then set the SPEAKEASY_API_KEY environment variable to the value of the API key.`, RunE: interactivity.InteractiveRunFn("Choose an API endpoint:"), Hidden: true, diff --git a/cmd/configure.go b/cmd/configure.go index 23755e61..c80ceed9 100644 --- a/cmd/configure.go +++ b/cmd/configure.go @@ -35,7 +35,7 @@ const ( appInstallationLink = "https://github.com/apps/speakeasy-github/installations/new" repositorySecretPath = "Settings > Secrets & Variables > Actions" actionsPath = "Actions > Generate" - githubSetupDocs = "https://www.speakeasyapi.dev/docs/advanced-setup/github-setup" + githubSetupDocs = "https://www.speakeasy.com/docs/advanced-setup/github-setup" appInstallURL = "https://github.com/apps/speakeasy-github" ) diff --git a/cmd/generate/sdk.go b/cmd/generate/sdk.go index 208656d5..191f85f7 100644 --- a/cmd/generate/sdk.go +++ b/cmd/generate/sdk.go @@ -130,7 +130,7 @@ go: version: 0.1.0 generate: # baseServerUrl is optional, if not specified it will use the server URL from the OpenAPI document - baseServerUrl: https://api.speakeasyapi.dev + baseServerUrl: https://api.speakeasy.com `+"```"+` Example gen.yaml file for Python SDK: @@ -143,7 +143,7 @@ python: author: Speakeasy API generate: # baseServerUrl is optional, if not specified it will use the server URL from the OpenAPI document - baseServerUrl: https://api.speakeasyapi.dev + baseServerUrl: https://api.speakeasy.com `+"```"+` Example gen.yaml file for Typescript SDK: @@ -155,7 +155,7 @@ typescript: author: Speakeasy API generate: # baseServerUrl is optional, if not specified it will use the server URL from the OpenAPI document - baseServerUrl: https://api.speakeasyapi.dev + baseServerUrl: https://api.speakeasy.com `+"```"+` Example gen.yaml file for Java SDK: @@ -168,7 +168,7 @@ java: version: 0.1.0 generate: # baseServerUrl is optional, if not specified it will use the server URL from the OpenAPI document - baseServerUrl: https://api.speakeasyapi.dev + baseServerUrl: https://api.speakeasy.com `+"```"+` Example gen.yaml file for PHP SDK: @@ -180,7 +180,7 @@ php: version: 0.1.0 generate: # baseServerUrl is optional, if not specified it will use the server URL from the OpenAPI document - baseServerUrl: https://api.speakeasyapi.dev + baseServerUrl: https://api.speakeasy.com `+"```"+` Example gen.yaml file for C# SDK: @@ -193,8 +193,8 @@ csharp: packageName: SpeakeasySDK generate: # baseServerUrl is optional, if not specified it will use the server URL from the OpenAPI document - baseServerUrl: https://api.speakeasyapi.dev + baseServerUrl: https://api.speakeasy.com `+"```"+` -For additional documentation visit: https://docs.speakeasyapi.dev/docs/using-speakeasy/create-client-sdks/intro +For additional documentation visit: https://speakeasy.com/docs/using-speakeasy/create-client-sdks/intro `, strings.Join(SDKSupportedLanguageTargets(), "\n - ")) diff --git a/cmd/sample_openapi.yaml b/cmd/sample_openapi.yaml index 374784e2..5b9d6d11 100644 --- a/cmd/sample_openapi.yaml +++ b/cmd/sample_openapi.yaml @@ -5,12 +5,12 @@ info: This is a sample Pet Store Server based on the OpenAPI 3.1 specification. Some useful links: - - [OpenAPI Reference](https://www.speakeasyapi.dev/openapi) + - [OpenAPI Reference](https://www.speakeasy.com/openapi) - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore) - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml) termsOfService: http://swagger.io/terms/ contact: - email: support@speakeasyapi.dev + email: support@speakeasy.com license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html diff --git a/cmd/status.go b/cmd/status.go index fbb079c3..985888a1 100644 --- a/cmd/status.go +++ b/cmd/status.go @@ -508,7 +508,7 @@ func newStatusWorkspaceTargetModel(ctx context.Context, client *speakeasyclients hostname: target.Hostname, id: target.ID, lastEventCreatedAt: target.LastEventCreatedAt, - speakeasyURL: links.Shorten(ctx, fmt.Sprintf("https://app.speakeasyapi.dev/org/%s/%s/targets/%s", org.slug, workspace.slug, target.ID)), + speakeasyURL: links.Shorten(ctx, fmt.Sprintf("https://app.speakeasy.com/org/%s/%s/targets/%s", org.slug, workspace.slug, target.ID)), success: target.Success, } diff --git a/cmd/tag.go b/cmd/tag.go index 8fe58e89..95a1fae8 100644 --- a/cmd/tag.go +++ b/cmd/tag.go @@ -204,7 +204,7 @@ func printSuccessMsg(ctx context.Context, namespaceName, revisionDigest string, msg += fmt.Sprintf(" to %s", styles.HeavilyEmphasized.Render(strings.Join(usedBy, ", "))) } - url := fmt.Sprintf("https://app.speakeasyapi.dev/org/%s/%s/apis/%s/%s", org, workspace, namespaceName, revisionDigest) + url := fmt.Sprintf("https://app.speakeasy.com/org/%s/%s/apis/%s/%s", org, workspace, namespaceName, revisionDigest) logger := log.From(ctx) logger.Success(msg) diff --git a/docs/generate/sdk/README.md b/docs/generate/sdk/README.md index 78751ca5..d99305e3 100644 --- a/docs/generate/sdk/README.md +++ b/docs/generate/sdk/README.md @@ -37,7 +37,7 @@ go: version: 0.1.0 generate: # baseServerUrl is optional, if not specified it will use the server URL from the OpenAPI document - baseServerUrl: https://api.speakeasyapi.dev + baseServerUrl: https://api.speakeasy.com ``` Example gen.yaml file for Python SDK: @@ -50,7 +50,7 @@ python: author: Speakeasy API generate: # baseServerUrl is optional, if not specified it will use the server URL from the OpenAPI document - baseServerUrl: https://api.speakeasyapi.dev + baseServerUrl: https://api.speakeasy.com ``` Example gen.yaml file for Typescript SDK: @@ -62,7 +62,7 @@ typescript: author: Speakeasy API generate: # baseServerUrl is optional, if not specified it will use the server URL from the OpenAPI document - baseServerUrl: https://api.speakeasyapi.dev + baseServerUrl: https://api.speakeasy.com ``` Example gen.yaml file for Java SDK: @@ -75,7 +75,7 @@ java: version: 0.1.0 generate: # baseServerUrl is optional, if not specified it will use the server URL from the OpenAPI document - baseServerUrl: https://api.speakeasyapi.dev + baseServerUrl: https://api.speakeasy.com ``` Example gen.yaml file for PHP SDK: @@ -87,7 +87,7 @@ php: version: 0.1.0 generate: # baseServerUrl is optional, if not specified it will use the server URL from the OpenAPI document - baseServerUrl: https://api.speakeasyapi.dev + baseServerUrl: https://api.speakeasy.com ``` Example gen.yaml file for C# SDK: @@ -100,10 +100,10 @@ csharp: packageName: SpeakeasySDK generate: # baseServerUrl is optional, if not specified it will use the server URL from the OpenAPI document - baseServerUrl: https://api.speakeasyapi.dev + baseServerUrl: https://api.speakeasy.com ``` -For additional documentation visit: https://docs.speakeasyapi.dev/docs/using-speakeasy/create-client-sdks/intro +For additional documentation visit: https://speakeasy.com/docs/using-speakeasy/create-client-sdks/intro ## Usage diff --git a/go.mod b/go.mod index 73b73053..37f9f9ea 100644 --- a/go.mod +++ b/go.mod @@ -28,7 +28,7 @@ require ( github.com/speakeasy-api/openapi-overlay v0.9.0 github.com/speakeasy-api/sdk-gen-config v1.19.0 github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.13.0 - github.com/speakeasy-api/speakeasy-core v0.14.4 + github.com/speakeasy-api/speakeasy-core v0.15.0 github.com/speakeasy-api/speakeasy-proxy v0.0.2 github.com/spf13/cobra v1.8.1 github.com/spf13/pflag v1.0.5 diff --git a/go.sum b/go.sum index 352967bb..ee784453 100644 --- a/go.sum +++ b/go.sum @@ -528,6 +528,8 @@ github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.13.0 h1:MLLjjf2x2h9HFZY1A github.com/speakeasy-api/speakeasy-client-sdk-go/v3 v3.13.0/go.mod h1:b4fiZ1Wid0JHwwiYqhaPifDwjmC15uiN7A8Cmid+9kw= github.com/speakeasy-api/speakeasy-core v0.14.4 h1:RnyPV7mvCjt3DjOEjPVvdorXvQ9MNJZmUGkz35wdqgw= github.com/speakeasy-api/speakeasy-core v0.14.4/go.mod h1:m10zRjzdzbTcBBb9e+RweBZ4OIowXCvvvxFB3UEmWYs= +github.com/speakeasy-api/speakeasy-core v0.15.0 h1:GzJdvi6L+CMiFdRafAu5RtMXyAuVQ4UYWSbHvomIX3I= +github.com/speakeasy-api/speakeasy-core v0.15.0/go.mod h1:m10zRjzdzbTcBBb9e+RweBZ4OIowXCvvvxFB3UEmWYs= github.com/speakeasy-api/speakeasy-go-sdk v1.8.1 h1:atzohw12oQ5ipaLb1q7ntTu4vvAgKDJsrvaUoOu6sw0= github.com/speakeasy-api/speakeasy-go-sdk v1.8.1/go.mod h1:XbzaM0sMjj8bGooz/uEtNkOh1FQiJK7RFuNG3LPBSAU= github.com/speakeasy-api/speakeasy-proxy v0.0.2 h1:u4rQ8lXvuYRCSxiLQGb5JxkZRwNIDlyh+pMFYD6OGjA= diff --git a/install.sh b/install.sh index 894e5d04..45630f5a 100755 --- a/install.sh +++ b/install.sh @@ -4,7 +4,7 @@ set -e # Adapted/Copied from https://raw.githubusercontent.com/daveshanley/vacuum/main/bin/install.sh # # Speakeasy CLI -# https://speakeasyapi.dev/docs/speakeasy-cli/getting-started/ +# https://speakeasy.com/docs/speakeasy-cli/getting-started/ # # Designed for quick installs over the network and CI/CD # curl -fsSL https://raw.githubusercontent.com/speakeasy-api/speakeasy/main/install.sh | sh diff --git a/integration/resources/part1.yaml b/integration/resources/part1.yaml index d1430117..f29c5edd 100644 --- a/integration/resources/part1.yaml +++ b/integration/resources/part1.yaml @@ -5,12 +5,12 @@ info: This is a sample Pet Store Server based on the OpenAPI 3.1 specification. Some useful links: - - [OpenAPI Reference](https://www.speakeasyapi.dev/openapi) + - [OpenAPI Reference](https://www.speakeasy.com/openapi) - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore) - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml) termsOfService: http://swagger.io/terms/ contact: - email: support@speakeasyapi.dev + email: support@speakeasy.com license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html diff --git a/integration/resources/part2.yaml b/integration/resources/part2.yaml index e9e78414..15c4b11b 100644 --- a/integration/resources/part2.yaml +++ b/integration/resources/part2.yaml @@ -5,12 +5,12 @@ info: This is a sample Pet Store Server based on the OpenAPI 3.1 specification. Some useful links: - - [OpenAPI Reference](https://www.speakeasyapi.dev/openapi) + - [OpenAPI Reference](https://www.speakeasy.com/openapi) - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore) - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml) termsOfService: http://swagger.io/terms/ contact: - email: support@speakeasyapi.dev + email: support@speakeasy.com license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html diff --git a/integration/resources/spec.yaml b/integration/resources/spec.yaml index 374784e2..5b9d6d11 100644 --- a/integration/resources/spec.yaml +++ b/integration/resources/spec.yaml @@ -5,12 +5,12 @@ info: This is a sample Pet Store Server based on the OpenAPI 3.1 specification. Some useful links: - - [OpenAPI Reference](https://www.speakeasyapi.dev/openapi) + - [OpenAPI Reference](https://www.speakeasy.com/openapi) - [The Pet Store repository](https://github.com/swagger-api/swagger-petstore) - [The source API definition for the Pet Store](https://github.com/swagger-api/swagger-petstore/blob/master/src/main/resources/openapi.yaml) termsOfService: http://swagger.io/terms/ contact: - email: support@speakeasyapi.dev + email: support@speakeasy.com license: name: Apache 2.0 url: http://www.apache.org/licenses/LICENSE-2.0.html diff --git a/internal/ask/ask.go b/internal/ask/ask.go index 09492365..a906a4d0 100644 --- a/internal/ask/ask.go +++ b/internal/ask/ask.go @@ -35,7 +35,7 @@ type ChatResponse struct { Message string `json:"Message"` } -const ApiURL = "https://api.prod.speakeasyapi.dev" +const ApiURL = "https://api.prod.speakeasy.com" var baseURL = ApiURL diff --git a/internal/github/github.go b/internal/github/github.go index 5ecb975e..49cf5a31 100644 --- a/internal/github/github.go +++ b/internal/github/github.go @@ -164,7 +164,7 @@ func GenerateWorkflowSummary(ctx context.Context, summary WorkflowSummary) { md = fmt.Sprintf("# Generation Workflow Summary\n\n_This is a breakdown of the 'Generate Target' step above_\n%s", chart) } else { logger.Error("failed to generate github workflow summary", zap.Error(err)) - md = "# Generation Workflow Summary\n\n:stop_sign: Failed to generate workflow summary. Please try again or [contact support](mailto:support@speakeasyapi.dev)." + md = "# Generation Workflow Summary\n\n:stop_sign: Failed to generate workflow summary. Please try again or [contact support](mailto:support@speakeasy.com)." } githubactions.AddStepSummary(md) diff --git a/internal/log/logProxy.go b/internal/log/logProxy.go index 70f65422..5d9aca94 100644 --- a/internal/log/logProxy.go +++ b/internal/log/logProxy.go @@ -14,7 +14,7 @@ import ( "time" ) -const defaultAPIURL = "https://api.prod.speakeasyapi.dev" +const defaultAPIURL = "https://api.prod.speakeasy.com" type logProxyLevel string diff --git a/internal/run/target.go b/internal/run/target.go index 8e83d5cf..00314770 100644 --- a/internal/run/target.go +++ b/internal/run/target.go @@ -218,7 +218,7 @@ func (w *Workflow) runTarget(ctx context.Context, target string) (*SourceResult, workspaceSlug := auth.GetWorkspaceSlugFromContext(ctx) genLockID := sdkgen.GetGenLockID(outDir) if orgSlug != "" && workspaceSlug != "" && genLockID != nil && *genLockID != "" && !utils.IsZeroTelemetryOrganization(ctx) { - w.SDKOverviewURLs[target] = fmt.Sprintf("https://app.speakeasyapi.dev/org/%s/%s/targets/%s", orgSlug, workspaceSlug, *genLockID) + w.SDKOverviewURLs[target] = fmt.Sprintf("https://app.speakeasy.com/org/%s/%s/targets/%s", orgSlug, workspaceSlug, *genLockID) } w.lockfile.Targets[target] = targetLock diff --git a/internal/sdkgen/sdkgen.go b/internal/sdkgen/sdkgen.go index 8ed65a77..d3c1d686 100644 --- a/internal/sdkgen/sdkgen.go +++ b/internal/sdkgen/sdkgen.go @@ -146,7 +146,7 @@ func Generate(ctx context.Context, customerID, workspaceID, lang, schemaPath, he }, err } - sdkDocsLink := "https://www.speakeasyapi.dev/docs/customize-sdks" + sdkDocsLink := "https://www.speakeasy.com/docs/customize-sdks" logger.Successf("\nSDK for %s generated successfully ✓", lang) logger.WithStyle(styles.HeavilyEmphasized).Printf("For docs on customising the SDK check out: %s", sdkDocsLink) diff --git a/internal/studio/sdk/README.md b/internal/studio/sdk/README.md index c4da3175..6ca6cc9c 100644 --- a/internal/studio/sdk/README.md +++ b/internal/studio/sdk/README.md @@ -1,7 +1,7 @@ # github.com/speakeasy-api/speakeasy/internal/run/studio/generated-studio-sdk
- + @@ -11,9 +11,9 @@ ## 🏗 **Welcome to your new SDK!** 🏗 It has been generated successfully based on your OpenAPI spec. However, it is not yet ready for production use. Here are some next steps: -- [ ] 🛠 Make your SDK feel handcrafted by [customizing it](https://www.speakeasyapi.dev/docs/customize-sdks) +- [ ] 🛠 Make your SDK feel handcrafted by [customizing it](https://www.speakeasy.com/docs/customize-sdks) - [ ] ♻️ Refine your SDK quickly by iterating locally with the [Speakeasy CLI](https://github.com/speakeasy-api/speakeasy) -- [ ] 🎁 Publish your SDK to package managers by [configuring automatic publishing](https://www.speakeasyapi.dev/docs/advanced-setup/publish-sdks) +- [ ] 🎁 Publish your SDK to package managers by [configuring automatic publishing](https://www.speakeasy.com/docs/advanced-setup/publish-sdks) - [ ] ✨ When ready to productionize, delete this section from the README @@ -466,4 +466,4 @@ looking for the latest version. While we value open-source contributions to this SDK, this library is generated programmatically. Any manual changes added to internal files will be overwritten on the next generation. We look forward to hearing your feedback. Feel free to open a PR or an issue with a proof of concept and we'll do our best to include it in a future release. -### SDK Created by [Speakeasy](https://docs.speakeasyapi.dev/docs/using-speakeasy/client-sdks) +### SDK Created by [Speakeasy](https://speakeasy.com/docs/using-speakeasy/client-sdks)