diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index f135bcf..c221703 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,12 +1,12 @@ -speakeasyVersion: 1.440.0 +speakeasyVersion: 1.440.1 sources: merge-code-samples-into-spec: sourceNamespace: merge-code-samples-into-spec - sourceRevisionDigest: sha256:7c3e3f6df8c9efcc8d1e1b8c2dcd626964ce5e753f03d5397c0d4c4cf0b0efc0 - sourceBlobDigest: sha256:90083248a280936db596819da3f562aa63e24663f9253506c7f369aebaf08c2c + sourceRevisionDigest: sha256:724243ba73d4f652ed5f4786e2768d08180f9f81fb9226d99c4e52630cdf1c84 + sourceBlobDigest: sha256:1f8e46d31b88cb468ed0baa8d05c792c9a7f7618518b3a3303abab93725c0250 tags: - latest - - speakeasy-sdk-regen-1731630184 + - speakeasy-sdk-regen-1731716539 targets: {} workflow: workflowVersion: 1.0.0 diff --git a/openapi-with-code-samples.yaml b/openapi-with-code-samples.yaml index 9affb6e..231f771 100644 --- a/openapi-with-code-samples.yaml +++ b/openapi-with-code-samples.yaml @@ -2488,9 +2488,9 @@ paths: get: operationId: "getCustomers" x-speakeasy-name-override: "list" - summary: "Get a list of customers" + summary: "Retrieve a list of customers" x-codeSamples: [{"lang": "typescript", "label": "getCustomers", "source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n const result = await dub.customers.list();\n\n // Handle the result\n console.log(result);\n}\n\nrun();"}, {"lang": "go", "label": "getCustomers", "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Customers.List(ctx)\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"}, {"lang": "ruby", "label": "getCustomers", "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n \nres = s.customers.list()\n\nif ! res.response_bodies.nil?\n # handle response\nend"}, {"lang": "php", "label": "getCustomers", "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\n\n$security = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\n\n\n$response = $sdk->customers->list(\n\n);\n\nif ($response->responseBodies !== null) {\n // handle response\n}"}, {lang: python, label: getCustomers, source: "from dub import Dub\n\ns = Dub(\n token=\"DUB_API_KEY\",\n)\n\nres = s.customers.list()\n\nif res is not None:\n # handle response\n pass"}, {"lang": "java", "source": "OkHttpClient client = new OkHttpClient();\n\nRequest request = new Request.Builder()\n .url(\"https://api.dub.co/customers\")\n .get()\n .addHeader(\"accept\", \"application/json\")\n .addHeader(\"authorization\", \"Bearer MY_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"}] - description: "Get a list of customers for the authenticated workspace." + description: "Retrieve a list of customers for the authenticated workspace." tags: - "Customers" security: @@ -2620,9 +2620,9 @@ paths: get: operationId: "getCustomer" x-speakeasy-name-override: "get" - summary: "Get a customer" + summary: "Retrieve a customer" x-codeSamples: [{"lang": "typescript", "label": "getCustomer", "source": "import { Dub } from \"dub\";\n\nconst dub = new Dub({\n token: \"DUB_API_KEY\",\n});\n\nasync function run() {\n const result = await dub.customers.get({\n id: \"\",\n });\n\n // Handle the result\n console.log(result);\n}\n\nrun();"}, {"lang": "go", "label": "getCustomer", "source": "package main\n\nimport(\n\tdubgo \"github.com/dubinc/dub-go\"\n\t\"context\"\n\t\"github.com/dubinc/dub-go/models/operations\"\n\t\"log\"\n)\n\nfunc main() {\n s := dubgo.New(\n dubgo.WithSecurity(\"DUB_API_KEY\"),\n )\n\n ctx := context.Background()\n res, err := s.Customers.Get(ctx, operations.GetCustomerRequest{\n ID: \"\",\n })\n if err != nil {\n log.Fatal(err)\n }\n if res != nil {\n // handle response\n }\n}"}, {"lang": "ruby", "label": "getCustomer", "source": "require 'dub'\n\n\ns = ::OpenApiSDK::Dub.new\ns.config_security(\n ::OpenApiSDK::Shared::Security.new(\n token: \"DUB_API_KEY\",\n )\n)\n\n\nreq = ::OpenApiSDK::Operations::GetCustomerRequest.new(\n id: \"\",\n)\n \nres = s.customers.get(req)\n\nif ! res.object.nil?\n # handle response\nend"}, {"lang": "php", "label": "getCustomer", "source": "declare(strict_types=1);\n\nrequire 'vendor/autoload.php';\n\nuse Dub;\n\n$security = 'DUB_API_KEY';\n\n$sdk = Dub\\Dub::builder()->setSecurity($security)->build();\n\n\n\n$response = $sdk->customers->get(\n id: ''\n);\n\nif ($response->object !== null) {\n // handle response\n}"}, {lang: python, label: getCustomer, source: "from dub import Dub\n\ns = Dub(\n token=\"DUB_API_KEY\",\n)\n\nres = s.customers.get(request={\n \"id\": \"\",\n})\n\nif res is not None:\n # handle response\n pass"}, {"lang": "java", "source": "OkHttpClient client = new OkHttpClient();\n\nRequest request = new Request.Builder()\n .url(\"https://api.dub.co/customers/id\")\n .get()\n .addHeader(\"accept\", \"application/json\")\n .addHeader(\"authorization\", \"Bearer MY_TOKEN\")\n .build();\n\nResponse response = client.newCall(request).execute();"}] - description: "Get a customer by ID for the authenticated workspace." + description: "Retrieve a customer by ID for the authenticated workspace." tags: - "Customers" security: